C naming suggestion for Error Code enums
问题 I'm writing a simple parser to read the config file.The config.h interface have only three main functions they are in brief as follows, config_init(); config_dinit(); config_parse(); config_read_value(); My question is those functions will emit different type of errors , for a example, config_init() emit , FILE_NOT_FOUND,FILE_EOF_ERROR,FILE_OPEN_ERROR, ... config_dinit() emit , NOT_INIT_ERROR , config_parse() emit , PARSE_ERROR, OVERFLOW_ERROR, INVALID_CHARACTER_FOUND_ERROR,... config_read