X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2FUtil%2FSDCCerr.h;h=f1c3a14038c001783dd10f41044eaa5bfbdb6f6c;hb=7fe573ea83f6e0762dc73bc493f15fa2a8f6273d;hp=ffc7bb2794f214c57f2b827f882f71d2da231e94;hpb=137932f4ebae040881df39d0c64b9e17faf936e1;p=fw%2Fsdcc diff --git a/support/Util/SDCCerr.h b/support/Util/SDCCerr.h index ffc7bb27..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 */ @@ -186,6 +186,13 @@ SDCCERR - SDCC Standard error handler #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. @@ -241,6 +248,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