* src/SDCCast.c (processParams): added new type flow and restructured
[fw/sdcc] / support / Util / SDCCerr.h
index 221ca0b20af6b288f7b86be1a170dfb6044d847a..a675d2457a652bf59d6028011416e640c6d49359 100644 (file)
@@ -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     */
@@ -183,6 +183,14 @@ SDCCERR - SDCC Standard error handler
 #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.
@@ -238,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