25 #define NAME_OVERHEAD 10
31 #define FILE_ERROR_SET "ini_file_error_set"
34 #define WARNING_TXT _("Warning")
35 #define ERROR_TXT _("Error")
37 #define WRONG_COLLECTION _("Passed in list is not a list of parse errors.\n")
38 #define FAILED_TO_PROCCESS _("Internal Error. Failed to process error list.\n")
39 #define ERROR_HEADER _("Parsing errors and warnings in file: %s\n")
41 #define WRONG_GRAMMAR _("Passed in list is not a list of grammar errors.\n")
42 #define FAILED_TO_PROC_G _("Internal Error. Failed to process list of grammar errors.\n")
43 #define ERROR_HEADER_G _("Logical errors and warnings in file: %s\n")
45 #define WRONG_VALIDATION _("Passed in list is not a list of validation errors.\n")
46 #define FAILED_TO_PROC_V _("Internal Error. Failed to process list of validation errors.\n")
47 #define ERROR_HEADER_V _("Validation errors and warnings in file: %s\n")
49 #define LINE_FORMAT _("%s (%d) on line %d: %s")
50 #define MAX_ERROR_LINE 120
61 #define INI_ERROR "errors"
62 #define INI_METADATA "meta"
63 #define INI_ERROR_NAME "errname"
64 #define INI_CONFIG_NAME "INI"
66 #define INI_SPECIAL_KEY "="
67 #define INI_SECTION_KEY "["
70 #define MAX_VALUE PATH_MAX
71 #define BUFFER_SIZE MAX_KEY + MAX_VALUE + 3
74 #define CONVERSION_BUFFER 80
77 #define INI_VALUE_BLOCK 100
80 #define INI_WRAP_BOUNDARY 80
83 #define COL_CLASS_INI_BASE 20000
89 #define COL_CLASS_INI_PERROR COL_CLASS_INI_BASE + 2
96 #define COL_CLASS_INI_META COL_CLASS_INI_BASE + 4
99 #define INI_FAMILY_PARSING 0
100 #define INI_FAMILY_VALIDATION 1
101 #define INI_FAMILY_GRAMMAR 2
103 #define INI_MV1S_MASK 0x000F
105 #define INI_MV2S_MASK 0x00F0
107 #define INI_MS_MASK 0x0F00
111 typedef const char * (*error_fn)(
int error);