X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FSDCCerr.h;h=f1c3a14038c001783dd10f41044eaa5bfbdb6f6c;hb=26c13c60e4326b4a0d3b026c42df0e2a195d8ad3;hp=88023af67d99feccf4579149233c90d4fd6e86a9;hpb=d197b07bdaca9791286af66f1d3a91a85e5265a8;p=fw%2Fsdcc diff --git a/support/Util/SDCCerr.h b/support/Util/SDCCerr.h index 88023af6..f1c3a140 100644 --- a/support/Util/SDCCerr.h +++ b/support/Util/SDCCerr.h @@ -39,7 +39,7 @@ SDCCERR - SDCC Standard error handler #define W_STACK_OVERFLOW 21 /* stack overflow */ #define E_NEED_ARRAY_PTR 22 /* array or pointer reqd*/ #define E_IDX_NOT_INT 23 /* index not an integer */ -#define E_ARRAY_BOUND 24 /* array limit exceeded */ +#define W_IDX_OUT_OF_BOUNDS 24 /* array index out of bounds */ #define E_STRUCT_UNION 25 /* struct,union expected*/ #define E_NOT_MEMBER 26 /* !struct/union member */ #define E_PTR_REQD 27 /* pointer required */ @@ -180,6 +180,19 @@ SDCCERR - SDCC Standard error handler #define W_ILLEGAL_OPT_COMBINATION 162 #define E_DUPLICATE_MEMBER 163 #define E_STACK_VIOLATION 164 /* internal stack violation */ +#define W_INT_OVL 165 /* integer overflow in expression */ +#define W_USELESS_DECL 166 /* useless declaration */ +#define E_INT_BAD_INTNO 167 /* invalid interrupt number */ +#define W_BITFLD_NAMED 168 /* declarator used with 0 length bitfield */ +#define E_FUNC_ATTR 169 /* function attribute without function */ +#define W_SAVE_RESTORE 170 /* unmatched #pragma SAVE and #pragma RESTORE */ +#define E_INVALID_CRITICAL 171 /* operation invalid in critical sequence */ +#define E_NOT_ALLOWED 172 /* %s not allowed here */ +#define E_BAD_TAG 173 /* '%s' is not a %s tag */ +#define E_ENUM_NON_INTEGER 174 /* enumeration constant not an integer */ +#define W_DEPRECATED_PRAGMA 175 /* deprecated pragma */ +#define E_SIZEOF_INCOMPLETE_TYPE 176 /* sizeof applied to an incomplete type */ +#define E_PREVIOUS_DEF 177 /* previously defined here */ /** Describes the maximum error level that will be logged. Any level * includes all of the levels listed after it. @@ -235,4 +248,31 @@ werror - Output a standard eror message with variable number of arguements void werror (int errNum, ... ) ; +/* +------------------------------------------------------------------------------- +werrorfl - Output a standard eror message with variable number of arguements. + Use a specified filename and line number instead of the default. + +------------------------------------------------------------------------------- +*/ + +void werrorfl (char *newFilename, int newLineno, int errNum, ...) ; + +/* +------------------------------------------------------------------------------- +fatal - Output a standard eror message with variable number of arguements and + call exit() +------------------------------------------------------------------------------- +*/ + +void fatal (int exitCode, int errNum, ... ) ; + +/* +------------------------------------------------------------------------------- +style - Change the output error style to MSVC +------------------------------------------------------------------------------- +*/ + +void MSVC_style (int style) ; + #endif