X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FSDCCerr.h;h=a675d2457a652bf59d6028011416e640c6d49359;hb=238e1b53dc1ac88bd559c93bd7f355d0887d39e1;hp=70dade38beb4c94b6f6c2f5a922249bdc682e522;hpb=dbf86023c34946a0a48fd7b70d1e80f3eaa43bbd;p=fw%2Fsdcc diff --git a/support/Util/SDCCerr.h b/support/Util/SDCCerr.h index 70dade38..a675d245 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 */ @@ -181,6 +181,16 @@ SDCCERR - SDCC Standard error handler #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 */ /** Describes the maximum error level that will be logged. Any level * includes all of the levels listed after it. @@ -236,6 +246,16 @@ 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