+2007-08-11 Borut Razem <borut.razem AT siol.net>
+
+ * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
+ src/Makefile.in, src/Makefile.bcc:
+ support/Util/SDCCerr.[ch] moved to src
+ * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
+ as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
+ device/examples/ds390/tinitalk/tinitalk.dsp,
+ device/examples/serialcomm/windows/serialcomm.dsp,
+ support/librarian/librarian.dsp:
+ removed linking of unused odbc32.lib and odbccp32.lib
+
2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
* device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\..\bin_vc\as-hc08.exe"\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\..\bin_vc\as-hc08.exe"\r
\r
!ELSEIF "$(CFG)" == "as_hc08 - Win32 Debug"\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\bin_vc\as-hc08.exe" /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\bin_vc\as-hc08.exe" /pdbtype:sept\r
\r
!ENDIF \r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"..\..\..\bin_vc\link-hc08.exe"\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"..\..\..\bin_vc\link-hc08.exe"\r
\r
!ELSEIF "$(CFG)" == "link_hc08 - Win32 Debug"\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\..\bin_vc\link-hc08.exe" /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\..\bin_vc\link-hc08.exe" /pdbtype:sept\r
\r
!ENDIF\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
# ADD LINK32 /nologo /subsystem:console /machine:I386 /out:"..\..\..\bin_vc\link-gbz80.exe"\r
# SUBTRACT LINK32 /pdb:none\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"..\..\..\bin_vc\link-gbz80.exe" /pdbtype:sept\r
# SUBTRACT LINK32 /pdb:none\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
# ADD LINK32 /nologo /subsystem:console /machine:I386 /out:"..\..\..\bin_vc\link-z80.exe"\r
# SUBTRACT LINK32 /pdb:none\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"..\..\..\bin_vc\link-z80.exe" /pdbtype:sept\r
# SUBTRACT LINK32 /pdb:none\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
\r
!ELSEIF "$(CFG)" == "tinitalk - Win32 Debug"\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
\r
!ENDIF\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
\r
!ELSEIF "$(CFG)" == "serialcomm - Win32 Debug"\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo /o"Debug/test_serialcomm.bsc"\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"Debug/test_serialcomm.exe" /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"Debug/test_serialcomm.exe" /pdbtype:sept\r
\r
!ENDIF \r
\r
SDCCicode.obj SDCCbitv.obj SDCCset.obj SDCClabel.obj \
SDCCBBlock.obj SDCCloop.obj SDCCcse.obj SDCCcflow.obj SDCCdflow.obj \
SDCClrange.obj SDCCptropt.obj SDCCpeeph.obj SDCCglue.obj \
- asm.obj SDCCutil.obj SDCCmacro.obj SDCCdebug.obj cdbFile.obj
+ asm.obj SDCCutil.obj SDCCmacro.obj SDCCdebug.obj cdbFile.obj SDCCerr.obj
-SLIBOBJS = $(SLIB)/SDCCerr.obj $(SLIB)/NewAlloc.obj $(SLIB)/MySystem.obj \
- $(SLIB)/BuildCmd.obj $(SLIB)/dbuf.obj
+SLIBOBJS = $(SLIB)/NewAlloc.obj $(SLIB)/MySystem.obj $(SLIB)/BuildCmd.obj $(SLIB)/dbuf.obj
TARGET = $(PRJDIR)/bin/sdcc.exe
CFLAGS += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\"
endif
-SLIBOBJS = SDCCerr.o NewAlloc.o MySystem.o BuildCmd.o dbuf.o dbuf_string.o findme.o
+SLIBOBJS = NewAlloc.o MySystem.o BuildCmd.o dbuf.o dbuf_string.o findme.o
OBJECTS = SDCCy.o SDCChasht.o SDCCmain.o \
SDCCsymt.o SDCCopt.o SDCCast.o SDCCmem.o SDCCval.o \
SDCCicode.o SDCCbitv.o SDCCset.o SDCClabel.o \
SDCCBBlock.o SDCCloop.o SDCCcse.o SDCCcflow.o SDCCdflow.o \
SDCClrange.o SDCCptropt.o SDCCpeeph.o SDCCglue.o \
- asm.o SDCCmacro.o SDCCutil.o SDCCdebug.o cdbFile.o SDCCdwarf2.o
+ asm.o SDCCmacro.o SDCCutil.o SDCCdebug.o cdbFile.o SDCCdwarf2.o\
+ SDCCerr.o
SPECIAL = SDCCy.h
ifeq ($(USE_ALT_LEX), 1)
--- /dev/null
+/*
+ * SDCCerr - Standard error handler
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "SDCCerr.h"
+
+#define USE_STDOUT_FOR_ERRORS 0
+
+#if USE_STDOUT_FOR_ERRORS
+#define DEFAULT_ERROR_OUT stdout
+#else
+#define DEFAULT_ERROR_OUT stderr
+#endif
+
+struct SDCCERRG _SDCCERRG;
+
+extern char *filename ;
+extern int lineno ;
+extern int fatalError ;
+
+/* Currently the errIndex field must match the position of the
+ * entry in the array. It is only included in order to make
+ * human error lookup easier.
+ */
+struct
+{
+ int errIndex;
+ ERROR_LOG_LEVEL errType;
+ const char *errText;
+} ErrTab [] =
+{
+{ E_DUPLICATE, ERROR_LEVEL_ERROR,
+ "Duplicate symbol '%s', symbol IGNORED" },
+{ E_SYNTAX_ERROR, ERROR_LEVEL_ERROR,
+ "Syntax error, declaration ignored at '%s'" },
+{ E_CONST_EXPECTED, ERROR_LEVEL_ERROR,
+ "Initializer element is not constant" },
+{ E_OUT_OF_MEM, ERROR_LEVEL_ERROR,
+ "'malloc' failed file '%s' for size %ld" },
+{ E_FILE_OPEN_ERR, ERROR_LEVEL_ERROR,
+ "'fopen' failed on file '%s'" },
+{ E_INVALID_OCLASS, ERROR_LEVEL_ERROR,
+ "Internal Error Oclass invalid '%s'" },
+{ E_CANNOT_ALLOC, ERROR_LEVEL_ERROR,
+ "Cannot allocate variable '%s'." },
+{ E_OLD_STYLE, ERROR_LEVEL_ERROR,
+ "Old style C declaration. IGNORED '%s'" },
+{ E_STACK_OUT, ERROR_LEVEL_ERROR,
+ "Out of stack Space. '%s' not allocated" },
+{ E_INTERNAL_ERROR, ERROR_LEVEL_ERROR,
+ "FATAL Compiler Internal Error in file '%s' line number '%d' : %s \n"
+ "Contact Author with source code" },
+{ E_LVALUE_REQUIRED, ERROR_LEVEL_ERROR,
+ "'lvalue' required for '%s' operation." },
+{ E_TMPFILE_FAILED, ERROR_LEVEL_ERROR,
+ "Creation of temp file failed" },
+{ E_FUNCTION_EXPECTED, ERROR_LEVEL_ERROR,
+ "called object is not a function" },
+{ E_USING_ERROR, ERROR_LEVEL_ERROR,
+ "'using', 'interrupt' or 'reentrant' must follow a function definiton.'%s'" },
+{ E_SFR_INIT, ERROR_LEVEL_ERROR,
+ "Absolute address & initial value both cannot be specified for\n"
+ " a 'sfr','sbit' storage class, initial value ignored '%s'" },
+{ W_INIT_IGNORED, ERROR_LEVEL_WARNING,
+ "Variable in the storage class cannot be initialized.'%s'" },
+{ E_AUTO_ASSUMED, ERROR_LEVEL_ERROR,
+ "variable '%s' must be static to have storage class in reentrant function" },
+{ E_AUTO_ABSA, ERROR_LEVEL_ERROR,
+ "absolute address not allowed for automatic var '%s' in reentrant function " },
+{ W_INIT_WRONG, ERROR_LEVEL_WARNING,
+ "Initializer different levels of indirections" },
+{ E_FUNC_REDEF, ERROR_LEVEL_ERROR,
+ "Function name '%s' redefined " },
+{ E_ID_UNDEF, ERROR_LEVEL_ERROR,
+ "Undefined identifier '%s'" },
+{ W_STACK_OVERFLOW, ERROR_LEVEL_WARNING,
+ "stack exceeds 256 bytes for function '%s'" },
+{ E_NEED_ARRAY_PTR, ERROR_LEVEL_ERROR,
+ "Array or pointer required for '%s' operation " },
+{ E_IDX_NOT_INT, ERROR_LEVEL_ERROR,
+ "Array index not an integer" },
+{ W_IDX_OUT_OF_BOUNDS, ERROR_LEVEL_WARNING,
+ "index %i is outside of the array bounds (array size is %i)" },
+{ E_STRUCT_UNION, ERROR_LEVEL_ERROR,
+ "Structure/Union expected left of '.%s'" },
+{ E_NOT_MEMBER, ERROR_LEVEL_ERROR,
+ "'%s' not a structure/union member" },
+{ E_PTR_REQD, ERROR_LEVEL_ERROR,
+ "Pointer required" },
+{ E_UNARY_OP, ERROR_LEVEL_ERROR,
+ "'unary %c': illegal operand" },
+{ E_CONV_ERR, ERROR_LEVEL_ERROR,
+ "convertion error: integral promotion failed" },
+{ E_INT_REQD, ERROR_LEVEL_ERROR,
+ "type must be INT for bit field definition" },
+{ E_BITFLD_SIZE, ERROR_LEVEL_ERROR,
+ "bit field size cannot be greater than int (%d bits)" },
+{ W_TRUNCATION, ERROR_LEVEL_WARNING,
+ "high order truncation might occur" },
+{ E_CODE_WRITE, ERROR_LEVEL_ERROR,
+ "Attempt to assign value to a constant variable (%s)" },
+{ E_LVALUE_CONST, ERROR_LEVEL_ERROR,
+ "Lvalue specifies constant object" },
+{ E_ILLEGAL_ADDR, ERROR_LEVEL_ERROR,
+ "'&' illegal operand , %s" },
+{ E_CAST_ILLEGAL, ERROR_LEVEL_ERROR,
+ "illegal cast (cast cannot be aggregate)" },
+{ E_MULT_INTEGRAL, ERROR_LEVEL_ERROR,
+ "'*' bad operand" },
+{ E_ARG_ERROR, ERROR_LEVEL_ERROR,
+ "Argument count error, argument ignored" },
+{ E_ARG_COUNT, ERROR_LEVEL_ERROR,
+ "Function was expecting more arguments" },
+{ E_FUNC_EXPECTED, ERROR_LEVEL_ERROR,
+ "Function name expected '%s'. ANSI style declaration REQUIRED" },
+{ E_PLUS_INVALID, ERROR_LEVEL_ERROR,
+ "invalid operand '%s'" },
+{ E_PTR_PLUS_PTR, ERROR_LEVEL_ERROR,
+ "pointer + pointer invalid" },
+{ E_SHIFT_OP_INVALID, ERROR_LEVEL_ERROR,
+ "invalid operand for shift operator" },
+{ E_COMPARE_OP, ERROR_LEVEL_ERROR,
+ "compare operand cannot be struct/union" },
+{ E_BITWISE_OP, ERROR_LEVEL_ERROR,
+ "operand invalid for bitwise operation" },
+{ E_ANDOR_OP, ERROR_LEVEL_ERROR,
+ "Invalid operand for '&&' or '||'" },
+{ E_TYPE_MISMATCH, ERROR_LEVEL_ERROR,
+ "indirections to different types %s %s " },
+{ E_AGGR_ASSIGN, ERROR_LEVEL_ERROR,
+ "cannot assign values to aggregates" },
+{ E_ARRAY_DIRECT, ERROR_LEVEL_ERROR,
+ "bit Arrays can be accessed by literal index only" },
+{ E_BIT_ARRAY, ERROR_LEVEL_ERROR,
+ "Array or Pointer to bit|sbit|sfr not allowed.'%s'" },
+{ E_DUPLICATE_TYPEDEF, ERROR_LEVEL_ERROR,
+ "typedef/enum '%s' duplicate. Previous definiton Ignored" },
+{ E_ARG_TYPE, ERROR_LEVEL_ERROR,
+ "Actual Argument type different from declaration %d" },
+{ E_RET_VALUE, ERROR_LEVEL_ERROR,
+ "Function return value mismatch" },
+{ E_FUNC_AGGR, ERROR_LEVEL_ERROR,
+ "Function cannot return aggregate. Func body ignored" },
+{ E_FUNC_DEF, ERROR_LEVEL_ERROR,
+ "ANSI Style declaration needed" },
+{ E_DUPLICATE_LABEL, ERROR_LEVEL_ERROR,
+ "Duplicate label '%s'" },
+{ E_LABEL_UNDEF, ERROR_LEVEL_ERROR,
+ "Label undefined '%s'" },
+{ E_FUNC_VOID, ERROR_LEVEL_ERROR,
+ "void function returning value" },
+{ W_VOID_FUNC, ERROR_LEVEL_WARNING,
+ "function '%s' must return value" },
+{ W_RETURN_MISMATCH, ERROR_LEVEL_WARNING,
+ "function return value mismatch" },
+{ E_CASE_CONTEXT, ERROR_LEVEL_ERROR,
+ "'case/default' found without 'switch'. Statement ignored" },
+{ E_CASE_CONSTANT, ERROR_LEVEL_ERROR,
+ "'case' expression not constant. Statement ignored" },
+{ E_BREAK_CONTEXT, ERROR_LEVEL_ERROR,
+ "'break/continue' statement out of context" },
+{ E_SWITCH_AGGR, ERROR_LEVEL_ERROR,
+ "nonintegral used in switch expression" },
+{ E_FUNC_BODY, ERROR_LEVEL_ERROR,
+ "function '%s' already has body" },
+{ E_UNKNOWN_SIZE, ERROR_LEVEL_ERROR,
+ "attempt to allocate variable of unknown size '%s'" },
+{ E_AUTO_AGGR_INIT, ERROR_LEVEL_ERROR,
+ "aggregate 'auto' variable '%s' cannot be initialized" },
+{ E_INIT_COUNT, ERROR_LEVEL_ERROR,
+ "too many initializers" },
+{ E_INIT_STRUCT, ERROR_LEVEL_ERROR,
+ "struct/union/array '%s': initialization needs curly braces" },
+{ E_INIT_NON_ADDR, ERROR_LEVEL_ERROR,
+ "non-address initialization expression" },
+{ E_INT_DEFINED, ERROR_LEVEL_ERROR,
+ "interrupt no '%d' already has a service routine '%s'" },
+{ E_INT_ARGS, ERROR_LEVEL_ERROR,
+ "interrupt routine cannot have arguments, arguments ingored" },
+{ E_INCLUDE_MISSING, ERROR_LEVEL_ERROR,
+ "critical compiler #include file missing. " },
+{ E_NO_MAIN, ERROR_LEVEL_ERROR,
+ "function 'main' undefined" },
+{ E_EXTERN_INIT, ERROR_LEVEL_ERROR,
+ "'extern' variable '%s' cannot be initialised " },
+{ E_PRE_PROC_FAILED, ERROR_LEVEL_ERROR,
+ "Pre-Processor %s" },
+{ E_DUP_FAILED, ERROR_LEVEL_ERROR,
+ "_dup call failed" },
+{ E_INCOMPAT_TYPES, ERROR_LEVEL_ERROR,
+ "incompatible types" },
+{ W_LOOP_ELIMINATE, ERROR_LEVEL_WARNING,
+ "'while' loop with 'zero' constant. Loop eliminated" },
+{ W_NO_SIDE_EFFECTS, ERROR_LEVEL_WARNING,
+ "%s expression has NO side effects. Expr eliminated" },
+{ W_CONST_TOO_LARGE, ERROR_LEVEL_PEDANTIC,
+ "constant value '%s', out of range." },
+{ W_BAD_COMPARE, ERROR_LEVEL_WARNING,
+ "comparison will either, ALWAYs succeed or ALWAYs fail" },
+{ E_TERMINATING, ERROR_LEVEL_ERROR,
+ "Compiler Terminating , contact author with source" },
+{ W_LOCAL_NOINIT, ERROR_LEVEL_WARNING,
+ "'auto' variable '%s' may be used before initialization" },
+{ W_NO_REFERENCE, ERROR_LEVEL_WARNING,
+ "in function %s unreferenced %s : '%s'" },
+{ E_OP_UNKNOWN_SIZE, ERROR_LEVEL_ERROR,
+ "unknown size for operand" },
+{ W_LONG_UNSUPPORTED, ERROR_LEVEL_WARNING,
+ "'%s' 'long' not supported , declared as 'int'." },
+{ E_LITERAL_GENERIC, ERROR_LEVEL_ERROR,
+ //"illegal cast of LITERAL value to 'generic' pointer: assuming 'xdata' pointer" },
+ "illegal cast of LITERAL value to 'generic' pointer" },
+{ E_SFR_ADDR_RANGE, ERROR_LEVEL_ERROR,
+ "%s '%s' address out of range" },
+{ E_BITVAR_STORAGE, ERROR_LEVEL_ERROR,
+ "storage class CANNOT be specified for bit variable '%s'" },
+{ E_EXTERN_MISMATCH, ERROR_LEVEL_ERROR,
+ "extern definition for '%s' mismatches with declaration." },
+{ W_NONRENT_ARGS, ERROR_LEVEL_WARNING,
+ "Functions called via pointers must be 'reentrant' to take arguments" },
+{ W_DOUBLE_UNSUPPORTED, ERROR_LEVEL_WARNING,
+ "type 'double' not supported assuming 'float'" },
+{ W_COMP_RANGE, ERROR_LEVEL_WARNING,
+ "comparison is always %s due to limited range of data type" },
+{ W_FUNC_NO_RETURN, ERROR_LEVEL_WARNING,
+ "no 'return' statement found for function '%s'" },
+{ W_PRE_PROC_WARNING, ERROR_LEVEL_WARNING,
+ "Pre-Processor %s" },
+{ W_STRUCT_AS_ARG, ERROR_LEVEL_WARNING,
+ "structure '%s' passed as function argument changed to pointer" },
+{ E_PREV_DEF_CONFLICT, ERROR_LEVEL_ERROR,
+ "conflict with previous definition of '%s' for attribute '%s'" },
+{ E_CODE_NO_INIT, ERROR_LEVEL_ERROR,
+ "variable '%s' declared in code space must have initialiser" },
+{ E_OPS_INTEGRAL, ERROR_LEVEL_ERROR,
+ "operands not integral for assignment operation" },
+{ E_TOO_MANY_PARMS, ERROR_LEVEL_ERROR,
+ "too many parameters " },
+{ E_TOO_FEW_PARMS, ERROR_LEVEL_ERROR,
+ "too few parameters" },
+{ E_FUNC_NO_CODE, ERROR_LEVEL_ERROR,
+ "code not generated for '%s' due to previous errors" },
+{ E_TYPE_MISMATCH_PARM, ERROR_LEVEL_ERROR,
+ "type mismatch for parameter number %d" },
+{ E_INVALID_FLOAT_CONST, ERROR_LEVEL_ERROR,
+ "invalid float constant '%s'" },
+{ E_INVALID_OP, ERROR_LEVEL_ERROR,
+ "invalid operand for '%s' operation" },
+{ E_SWITCH_NON_INTEGER, ERROR_LEVEL_ERROR,
+ "switch value not an integer" },
+{ E_CASE_NON_INTEGER, ERROR_LEVEL_ERROR,
+ "case label not an integer" },
+{ W_FUNC_TOO_LARGE, ERROR_LEVEL_WARNING,
+ "function '%s' too large for global optimization" },
+{ W_CONTROL_FLOW, ERROR_LEVEL_PEDANTIC,
+ "conditional flow changed by optimizer: so said EVELYN the modified DOG" },
+{ W_PTR_TYPE_INVALID, ERROR_LEVEL_WARNING,
+ "invalid type specifier for pointer type; specifier ignored" },
+{ W_IMPLICIT_FUNC, ERROR_LEVEL_WARNING,
+ "function '%s' implicit declaration" },
+{ W_CONTINUE, ERROR_LEVEL_WARNING,
+ "%s" },
+{ I_EXTENDED_STACK_SPILS, ERROR_LEVEL_INFO,
+ "extended stack by %d bytes for compiler temp(s) :in function '%s': %s " },
+{ W_UNKNOWN_PRAGMA, ERROR_LEVEL_WARNING,
+ "unknown or unsupported #pragma directive '%s'" },
+{ W_SHIFT_CHANGED, ERROR_LEVEL_PEDANTIC,
+ "%s shifting more than size of object changed to zero" },
+{ W_UNKNOWN_OPTION, ERROR_LEVEL_WARNING,
+ "unknown compiler option '%s' ignored" },
+{ W_UNSUPP_OPTION, ERROR_LEVEL_WARNING,
+ "option '%s' no longer supported '%s' " },
+{ W_UNKNOWN_FEXT, ERROR_LEVEL_WARNING,
+ "don't know what to do with file '%s'. file extension unsupported" },
+{ W_TOO_MANY_SRC, ERROR_LEVEL_WARNING,
+ "cannot compile more than one source file. file '%s' ignored" },
+{ I_CYCLOMATIC, ERROR_LEVEL_INFO,
+ "function '%s', # edges %d , # nodes %d , cyclomatic complexity %d" },
+{ E_DIVIDE_BY_ZERO, ERROR_LEVEL_ERROR,
+ "dividing by ZERO" },
+{ E_FUNC_BIT, ERROR_LEVEL_ERROR,
+ "function cannot return 'bit'" },
+{ E_CAST_ZERO, ERROR_LEVEL_ERROR,
+ "casting from to type 'void' is illegal" },
+{ W_CONST_RANGE, ERROR_LEVEL_WARNING,
+ "constant is out of range %s" },
+{ W_CODE_UNREACH, ERROR_LEVEL_PEDANTIC,
+ "unreachable code" },
+{ E_NONPTR2_GENPTR, ERROR_LEVEL_ERROR,
+ "non-pointer type cast to generic pointer" },
+{ W_POSSBUG, ERROR_LEVEL_WARNING,
+ "possible code generation error at line %d,\n"
+ " send source to sandeep.dutta@usa.net" },
+{ E_INCOMPAT_PTYPES, ERROR_LEVEL_ERROR,
+ "pointer types incompatible " },
+{ W_UNKNOWN_MODEL, ERROR_LEVEL_WARNING,
+ "unknown memory model at %s : %d" },
+{ E_UNKNOWN_TARGET, ERROR_LEVEL_ERROR,
+ "cannot generate code for target '%s'" },
+{ W_INDIR_BANKED, ERROR_LEVEL_WARNING,
+ "Indirect call to a banked function not implemented." },
+{ W_UNSUPPORTED_MODEL, ERROR_LEVEL_WARNING,
+ "Model '%s' not supported for %s, ignored." },
+{ W_BANKED_WITH_NONBANKED, ERROR_LEVEL_WARNING,
+ "Both banked and nonbanked attributes used. nonbanked wins." },
+{ W_BANKED_WITH_STATIC, ERROR_LEVEL_WARNING,
+ "Both banked and static used. static wins." },
+{ W_INT_TO_GEN_PTR_CAST, ERROR_LEVEL_WARNING,
+ "converting integer type to generic pointer: assuming XDATA" },
+{ W_ESC_SEQ_OOR_FOR_CHAR, ERROR_LEVEL_WARNING,
+ "escape sequence out of range for char." },
+{ E_INVALID_HEX, ERROR_LEVEL_ERROR,
+ "\\x used with no following hex digits." },
+{ W_FUNCPTR_IN_USING_ISR, ERROR_LEVEL_WARNING,
+ "call via function pointer in ISR using non-zero register bank.\n"
+ " Cannot determine which register bank to save." },
+{ E_NO_SUCH_BANK, ERROR_LEVEL_ERROR,
+ "called function uses unknown register bank %d." },
+{ E_TWO_OR_MORE_DATA_TYPES, ERROR_LEVEL_ERROR,
+ "two or more data types in declaration for '%s'" },
+{ E_LONG_OR_SHORT_INVALID, ERROR_LEVEL_ERROR,
+ "long or short specified for %s '%s'" },
+{ E_SIGNED_OR_UNSIGNED_INVALID, ERROR_LEVEL_ERROR,
+ "signed or unsigned specified for %s '%s'" },
+{ E_LONG_AND_SHORT_INVALID, ERROR_LEVEL_ERROR,
+ "both long and short specified for %s '%s'" },
+{ E_SIGNED_AND_UNSIGNED_INVALID, ERROR_LEVEL_ERROR,
+ "both signed and unsigned specified for %s '%s'" },
+{ E_TWO_OR_MORE_STORAGE_CLASSES, ERROR_LEVEL_ERROR,
+ "two or more storage classes in declaration for '%s'" },
+{ W_EXCESS_INITIALIZERS, ERROR_LEVEL_WARNING,
+ "excess elements in %s initializer after '%s'" },
+{ E_ARGUMENT_MISSING, ERROR_LEVEL_ERROR,
+ "Option %s requires an argument." },
+{ W_STRAY_BACKSLASH, ERROR_LEVEL_WARNING,
+ "stray '\\' at column %d" },
+{ W_NEWLINE_IN_STRING, ERROR_LEVEL_WARNING,
+ "newline in string constant" },
+{ E_CANNOT_USE_GENERIC_POINTER, ERROR_LEVEL_ERROR,
+ "cannot use generic pointer %s to initialize %s" },
+{ W_EXCESS_SHORT_OPTIONS, ERROR_LEVEL_WARNING,
+ "Only one short option can be specified at a time. Rest of %s ignored." },
+{ E_VOID_VALUE_USED, ERROR_LEVEL_ERROR,
+ "void value not ignored as it ought to be" },
+{ W_INTEGRAL2PTR_NOCAST, ERROR_LEVEL_WARNING,
+ "converting integral to pointer without a cast" },
+{ W_PTR2INTEGRAL_NOCAST, ERROR_LEVEL_WARNING,
+ "converting pointer to integral without a cast" },
+{ W_SYMBOL_NAME_TOO_LONG, ERROR_LEVEL_WARNING,
+ "symbol name too long, truncated to %d chars" },
+{ W_CAST_STRUCT_PTR,ERROR_LEVEL_WARNING,
+ "cast of struct %s * to struct %s * " },
+{ W_LIT_OVERFLOW, ERROR_LEVEL_WARNING,
+ "overflow in implicit constant conversion" },
+{ E_PARAM_NAME_OMITTED, ERROR_LEVEL_ERROR,
+ "in function %s: name omitted for parameter %d" },
+{ W_NO_FILE_ARG_IN_C1, ERROR_LEVEL_WARNING,
+ "only standard input is compiled in c1 mode. file '%s' ignored" },
+{ E_NEED_OPT_O_IN_C1, ERROR_LEVEL_ERROR,
+ "must specify assembler file name with -o in c1 mode" },
+{ W_ILLEGAL_OPT_COMBINATION, ERROR_LEVEL_WARNING,
+ "illegal combination of options (--c1mode, -E, -S -c)" },
+{ E_DUPLICATE_MEMBER, ERROR_LEVEL_ERROR,
+ "duplicate %s member '%s'" },
+{ E_STACK_VIOLATION, ERROR_LEVEL_ERROR,
+ "'%s' internal stack %s" },
+{ W_INT_OVL, ERROR_LEVEL_PEDANTIC,
+ "integer overflow in expression" },
+{ W_USELESS_DECL, ERROR_LEVEL_WARNING,
+ "useless declaration (possible use of keyword as variable name)" },
+{ E_INT_BAD_INTNO, ERROR_LEVEL_ERROR,
+ "interrupt number '%u' is not valid" },
+{ W_BITFLD_NAMED, ERROR_LEVEL_WARNING,
+ "ignoring declarator of 0 length bitfield" },
+{ E_FUNC_ATTR, ERROR_LEVEL_ERROR,
+ "function attribute following non-function declaration"},
+{ W_SAVE_RESTORE, ERROR_LEVEL_PEDANTIC,
+ "unmatched #pragma save and #pragma restore" },
+{ E_INVALID_CRITICAL, ERROR_LEVEL_ERROR,
+ "not allowed in a critical section" },
+{ E_NOT_ALLOWED, ERROR_LEVEL_ERROR,
+ "%s not allowed here" },
+{ E_BAD_TAG, ERROR_LEVEL_ERROR,
+ "'%s' is not a %s tag" },
+{ E_ENUM_NON_INTEGER, ERROR_LEVEL_ERROR,
+ "enumeration constant not an integer" },
+{ W_DEPRECATED_PRAGMA, ERROR_LEVEL_WARNING,
+ "pragma %s is deprecated, please see documentation for details" },
+{ E_SIZEOF_INCOMPLETE_TYPE, ERROR_LEVEL_ERROR,
+ "sizeof applied to an incomplete type" },
+{ E_PREVIOUS_DEF, ERROR_LEVEL_ERROR,
+ "previously defined here" },
+{ W_SIZEOF_VOID, ERROR_LEVEL_WARNING,
+ "size of void is zero" },
+{ W_POSSBUG2, ERROR_LEVEL_WARNING,
+ "possible code generation error at %s line %d,\n"
+ " please report problem and send source code at SDCC-USER list on SF.Net"},
+{ W_COMPLEMENT, ERROR_LEVEL_WARNING,
+ "using ~ on bit/bool/unsigned char variables can give unexpected results due to promotion to int" },
+{ E_SHADOWREGS_NO_ISR, ERROR_LEVEL_ERROR,
+ "ISR function attribute 'shadowregs' following non-ISR function '%s'" },
+{ W_SFR_ABSRANGE, ERROR_LEVEL_WARNING,
+ "absolute address for sfr '%s' probably out of range." },
+{ E_BANKED_WITH_CALLEESAVES, ERROR_LEVEL_ERROR,
+ "Both banked and callee-saves cannot be used together." },
+{ W_INVALID_INT_CONST, ERROR_LEVEL_WARNING,
+ "integer constant '%s' out of range, truncated to %.0lf." },
+{ W_CMP_SU_CHAR, ERROR_LEVEL_PEDANTIC,
+ "comparison of 'signed char' with 'unsigned char' requires promotion to int" },
+{ W_INVALID_FLEXARRAY, ERROR_LEVEL_WARNING,
+ "invalid use of structure with flexible array member" },
+{ W_C89_NO_FLEXARRAY, ERROR_LEVEL_PEDANTIC,
+ "ISO C90 does not support flexible array members" },
+{ E_FLEXARRAY_NOTATEND, ERROR_LEVEL_ERROR,
+ "flexible array member not at end of struct" },
+{ E_FLEXARRAY_INEMPTYSTRCT, ERROR_LEVEL_ERROR,
+ "flexible array in otherwise empty struct" },
+{ W_EMPTY_SOURCE_FILE, ERROR_LEVEL_WARNING,
+ "ISO C forbids an empty source file" },
+{ W_BAD_PRAGMA_ARGUMENTS, ERROR_LEVEL_WARNING,
+ "#pragma %s: bad argument(s); pragma ignored" },
+{ E_BAD_RESTRICT, ERROR_LEVEL_ERROR,
+ "Only pointers may be qualified with 'restrict'" },
+{ E_BAD_INLINE, ERROR_LEVEL_ERROR,
+ "Only functions may be qualified with 'inline'" },
+{ E_BAD_INT_ARGUMENT, ERROR_LEVEL_ERROR,
+ "Bad integer argument for option %s" },
+{ E_NEGATIVE_ARRAY_SIZE, ERROR_LEVEL_ERROR,
+ "Size of array '%s' is negative" },
+};
+
+/*
+-------------------------------------------------------------------------------
+SetErrorOut - Set the error output file
+
+-------------------------------------------------------------------------------
+*/
+
+FILE *SetErrorOut(FILE *NewErrorOut)
+{
+ _SDCCERRG.out = NewErrorOut ;
+
+ return NewErrorOut ;
+}
+
+void setErrorLogLevel (ERROR_LOG_LEVEL level)
+{
+ _SDCCERRG.logLevel = level;
+}
+
+/*
+-------------------------------------------------------------------------------
+vwerror - Output a standard eror message with variable number of arguements
+
+-------------------------------------------------------------------------------
+*/
+
+void vwerror (int errNum, va_list marker)
+{
+ if (_SDCCERRG.out == NULL) {
+ _SDCCERRG.out = DEFAULT_ERROR_OUT;
+ }
+
+ if (ErrTab[errNum].errIndex != errNum) {
+ fprintf(_SDCCERRG.out,
+ "Internal error: error table entry for %d inconsistent.", errNum);
+ }
+
+ if ((ErrTab[errNum].errType >= _SDCCERRG.logLevel) && (!_SDCCERRG.disabled[errNum])) {
+ if ( ErrTab[errNum].errType == ERROR_LEVEL_ERROR )
+ fatalError++ ;
+
+ if ( filename && lineno ) {
+ if(_SDCCERRG.style)
+ fprintf(_SDCCERRG.out, "%s(%d) : ",filename,lineno);
+ else
+ fprintf(_SDCCERRG.out, "%s:%d: ",filename,lineno);
+ } else if (lineno) {
+ fprintf(_SDCCERRG.out, "at %d: ", lineno);
+ } else {
+ fprintf(_SDCCERRG.out, "-:0: ");
+ }
+
+ switch(ErrTab[errNum].errType)
+ {
+ case ERROR_LEVEL_ERROR:
+ fprintf(_SDCCERRG.out, "error %d: ", errNum);
+ break;
+ case ERROR_LEVEL_WARNING:
+ case ERROR_LEVEL_PEDANTIC:
+ fprintf(_SDCCERRG.out, "warning %d: ", errNum);
+ break;
+ case ERROR_LEVEL_INFO:
+ fprintf(_SDCCERRG.out, "info %d: ", errNum);
+ break;
+ default:
+ break;
+ }
+
+ vfprintf(_SDCCERRG.out, ErrTab[errNum].errText,marker);
+ fprintf(_SDCCERRG.out, "\n");
+ } else {
+ /* Below the logging level, drop. */
+ }
+}
+/*
+-------------------------------------------------------------------------------
+werror - Output a standard eror message with variable number of arguements
+
+-------------------------------------------------------------------------------
+*/
+
+void werror (int errNum, ...)
+{
+ va_list marker;
+ va_start(marker,errNum);
+ vwerror(errNum, marker);
+ va_end(marker);
+}
+
+/*
+-------------------------------------------------------------------------------
+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, ...)
+{
+ char *oldFilename = filename;
+ int oldLineno = lineno;
+ va_list marker;
+
+ filename = newFilename;
+ lineno = newLineno;
+
+ va_start(marker,errNum);
+ vwerror(errNum, marker);
+ va_end(marker);
+
+ filename = oldFilename;
+ lineno = oldLineno;
+}
+
+
+/*
+-------------------------------------------------------------------------------
+fatal - Output a standard eror message with variable number of arguements and
+ call exit()
+-------------------------------------------------------------------------------
+*/
+void fatal (int exitCode, int errNum, ...)
+{
+ va_list marker;
+ va_start(marker,errNum);
+ vwerror(errNum, marker);
+ va_end(marker);
+
+ exit(exitCode);
+}
+
+/*
+-------------------------------------------------------------------------------
+style - Change the output error style to MSVC
+-------------------------------------------------------------------------------
+*/
+
+void MSVC_style (int style)
+{
+ _SDCCERRG.style = style;
+}
+
+/*
+-------------------------------------------------------------------------------
+disabled - Disable output of specified warning
+-------------------------------------------------------------------------------
+*/
+
+void setWarningDisabled (int errNum)
+{
+ if ((errNum < MAX_ERROR_WARNING) && (ErrTab[errNum].errType <= ERROR_LEVEL_WARNING))
+ _SDCCERRG.disabled[errNum] = 1;
+}
--- /dev/null
+/*
+===============================================================================
+SDCCERR - SDCC Standard error handler
+
+
+===============================================================================
+*/
+
+#if !defined(__SDCCERR_H)
+
+#define __SDCCERR_H
+
+#include <stdio.h>
+#include <stdarg.h>
+
+/* ERROR Message Definition */
+
+#define E_DUPLICATE 0 /* Duplicate variable */
+#define E_SYNTAX_ERROR 1 /* Syntax Error */
+#define E_CONST_EXPECTED 2 /* constant expected */
+#define E_OUT_OF_MEM 3 /* malloc failed */
+#define E_FILE_OPEN_ERR 4 /* File open failed */
+#define E_INVALID_OCLASS 5 /* output class invalid */
+#define E_CANNOT_ALLOC 6 /* cannot allocate space*/
+#define E_OLD_STYLE 7 /* old style C ! allowed*/
+#define E_STACK_OUT 8 /* v r out of stack */
+#define E_INTERNAL_ERROR 9 /* unable to alloc tvar */
+#define E_LVALUE_REQUIRED 10 /* lvalue required */
+#define E_TMPFILE_FAILED 11 /* tmpfile creation failed */
+#define E_FUNCTION_EXPECTED 12 /* function expected */
+#define E_USING_ERROR 13 /* using in error */
+#define E_SFR_INIT 14 /* init error for sbit */
+#define W_INIT_IGNORED 15 /* initialiser ignored */
+#define E_AUTO_ASSUMED 16 /* sclass auto assumed */
+#define E_AUTO_ABSA 17 /* abs addr for auto var*/
+#define W_INIT_WRONG 18 /* initializer type != */
+#define E_FUNC_REDEF 19 /* func name redefined */
+#define E_ID_UNDEF 20 /* identifer undefined */
+#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 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 */
+#define E_UNARY_OP 28 /* unary operator bad op*/
+#define E_CONV_ERR 29 /* conversion error */
+#define E_INT_REQD 30 /* bit field must be int*/
+#define E_BITFLD_SIZE 31 /* bit field size > 16 */
+#define W_TRUNCATION 32 /* high order trucation */
+#define E_CODE_WRITE 33 /* trying 2 write to code */
+#define E_LVALUE_CONST 34 /* lvalue is a const */
+#define E_ILLEGAL_ADDR 35 /* address of bit */
+#define E_CAST_ILLEGAL 36 /* cast illegal */
+#define E_MULT_INTEGRAL 37 /* mult opernd must b integral */
+#define E_ARG_ERROR 38 /* argument count error*/
+#define E_ARG_COUNT 39 /* func expecting more */
+#define E_FUNC_EXPECTED 40 /* func name expected */
+#define E_PLUS_INVALID 41 /* plus invalid */
+#define E_PTR_PLUS_PTR 42 /* pointer + pointer */
+#define E_SHIFT_OP_INVALID 43 /* shft op op invalid */
+#define E_COMPARE_OP 44 /* compare operand */
+#define E_BITWISE_OP 45 /* bit op invalid op */
+#define E_ANDOR_OP 46 /* && || op invalid */
+#define E_TYPE_MISMATCH 47 /* type mismatch */
+#define E_AGGR_ASSIGN 48 /* aggr assign */
+#define E_ARRAY_DIRECT 49 /* array indexing in */
+#define E_BIT_ARRAY 50 /* bit array not allowed */
+#define E_DUPLICATE_TYPEDEF 51 /* typedef name duplicate */
+#define E_ARG_TYPE 52 /* arg type mismatch */
+#define E_RET_VALUE 53 /* return value mismatch */
+#define E_FUNC_AGGR 54 /* function returing aggr */
+#define E_FUNC_DEF 55 /* ANSI Style def neede */
+#define E_DUPLICATE_LABEL 56 /* duplicate label name */
+#define E_LABEL_UNDEF 57 /* undefined label used */
+#define E_FUNC_VOID 58 /* void func ret value */
+#define W_VOID_FUNC 59 /* func must return value */
+#define W_RETURN_MISMATCH 60 /* return value mismatch */
+#define E_CASE_CONTEXT 61 /* case stmnt without switch */
+#define E_CASE_CONSTANT 62 /* case expression ! const */
+#define E_BREAK_CONTEXT 63 /* break statement invalid */
+#define E_SWITCH_AGGR 64 /* non integral for switch */
+#define E_FUNC_BODY 65 /* func has body already */
+#define E_UNKNOWN_SIZE 66 /* variable has unknown size */
+#define E_AUTO_AGGR_INIT 67 /* auto aggregates no init */
+#define E_INIT_COUNT 68 /* too many initializers */
+#define E_INIT_STRUCT 69 /* struct init wrong */
+#define E_INIT_NON_ADDR 70 /* non address xpr for init */
+#define E_INT_DEFINED 71 /* interrupt already over */
+#define E_INT_ARGS 72 /* interrupt rtn cannot have args */
+#define E_INCLUDE_MISSING 73 /* compiler include missing */
+#define E_NO_MAIN 74 /* main function undefined */
+#define E_EXTERN_INIT 75 /* extern variable initialised */
+#define E_PRE_PROC_FAILED 76 /* preprocessor failed */
+#define E_DUP_FAILED 77 /* file DUP failed */
+#define E_INCOMPAT_TYPES 78 /* incompatible types casting */
+#define W_LOOP_ELIMINATE 79 /* loop eliminated */
+#define W_NO_SIDE_EFFECTS 80 /* expression has no side effects */
+#define W_CONST_TOO_LARGE 81 /* constant out of range */
+#define W_BAD_COMPARE 82 /* bad comparison */
+#define E_TERMINATING 83 /* compiler terminating */
+#define W_LOCAL_NOINIT 84 /* local reference before assignment */
+#define W_NO_REFERENCE 85 /* no reference to local variable */
+#define E_OP_UNKNOWN_SIZE 86 /* unknown size for operand */
+#define W_LONG_UNSUPPORTED 87 /* 'long' not supported yet */
+#define E_LITERAL_GENERIC 88 /* literal being cast to generic pointer */
+#define E_SFR_ADDR_RANGE 89 /* sfr address out of range */
+#define E_BITVAR_STORAGE 90 /* storage given for 'bit' variable */
+#define E_EXTERN_MISMATCH 91 /* extern declaration mismatches */
+#define W_NONRENT_ARGS 92 /* fptr non reentrant has args */
+#define W_DOUBLE_UNSUPPORTED 93 /* 'double' not supported yet */
+#define W_COMP_RANGE 94 /* comparison is always %s due to limited range of data type */
+#define W_FUNC_NO_RETURN 95 /* no return statement found */
+#define W_PRE_PROC_WARNING 96 /* preprocessor generated warning */
+#define W_STRUCT_AS_ARG 97 /* structure passed as argument */
+#define E_PREV_DEF_CONFLICT 98 /* previous definition conflicts with current */
+#define E_CODE_NO_INIT 99 /* vars in code space must have initializer */
+#define E_OPS_INTEGRAL 100 /* operans must be integral for certian assignments */
+#define E_TOO_MANY_PARMS 101 /* too many parameters */
+#define E_TOO_FEW_PARMS 102 /* to few parameters */
+#define E_FUNC_NO_CODE 103 /* fatalError */
+#define E_TYPE_MISMATCH_PARM 104 /* type mismatch for parameter */
+#define E_INVALID_FLOAT_CONST 105 /* invalid floating point literal string */
+#define E_INVALID_OP 106 /* invalid operand for some operation */
+#define E_SWITCH_NON_INTEGER 107 /* switch value not integer */
+#define E_CASE_NON_INTEGER 108 /* case value not integer */
+#define W_FUNC_TOO_LARGE 109 /* function too large */
+#define W_CONTROL_FLOW 110 /* control flow changed due to optimization */
+#define W_PTR_TYPE_INVALID 111 /* invalid type specifier for pointer */
+#define W_IMPLICIT_FUNC 112 /* function declared implicitly */
+#define W_CONTINUE 113 /* more than one line */
+#define I_EXTENDED_STACK_SPILS 114 /* too many spils occured */
+#define W_UNKNOWN_PRAGMA 115 /* #pragma directive unsupported */
+#define W_SHIFT_CHANGED 116 /* shift changed to zero */
+#define W_UNKNOWN_OPTION 117 /* don't know the option */
+#define W_UNSUPP_OPTION 118 /* processor reset has been redifned */
+#define W_UNKNOWN_FEXT 119 /* unknown file extension */
+#define W_TOO_MANY_SRC 120 /* can only compile one .c file at a time */
+#define I_CYCLOMATIC 121 /* information message */
+#define E_DIVIDE_BY_ZERO 122 /* / 0 */
+#define E_FUNC_BIT 123 /* function cannot return bit */
+#define E_CAST_ZERO 124 /* casting to from size zero */
+#define W_CONST_RANGE 125 /* constant too large */
+#define W_CODE_UNREACH 126 /* unreachable code */
+#define E_NONPTR2_GENPTR 127 /* non pointer cast to generic pointer */
+#define W_POSSBUG 128 /* possible code generation error */
+#define E_INCOMPAT_PTYPES 129 /* incampatible pointer assignment */
+#define W_UNKNOWN_MODEL 130 /* Unknown memory model */
+#define E_UNKNOWN_TARGET 131 /* target not defined */
+#define W_INDIR_BANKED 132 /* Indirect call to a banked fun */
+#define W_UNSUPPORTED_MODEL 133 /* Unsupported model, ignored */
+#define W_BANKED_WITH_NONBANKED 134 /* banked and nonbanked attributes mixed */
+#define W_BANKED_WITH_STATIC 135 /* banked and static mixed */
+#define W_INT_TO_GEN_PTR_CAST 136 /* Converting integer type to generic pointer. */
+#define W_ESC_SEQ_OOR_FOR_CHAR 137 /* Escape sequence of of range for char */
+#define E_INVALID_HEX 138 /* \x used with no following hex digits */
+#define W_FUNCPTR_IN_USING_ISR 139 /* Call via function pointer in ISR with using attribute. */
+#define E_NO_SUCH_BANK 140 /* 'using' attribute specifies non-existant register bank. */
+#define E_TWO_OR_MORE_DATA_TYPES 141
+#define E_LONG_OR_SHORT_INVALID 142 /* long or short invalid for .. */
+#define E_SIGNED_OR_UNSIGNED_INVALID 143 /* signed or unsigned invalid for .. */
+#define E_LONG_AND_SHORT_INVALID 144 /* long and short invalid for .. */
+#define E_SIGNED_AND_UNSIGNED_INVALID 145 /* signed and unsigned invalid for .. */
+#define E_TWO_OR_MORE_STORAGE_CLASSES 146
+#define W_EXCESS_INITIALIZERS 147 /* too much initializers for array */
+#define E_ARGUMENT_MISSING 148 /* Option requires an argument. */
+#define W_STRAY_BACKSLASH 149
+#define W_NEWLINE_IN_STRING 150
+#define E_CANNOT_USE_GENERIC_POINTER 151
+#define W_EXCESS_SHORT_OPTIONS 152
+#define E_VOID_VALUE_USED 153
+#define W_INTEGRAL2PTR_NOCAST 154
+#define W_PTR2INTEGRAL_NOCAST 155
+#define W_SYMBOL_NAME_TOO_LONG 156
+#define W_CAST_STRUCT_PTR 157 /* pointer to different structure types */
+#define W_LIT_OVERFLOW 158 /* overflow in implicit constant conversion */
+#define E_PARAM_NAME_OMITTED 159
+#define W_NO_FILE_ARG_IN_C1 160
+#define E_NEED_OPT_O_IN_C1 161
+#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 */
+#define W_SIZEOF_VOID 178 /* size of void is zero */
+#define W_POSSBUG2 179 /* possible bug, new format */
+#define W_COMPLEMENT 180 /* ~bit can give unexpected results */
+#define E_SHADOWREGS_NO_ISR 181 /* shadowregs keyword following non-ISR function */
+#define W_SFR_ABSRANGE 182 /* sfr at address out of range */
+#define E_BANKED_WITH_CALLEESAVES 183 /* banked and callee-saves mixed */
+#define W_INVALID_INT_CONST 184 /* invalid integer literal string */
+#define W_CMP_SU_CHAR 185 /* comparison of 'signed char' with 'unsigned char' requires promotion to int */
+#define W_INVALID_FLEXARRAY 186 /* invalid use of structure with flexible array member */
+#define W_C89_NO_FLEXARRAY 187 /* ISO C90 does not support flexible array members */
+#define E_FLEXARRAY_NOTATEND 188 /* flexible array member not at end of struct */
+#define E_FLEXARRAY_INEMPTYSTRCT 189 /* flexible array in otherwise empty struct */
+#define W_EMPTY_SOURCE_FILE 190 /* ISO C forbids an empty source file */
+#define W_BAD_PRAGMA_ARGUMENTS 191 /* #pragma %s: bad argument(s); pragma ignored */
+#define E_BAD_RESTRICT 192 /* Only pointers may be qualified with 'restrict' */
+#define E_BAD_INLINE 193 /* Only functions may be qualified with 'inline' */
+#define E_BAD_INT_ARGUMENT 194 /* Bad integer option argument */
+#define E_NEGATIVE_ARRAY_SIZE 195 /* Size of array '%s' is negative */
+#define MAX_ERROR_WARNING 256 /* size of disable warnings array */
+
+/** Describes the maximum error level that will be logged. Any level
+ * includes all of the levels listed after it.
+ *
+ *
+ */
+enum _ERROR_LOG_LEVEL {
+ /** Everything. Currently the same as PEDANTIC. */
+ ERROR_LEVEL_ALL,
+ /** All warnings, including those considered 'reasonable to use,
+ on occasion, in clean programs' (man 3 gcc). */
+ ERROR_LEVEL_PEDANTIC,
+ /** 'informational' warnings */
+ ERROR_LEVEL_INFO,
+ /** Most warnings. */
+ ERROR_LEVEL_WARNING,
+ /** Errors only. */
+ ERROR_LEVEL_ERROR
+};
+
+typedef enum _ERROR_LOG_LEVEL ERROR_LOG_LEVEL;
+
+struct SDCCERRG {
+ ERROR_LOG_LEVEL logLevel;
+ FILE *out;
+ int style; /* 1=MSVC */
+ char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
+};
+
+extern struct SDCCERRG _SDCCERRG;
+
+/** Sets the maximum error level to log.
+ See MAX_ERROR_LEVEL. The default is ERROR_LEVEL_ALL.
+*/
+void setErrorLogLevel (ERROR_LOG_LEVEL level);
+
+/*
+-------------------------------------------------------------------------------
+SetErrorOut - Set the error output file
+
+-------------------------------------------------------------------------------
+*/
+
+FILE * SetErrorOut(FILE *NewErrorOut) ;
+
+/*
+-------------------------------------------------------------------------------
+vwerror - Output a standard eror message with variable number of arguements
+
+-------------------------------------------------------------------------------
+*/
+
+void vwerror (int errNum, va_list marker) ;
+
+/*
+-------------------------------------------------------------------------------
+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) ;
+
+/*
+-------------------------------------------------------------------------------
+disabled - Disable output of specified warning
+-------------------------------------------------------------------------------
+*/
+
+void setWarningDisabled (int errNum) ;
+
+#endif
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\support\Util\SDCCerr.c\r
+SOURCE=.\SDCCerr.c\r
# End Source File\r
# Begin Source File\r
\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\support\Util\SDCCerr.h\r
+SOURCE=.\SDCCerr.h\r
# End Source File\r
# Begin Source File\r
\r
+++ /dev/null
-/*
- * SDCCerr - Standard error handler
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "SDCCerr.h"
-
-#define USE_STDOUT_FOR_ERRORS 0
-
-#if USE_STDOUT_FOR_ERRORS
-#define DEFAULT_ERROR_OUT stdout
-#else
-#define DEFAULT_ERROR_OUT stderr
-#endif
-
-struct SDCCERRG _SDCCERRG;
-
-extern char *filename ;
-extern int lineno ;
-extern int fatalError ;
-
-/* Currently the errIndex field must match the position of the
- * entry in the array. It is only included in order to make
- * human error lookup easier.
- */
-struct
-{
- int errIndex;
- ERROR_LOG_LEVEL errType;
- const char *errText;
-} ErrTab [] =
-{
-{ E_DUPLICATE, ERROR_LEVEL_ERROR,
- "Duplicate symbol '%s', symbol IGNORED" },
-{ E_SYNTAX_ERROR, ERROR_LEVEL_ERROR,
- "Syntax error, declaration ignored at '%s'" },
-{ E_CONST_EXPECTED, ERROR_LEVEL_ERROR,
- "Initializer element is not constant" },
-{ E_OUT_OF_MEM, ERROR_LEVEL_ERROR,
- "'malloc' failed file '%s' for size %ld" },
-{ E_FILE_OPEN_ERR, ERROR_LEVEL_ERROR,
- "'fopen' failed on file '%s'" },
-{ E_INVALID_OCLASS, ERROR_LEVEL_ERROR,
- "Internal Error Oclass invalid '%s'" },
-{ E_CANNOT_ALLOC, ERROR_LEVEL_ERROR,
- "Cannot allocate variable '%s'." },
-{ E_OLD_STYLE, ERROR_LEVEL_ERROR,
- "Old style C declaration. IGNORED '%s'" },
-{ E_STACK_OUT, ERROR_LEVEL_ERROR,
- "Out of stack Space. '%s' not allocated" },
-{ E_INTERNAL_ERROR, ERROR_LEVEL_ERROR,
- "FATAL Compiler Internal Error in file '%s' line number '%d' : %s \n"
- "Contact Author with source code" },
-{ E_LVALUE_REQUIRED, ERROR_LEVEL_ERROR,
- "'lvalue' required for '%s' operation." },
-{ E_TMPFILE_FAILED, ERROR_LEVEL_ERROR,
- "Creation of temp file failed" },
-{ E_FUNCTION_EXPECTED, ERROR_LEVEL_ERROR,
- "called object is not a function" },
-{ E_USING_ERROR, ERROR_LEVEL_ERROR,
- "'using', 'interrupt' or 'reentrant' must follow a function definiton.'%s'" },
-{ E_SFR_INIT, ERROR_LEVEL_ERROR,
- "Absolute address & initial value both cannot be specified for\n"
- " a 'sfr','sbit' storage class, initial value ignored '%s'" },
-{ W_INIT_IGNORED, ERROR_LEVEL_WARNING,
- "Variable in the storage class cannot be initialized.'%s'" },
-{ E_AUTO_ASSUMED, ERROR_LEVEL_ERROR,
- "variable '%s' must be static to have storage class in reentrant function" },
-{ E_AUTO_ABSA, ERROR_LEVEL_ERROR,
- "absolute address not allowed for automatic var '%s' in reentrant function " },
-{ W_INIT_WRONG, ERROR_LEVEL_WARNING,
- "Initializer different levels of indirections" },
-{ E_FUNC_REDEF, ERROR_LEVEL_ERROR,
- "Function name '%s' redefined " },
-{ E_ID_UNDEF, ERROR_LEVEL_ERROR,
- "Undefined identifier '%s'" },
-{ W_STACK_OVERFLOW, ERROR_LEVEL_WARNING,
- "stack exceeds 256 bytes for function '%s'" },
-{ E_NEED_ARRAY_PTR, ERROR_LEVEL_ERROR,
- "Array or pointer required for '%s' operation " },
-{ E_IDX_NOT_INT, ERROR_LEVEL_ERROR,
- "Array index not an integer" },
-{ W_IDX_OUT_OF_BOUNDS, ERROR_LEVEL_WARNING,
- "index %i is outside of the array bounds (array size is %i)" },
-{ E_STRUCT_UNION, ERROR_LEVEL_ERROR,
- "Structure/Union expected left of '.%s'" },
-{ E_NOT_MEMBER, ERROR_LEVEL_ERROR,
- "'%s' not a structure/union member" },
-{ E_PTR_REQD, ERROR_LEVEL_ERROR,
- "Pointer required" },
-{ E_UNARY_OP, ERROR_LEVEL_ERROR,
- "'unary %c': illegal operand" },
-{ E_CONV_ERR, ERROR_LEVEL_ERROR,
- "convertion error: integral promotion failed" },
-{ E_INT_REQD, ERROR_LEVEL_ERROR,
- "type must be INT for bit field definition" },
-{ E_BITFLD_SIZE, ERROR_LEVEL_ERROR,
- "bit field size cannot be greater than int (%d bits)" },
-{ W_TRUNCATION, ERROR_LEVEL_WARNING,
- "high order truncation might occur" },
-{ E_CODE_WRITE, ERROR_LEVEL_ERROR,
- "Attempt to assign value to a constant variable (%s)" },
-{ E_LVALUE_CONST, ERROR_LEVEL_ERROR,
- "Lvalue specifies constant object" },
-{ E_ILLEGAL_ADDR, ERROR_LEVEL_ERROR,
- "'&' illegal operand , %s" },
-{ E_CAST_ILLEGAL, ERROR_LEVEL_ERROR,
- "illegal cast (cast cannot be aggregate)" },
-{ E_MULT_INTEGRAL, ERROR_LEVEL_ERROR,
- "'*' bad operand" },
-{ E_ARG_ERROR, ERROR_LEVEL_ERROR,
- "Argument count error, argument ignored" },
-{ E_ARG_COUNT, ERROR_LEVEL_ERROR,
- "Function was expecting more arguments" },
-{ E_FUNC_EXPECTED, ERROR_LEVEL_ERROR,
- "Function name expected '%s'. ANSI style declaration REQUIRED" },
-{ E_PLUS_INVALID, ERROR_LEVEL_ERROR,
- "invalid operand '%s'" },
-{ E_PTR_PLUS_PTR, ERROR_LEVEL_ERROR,
- "pointer + pointer invalid" },
-{ E_SHIFT_OP_INVALID, ERROR_LEVEL_ERROR,
- "invalid operand for shift operator" },
-{ E_COMPARE_OP, ERROR_LEVEL_ERROR,
- "compare operand cannot be struct/union" },
-{ E_BITWISE_OP, ERROR_LEVEL_ERROR,
- "operand invalid for bitwise operation" },
-{ E_ANDOR_OP, ERROR_LEVEL_ERROR,
- "Invalid operand for '&&' or '||'" },
-{ E_TYPE_MISMATCH, ERROR_LEVEL_ERROR,
- "indirections to different types %s %s " },
-{ E_AGGR_ASSIGN, ERROR_LEVEL_ERROR,
- "cannot assign values to aggregates" },
-{ E_ARRAY_DIRECT, ERROR_LEVEL_ERROR,
- "bit Arrays can be accessed by literal index only" },
-{ E_BIT_ARRAY, ERROR_LEVEL_ERROR,
- "Array or Pointer to bit|sbit|sfr not allowed.'%s'" },
-{ E_DUPLICATE_TYPEDEF, ERROR_LEVEL_ERROR,
- "typedef/enum '%s' duplicate. Previous definiton Ignored" },
-{ E_ARG_TYPE, ERROR_LEVEL_ERROR,
- "Actual Argument type different from declaration %d" },
-{ E_RET_VALUE, ERROR_LEVEL_ERROR,
- "Function return value mismatch" },
-{ E_FUNC_AGGR, ERROR_LEVEL_ERROR,
- "Function cannot return aggregate. Func body ignored" },
-{ E_FUNC_DEF, ERROR_LEVEL_ERROR,
- "ANSI Style declaration needed" },
-{ E_DUPLICATE_LABEL, ERROR_LEVEL_ERROR,
- "Duplicate label '%s'" },
-{ E_LABEL_UNDEF, ERROR_LEVEL_ERROR,
- "Label undefined '%s'" },
-{ E_FUNC_VOID, ERROR_LEVEL_ERROR,
- "void function returning value" },
-{ W_VOID_FUNC, ERROR_LEVEL_WARNING,
- "function '%s' must return value" },
-{ W_RETURN_MISMATCH, ERROR_LEVEL_WARNING,
- "function return value mismatch" },
-{ E_CASE_CONTEXT, ERROR_LEVEL_ERROR,
- "'case/default' found without 'switch'. Statement ignored" },
-{ E_CASE_CONSTANT, ERROR_LEVEL_ERROR,
- "'case' expression not constant. Statement ignored" },
-{ E_BREAK_CONTEXT, ERROR_LEVEL_ERROR,
- "'break/continue' statement out of context" },
-{ E_SWITCH_AGGR, ERROR_LEVEL_ERROR,
- "nonintegral used in switch expression" },
-{ E_FUNC_BODY, ERROR_LEVEL_ERROR,
- "function '%s' already has body" },
-{ E_UNKNOWN_SIZE, ERROR_LEVEL_ERROR,
- "attempt to allocate variable of unknown size '%s'" },
-{ E_AUTO_AGGR_INIT, ERROR_LEVEL_ERROR,
- "aggregate 'auto' variable '%s' cannot be initialized" },
-{ E_INIT_COUNT, ERROR_LEVEL_ERROR,
- "too many initializers" },
-{ E_INIT_STRUCT, ERROR_LEVEL_ERROR,
- "struct/union/array '%s': initialization needs curly braces" },
-{ E_INIT_NON_ADDR, ERROR_LEVEL_ERROR,
- "non-address initialization expression" },
-{ E_INT_DEFINED, ERROR_LEVEL_ERROR,
- "interrupt no '%d' already has a service routine '%s'" },
-{ E_INT_ARGS, ERROR_LEVEL_ERROR,
- "interrupt routine cannot have arguments, arguments ingored" },
-{ E_INCLUDE_MISSING, ERROR_LEVEL_ERROR,
- "critical compiler #include file missing. " },
-{ E_NO_MAIN, ERROR_LEVEL_ERROR,
- "function 'main' undefined" },
-{ E_EXTERN_INIT, ERROR_LEVEL_ERROR,
- "'extern' variable '%s' cannot be initialised " },
-{ E_PRE_PROC_FAILED, ERROR_LEVEL_ERROR,
- "Pre-Processor %s" },
-{ E_DUP_FAILED, ERROR_LEVEL_ERROR,
- "_dup call failed" },
-{ E_INCOMPAT_TYPES, ERROR_LEVEL_ERROR,
- "incompatible types" },
-{ W_LOOP_ELIMINATE, ERROR_LEVEL_WARNING,
- "'while' loop with 'zero' constant. Loop eliminated" },
-{ W_NO_SIDE_EFFECTS, ERROR_LEVEL_WARNING,
- "%s expression has NO side effects. Expr eliminated" },
-{ W_CONST_TOO_LARGE, ERROR_LEVEL_PEDANTIC,
- "constant value '%s', out of range." },
-{ W_BAD_COMPARE, ERROR_LEVEL_WARNING,
- "comparison will either, ALWAYs succeed or ALWAYs fail" },
-{ E_TERMINATING, ERROR_LEVEL_ERROR,
- "Compiler Terminating , contact author with source" },
-{ W_LOCAL_NOINIT, ERROR_LEVEL_WARNING,
- "'auto' variable '%s' may be used before initialization" },
-{ W_NO_REFERENCE, ERROR_LEVEL_WARNING,
- "in function %s unreferenced %s : '%s'" },
-{ E_OP_UNKNOWN_SIZE, ERROR_LEVEL_ERROR,
- "unknown size for operand" },
-{ W_LONG_UNSUPPORTED, ERROR_LEVEL_WARNING,
- "'%s' 'long' not supported , declared as 'int'." },
-{ E_LITERAL_GENERIC, ERROR_LEVEL_ERROR,
- //"illegal cast of LITERAL value to 'generic' pointer: assuming 'xdata' pointer" },
- "illegal cast of LITERAL value to 'generic' pointer" },
-{ E_SFR_ADDR_RANGE, ERROR_LEVEL_ERROR,
- "%s '%s' address out of range" },
-{ E_BITVAR_STORAGE, ERROR_LEVEL_ERROR,
- "storage class CANNOT be specified for bit variable '%s'" },
-{ E_EXTERN_MISMATCH, ERROR_LEVEL_ERROR,
- "extern definition for '%s' mismatches with declaration." },
-{ W_NONRENT_ARGS, ERROR_LEVEL_WARNING,
- "Functions called via pointers must be 'reentrant' to take arguments" },
-{ W_DOUBLE_UNSUPPORTED, ERROR_LEVEL_WARNING,
- "type 'double' not supported assuming 'float'" },
-{ W_COMP_RANGE, ERROR_LEVEL_WARNING,
- "comparison is always %s due to limited range of data type" },
-{ W_FUNC_NO_RETURN, ERROR_LEVEL_WARNING,
- "no 'return' statement found for function '%s'" },
-{ W_PRE_PROC_WARNING, ERROR_LEVEL_WARNING,
- "Pre-Processor %s" },
-{ W_STRUCT_AS_ARG, ERROR_LEVEL_WARNING,
- "structure '%s' passed as function argument changed to pointer" },
-{ E_PREV_DEF_CONFLICT, ERROR_LEVEL_ERROR,
- "conflict with previous definition of '%s' for attribute '%s'" },
-{ E_CODE_NO_INIT, ERROR_LEVEL_ERROR,
- "variable '%s' declared in code space must have initialiser" },
-{ E_OPS_INTEGRAL, ERROR_LEVEL_ERROR,
- "operands not integral for assignment operation" },
-{ E_TOO_MANY_PARMS, ERROR_LEVEL_ERROR,
- "too many parameters " },
-{ E_TOO_FEW_PARMS, ERROR_LEVEL_ERROR,
- "too few parameters" },
-{ E_FUNC_NO_CODE, ERROR_LEVEL_ERROR,
- "code not generated for '%s' due to previous errors" },
-{ E_TYPE_MISMATCH_PARM, ERROR_LEVEL_ERROR,
- "type mismatch for parameter number %d" },
-{ E_INVALID_FLOAT_CONST, ERROR_LEVEL_ERROR,
- "invalid float constant '%s'" },
-{ E_INVALID_OP, ERROR_LEVEL_ERROR,
- "invalid operand for '%s' operation" },
-{ E_SWITCH_NON_INTEGER, ERROR_LEVEL_ERROR,
- "switch value not an integer" },
-{ E_CASE_NON_INTEGER, ERROR_LEVEL_ERROR,
- "case label not an integer" },
-{ W_FUNC_TOO_LARGE, ERROR_LEVEL_WARNING,
- "function '%s' too large for global optimization" },
-{ W_CONTROL_FLOW, ERROR_LEVEL_PEDANTIC,
- "conditional flow changed by optimizer: so said EVELYN the modified DOG" },
-{ W_PTR_TYPE_INVALID, ERROR_LEVEL_WARNING,
- "invalid type specifier for pointer type; specifier ignored" },
-{ W_IMPLICIT_FUNC, ERROR_LEVEL_WARNING,
- "function '%s' implicit declaration" },
-{ W_CONTINUE, ERROR_LEVEL_WARNING,
- "%s" },
-{ I_EXTENDED_STACK_SPILS, ERROR_LEVEL_INFO,
- "extended stack by %d bytes for compiler temp(s) :in function '%s': %s " },
-{ W_UNKNOWN_PRAGMA, ERROR_LEVEL_WARNING,
- "unknown or unsupported #pragma directive '%s'" },
-{ W_SHIFT_CHANGED, ERROR_LEVEL_PEDANTIC,
- "%s shifting more than size of object changed to zero" },
-{ W_UNKNOWN_OPTION, ERROR_LEVEL_WARNING,
- "unknown compiler option '%s' ignored" },
-{ W_UNSUPP_OPTION, ERROR_LEVEL_WARNING,
- "option '%s' no longer supported '%s' " },
-{ W_UNKNOWN_FEXT, ERROR_LEVEL_WARNING,
- "don't know what to do with file '%s'. file extension unsupported" },
-{ W_TOO_MANY_SRC, ERROR_LEVEL_WARNING,
- "cannot compile more than one source file. file '%s' ignored" },
-{ I_CYCLOMATIC, ERROR_LEVEL_INFO,
- "function '%s', # edges %d , # nodes %d , cyclomatic complexity %d" },
-{ E_DIVIDE_BY_ZERO, ERROR_LEVEL_ERROR,
- "dividing by ZERO" },
-{ E_FUNC_BIT, ERROR_LEVEL_ERROR,
- "function cannot return 'bit'" },
-{ E_CAST_ZERO, ERROR_LEVEL_ERROR,
- "casting from to type 'void' is illegal" },
-{ W_CONST_RANGE, ERROR_LEVEL_WARNING,
- "constant is out of range %s" },
-{ W_CODE_UNREACH, ERROR_LEVEL_PEDANTIC,
- "unreachable code" },
-{ E_NONPTR2_GENPTR, ERROR_LEVEL_ERROR,
- "non-pointer type cast to generic pointer" },
-{ W_POSSBUG, ERROR_LEVEL_WARNING,
- "possible code generation error at line %d,\n"
- " send source to sandeep.dutta@usa.net" },
-{ E_INCOMPAT_PTYPES, ERROR_LEVEL_ERROR,
- "pointer types incompatible " },
-{ W_UNKNOWN_MODEL, ERROR_LEVEL_WARNING,
- "unknown memory model at %s : %d" },
-{ E_UNKNOWN_TARGET, ERROR_LEVEL_ERROR,
- "cannot generate code for target '%s'" },
-{ W_INDIR_BANKED, ERROR_LEVEL_WARNING,
- "Indirect call to a banked function not implemented." },
-{ W_UNSUPPORTED_MODEL, ERROR_LEVEL_WARNING,
- "Model '%s' not supported for %s, ignored." },
-{ W_BANKED_WITH_NONBANKED, ERROR_LEVEL_WARNING,
- "Both banked and nonbanked attributes used. nonbanked wins." },
-{ W_BANKED_WITH_STATIC, ERROR_LEVEL_WARNING,
- "Both banked and static used. static wins." },
-{ W_INT_TO_GEN_PTR_CAST, ERROR_LEVEL_WARNING,
- "converting integer type to generic pointer: assuming XDATA" },
-{ W_ESC_SEQ_OOR_FOR_CHAR, ERROR_LEVEL_WARNING,
- "escape sequence out of range for char." },
-{ E_INVALID_HEX, ERROR_LEVEL_ERROR,
- "\\x used with no following hex digits." },
-{ W_FUNCPTR_IN_USING_ISR, ERROR_LEVEL_WARNING,
- "call via function pointer in ISR using non-zero register bank.\n"
- " Cannot determine which register bank to save." },
-{ E_NO_SUCH_BANK, ERROR_LEVEL_ERROR,
- "called function uses unknown register bank %d." },
-{ E_TWO_OR_MORE_DATA_TYPES, ERROR_LEVEL_ERROR,
- "two or more data types in declaration for '%s'" },
-{ E_LONG_OR_SHORT_INVALID, ERROR_LEVEL_ERROR,
- "long or short specified for %s '%s'" },
-{ E_SIGNED_OR_UNSIGNED_INVALID, ERROR_LEVEL_ERROR,
- "signed or unsigned specified for %s '%s'" },
-{ E_LONG_AND_SHORT_INVALID, ERROR_LEVEL_ERROR,
- "both long and short specified for %s '%s'" },
-{ E_SIGNED_AND_UNSIGNED_INVALID, ERROR_LEVEL_ERROR,
- "both signed and unsigned specified for %s '%s'" },
-{ E_TWO_OR_MORE_STORAGE_CLASSES, ERROR_LEVEL_ERROR,
- "two or more storage classes in declaration for '%s'" },
-{ W_EXCESS_INITIALIZERS, ERROR_LEVEL_WARNING,
- "excess elements in %s initializer after '%s'" },
-{ E_ARGUMENT_MISSING, ERROR_LEVEL_ERROR,
- "Option %s requires an argument." },
-{ W_STRAY_BACKSLASH, ERROR_LEVEL_WARNING,
- "stray '\\' at column %d" },
-{ W_NEWLINE_IN_STRING, ERROR_LEVEL_WARNING,
- "newline in string constant" },
-{ E_CANNOT_USE_GENERIC_POINTER, ERROR_LEVEL_ERROR,
- "cannot use generic pointer %s to initialize %s" },
-{ W_EXCESS_SHORT_OPTIONS, ERROR_LEVEL_WARNING,
- "Only one short option can be specified at a time. Rest of %s ignored." },
-{ E_VOID_VALUE_USED, ERROR_LEVEL_ERROR,
- "void value not ignored as it ought to be" },
-{ W_INTEGRAL2PTR_NOCAST, ERROR_LEVEL_WARNING,
- "converting integral to pointer without a cast" },
-{ W_PTR2INTEGRAL_NOCAST, ERROR_LEVEL_WARNING,
- "converting pointer to integral without a cast" },
-{ W_SYMBOL_NAME_TOO_LONG, ERROR_LEVEL_WARNING,
- "symbol name too long, truncated to %d chars" },
-{ W_CAST_STRUCT_PTR,ERROR_LEVEL_WARNING,
- "cast of struct %s * to struct %s * " },
-{ W_LIT_OVERFLOW, ERROR_LEVEL_WARNING,
- "overflow in implicit constant conversion" },
-{ E_PARAM_NAME_OMITTED, ERROR_LEVEL_ERROR,
- "in function %s: name omitted for parameter %d" },
-{ W_NO_FILE_ARG_IN_C1, ERROR_LEVEL_WARNING,
- "only standard input is compiled in c1 mode. file '%s' ignored" },
-{ E_NEED_OPT_O_IN_C1, ERROR_LEVEL_ERROR,
- "must specify assembler file name with -o in c1 mode" },
-{ W_ILLEGAL_OPT_COMBINATION, ERROR_LEVEL_WARNING,
- "illegal combination of options (--c1mode, -E, -S -c)" },
-{ E_DUPLICATE_MEMBER, ERROR_LEVEL_ERROR,
- "duplicate %s member '%s'" },
-{ E_STACK_VIOLATION, ERROR_LEVEL_ERROR,
- "'%s' internal stack %s" },
-{ W_INT_OVL, ERROR_LEVEL_PEDANTIC,
- "integer overflow in expression" },
-{ W_USELESS_DECL, ERROR_LEVEL_WARNING,
- "useless declaration (possible use of keyword as variable name)" },
-{ E_INT_BAD_INTNO, ERROR_LEVEL_ERROR,
- "interrupt number '%u' is not valid" },
-{ W_BITFLD_NAMED, ERROR_LEVEL_WARNING,
- "ignoring declarator of 0 length bitfield" },
-{ E_FUNC_ATTR, ERROR_LEVEL_ERROR,
- "function attribute following non-function declaration"},
-{ W_SAVE_RESTORE, ERROR_LEVEL_PEDANTIC,
- "unmatched #pragma save and #pragma restore" },
-{ E_INVALID_CRITICAL, ERROR_LEVEL_ERROR,
- "not allowed in a critical section" },
-{ E_NOT_ALLOWED, ERROR_LEVEL_ERROR,
- "%s not allowed here" },
-{ E_BAD_TAG, ERROR_LEVEL_ERROR,
- "'%s' is not a %s tag" },
-{ E_ENUM_NON_INTEGER, ERROR_LEVEL_ERROR,
- "enumeration constant not an integer" },
-{ W_DEPRECATED_PRAGMA, ERROR_LEVEL_WARNING,
- "pragma %s is deprecated, please see documentation for details" },
-{ E_SIZEOF_INCOMPLETE_TYPE, ERROR_LEVEL_ERROR,
- "sizeof applied to an incomplete type" },
-{ E_PREVIOUS_DEF, ERROR_LEVEL_ERROR,
- "previously defined here" },
-{ W_SIZEOF_VOID, ERROR_LEVEL_WARNING,
- "size of void is zero" },
-{ W_POSSBUG2, ERROR_LEVEL_WARNING,
- "possible code generation error at %s line %d,\n"
- " please report problem and send source code at SDCC-USER list on SF.Net"},
-{ W_COMPLEMENT, ERROR_LEVEL_WARNING,
- "using ~ on bit/bool/unsigned char variables can give unexpected results due to promotion to int" },
-{ E_SHADOWREGS_NO_ISR, ERROR_LEVEL_ERROR,
- "ISR function attribute 'shadowregs' following non-ISR function '%s'" },
-{ W_SFR_ABSRANGE, ERROR_LEVEL_WARNING,
- "absolute address for sfr '%s' probably out of range." },
-{ E_BANKED_WITH_CALLEESAVES, ERROR_LEVEL_ERROR,
- "Both banked and callee-saves cannot be used together." },
-{ W_INVALID_INT_CONST, ERROR_LEVEL_WARNING,
- "integer constant '%s' out of range, truncated to %.0lf." },
-{ W_CMP_SU_CHAR, ERROR_LEVEL_PEDANTIC,
- "comparison of 'signed char' with 'unsigned char' requires promotion to int" },
-{ W_INVALID_FLEXARRAY, ERROR_LEVEL_WARNING,
- "invalid use of structure with flexible array member" },
-{ W_C89_NO_FLEXARRAY, ERROR_LEVEL_PEDANTIC,
- "ISO C90 does not support flexible array members" },
-{ E_FLEXARRAY_NOTATEND, ERROR_LEVEL_ERROR,
- "flexible array member not at end of struct" },
-{ E_FLEXARRAY_INEMPTYSTRCT, ERROR_LEVEL_ERROR,
- "flexible array in otherwise empty struct" },
-{ W_EMPTY_SOURCE_FILE, ERROR_LEVEL_WARNING,
- "ISO C forbids an empty source file" },
-{ W_BAD_PRAGMA_ARGUMENTS, ERROR_LEVEL_WARNING,
- "#pragma %s: bad argument(s); pragma ignored" },
-{ E_BAD_RESTRICT, ERROR_LEVEL_ERROR,
- "Only pointers may be qualified with 'restrict'" },
-{ E_BAD_INLINE, ERROR_LEVEL_ERROR,
- "Only functions may be qualified with 'inline'" },
-{ E_BAD_INT_ARGUMENT, ERROR_LEVEL_ERROR,
- "Bad integer argument for option %s" },
-{ E_NEGATIVE_ARRAY_SIZE, ERROR_LEVEL_ERROR,
- "Size of array '%s' is negative" },
-};
-
-/*
--------------------------------------------------------------------------------
-SetErrorOut - Set the error output file
-
--------------------------------------------------------------------------------
-*/
-
-FILE *SetErrorOut(FILE *NewErrorOut)
-{
- _SDCCERRG.out = NewErrorOut ;
-
- return NewErrorOut ;
-}
-
-void setErrorLogLevel (ERROR_LOG_LEVEL level)
-{
- _SDCCERRG.logLevel = level;
-}
-
-/*
--------------------------------------------------------------------------------
-vwerror - Output a standard eror message with variable number of arguements
-
--------------------------------------------------------------------------------
-*/
-
-void vwerror (int errNum, va_list marker)
-{
- if (_SDCCERRG.out == NULL) {
- _SDCCERRG.out = DEFAULT_ERROR_OUT;
- }
-
- if (ErrTab[errNum].errIndex != errNum) {
- fprintf(_SDCCERRG.out,
- "Internal error: error table entry for %d inconsistent.", errNum);
- }
-
- if ((ErrTab[errNum].errType >= _SDCCERRG.logLevel) && (!_SDCCERRG.disabled[errNum])) {
- if ( ErrTab[errNum].errType == ERROR_LEVEL_ERROR )
- fatalError++ ;
-
- if ( filename && lineno ) {
- if(_SDCCERRG.style)
- fprintf(_SDCCERRG.out, "%s(%d) : ",filename,lineno);
- else
- fprintf(_SDCCERRG.out, "%s:%d: ",filename,lineno);
- } else if (lineno) {
- fprintf(_SDCCERRG.out, "at %d: ", lineno);
- } else {
- fprintf(_SDCCERRG.out, "-:0: ");
- }
-
- switch(ErrTab[errNum].errType)
- {
- case ERROR_LEVEL_ERROR:
- fprintf(_SDCCERRG.out, "error %d: ", errNum);
- break;
- case ERROR_LEVEL_WARNING:
- case ERROR_LEVEL_PEDANTIC:
- fprintf(_SDCCERRG.out, "warning %d: ", errNum);
- break;
- case ERROR_LEVEL_INFO:
- fprintf(_SDCCERRG.out, "info %d: ", errNum);
- break;
- default:
- break;
- }
-
- vfprintf(_SDCCERRG.out, ErrTab[errNum].errText,marker);
- fprintf(_SDCCERRG.out, "\n");
- } else {
- /* Below the logging level, drop. */
- }
-}
-/*
--------------------------------------------------------------------------------
-werror - Output a standard eror message with variable number of arguements
-
--------------------------------------------------------------------------------
-*/
-
-void werror (int errNum, ...)
-{
- va_list marker;
- va_start(marker,errNum);
- vwerror(errNum, marker);
- va_end(marker);
-}
-
-/*
--------------------------------------------------------------------------------
-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, ...)
-{
- char *oldFilename = filename;
- int oldLineno = lineno;
- va_list marker;
-
- filename = newFilename;
- lineno = newLineno;
-
- va_start(marker,errNum);
- vwerror(errNum, marker);
- va_end(marker);
-
- filename = oldFilename;
- lineno = oldLineno;
-}
-
-
-/*
--------------------------------------------------------------------------------
-fatal - Output a standard eror message with variable number of arguements and
- call exit()
--------------------------------------------------------------------------------
-*/
-void fatal (int exitCode, int errNum, ...)
-{
- va_list marker;
- va_start(marker,errNum);
- vwerror(errNum, marker);
- va_end(marker);
-
- exit(exitCode);
-}
-
-/*
--------------------------------------------------------------------------------
-style - Change the output error style to MSVC
--------------------------------------------------------------------------------
-*/
-
-void MSVC_style (int style)
-{
- _SDCCERRG.style = style;
-}
-
-/*
--------------------------------------------------------------------------------
-disabled - Disable output of specified warning
--------------------------------------------------------------------------------
-*/
-
-void setWarningDisabled (int errNum)
-{
- if ((errNum < MAX_ERROR_WARNING) && (ErrTab[errNum].errType <= ERROR_LEVEL_WARNING))
- _SDCCERRG.disabled[errNum] = 1;
-}
+++ /dev/null
-/*
-===============================================================================
-SDCCERR - SDCC Standard error handler
-
-
-===============================================================================
-*/
-
-#if !defined(__SDCCERR_H)
-
-#define __SDCCERR_H
-
-#include <stdio.h>
-#include <stdarg.h>
-
-/* ERROR Message Definition */
-
-#define E_DUPLICATE 0 /* Duplicate variable */
-#define E_SYNTAX_ERROR 1 /* Syntax Error */
-#define E_CONST_EXPECTED 2 /* constant expected */
-#define E_OUT_OF_MEM 3 /* malloc failed */
-#define E_FILE_OPEN_ERR 4 /* File open failed */
-#define E_INVALID_OCLASS 5 /* output class invalid */
-#define E_CANNOT_ALLOC 6 /* cannot allocate space*/
-#define E_OLD_STYLE 7 /* old style C ! allowed*/
-#define E_STACK_OUT 8 /* v r out of stack */
-#define E_INTERNAL_ERROR 9 /* unable to alloc tvar */
-#define E_LVALUE_REQUIRED 10 /* lvalue required */
-#define E_TMPFILE_FAILED 11 /* tmpfile creation failed */
-#define E_FUNCTION_EXPECTED 12 /* function expected */
-#define E_USING_ERROR 13 /* using in error */
-#define E_SFR_INIT 14 /* init error for sbit */
-#define W_INIT_IGNORED 15 /* initialiser ignored */
-#define E_AUTO_ASSUMED 16 /* sclass auto assumed */
-#define E_AUTO_ABSA 17 /* abs addr for auto var*/
-#define W_INIT_WRONG 18 /* initializer type != */
-#define E_FUNC_REDEF 19 /* func name redefined */
-#define E_ID_UNDEF 20 /* identifer undefined */
-#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 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 */
-#define E_UNARY_OP 28 /* unary operator bad op*/
-#define E_CONV_ERR 29 /* conversion error */
-#define E_INT_REQD 30 /* bit field must be int*/
-#define E_BITFLD_SIZE 31 /* bit field size > 16 */
-#define W_TRUNCATION 32 /* high order trucation */
-#define E_CODE_WRITE 33 /* trying 2 write to code */
-#define E_LVALUE_CONST 34 /* lvalue is a const */
-#define E_ILLEGAL_ADDR 35 /* address of bit */
-#define E_CAST_ILLEGAL 36 /* cast illegal */
-#define E_MULT_INTEGRAL 37 /* mult opernd must b integral */
-#define E_ARG_ERROR 38 /* argument count error*/
-#define E_ARG_COUNT 39 /* func expecting more */
-#define E_FUNC_EXPECTED 40 /* func name expected */
-#define E_PLUS_INVALID 41 /* plus invalid */
-#define E_PTR_PLUS_PTR 42 /* pointer + pointer */
-#define E_SHIFT_OP_INVALID 43 /* shft op op invalid */
-#define E_COMPARE_OP 44 /* compare operand */
-#define E_BITWISE_OP 45 /* bit op invalid op */
-#define E_ANDOR_OP 46 /* && || op invalid */
-#define E_TYPE_MISMATCH 47 /* type mismatch */
-#define E_AGGR_ASSIGN 48 /* aggr assign */
-#define E_ARRAY_DIRECT 49 /* array indexing in */
-#define E_BIT_ARRAY 50 /* bit array not allowed */
-#define E_DUPLICATE_TYPEDEF 51 /* typedef name duplicate */
-#define E_ARG_TYPE 52 /* arg type mismatch */
-#define E_RET_VALUE 53 /* return value mismatch */
-#define E_FUNC_AGGR 54 /* function returing aggr */
-#define E_FUNC_DEF 55 /* ANSI Style def neede */
-#define E_DUPLICATE_LABEL 56 /* duplicate label name */
-#define E_LABEL_UNDEF 57 /* undefined label used */
-#define E_FUNC_VOID 58 /* void func ret value */
-#define W_VOID_FUNC 59 /* func must return value */
-#define W_RETURN_MISMATCH 60 /* return value mismatch */
-#define E_CASE_CONTEXT 61 /* case stmnt without switch */
-#define E_CASE_CONSTANT 62 /* case expression ! const */
-#define E_BREAK_CONTEXT 63 /* break statement invalid */
-#define E_SWITCH_AGGR 64 /* non integral for switch */
-#define E_FUNC_BODY 65 /* func has body already */
-#define E_UNKNOWN_SIZE 66 /* variable has unknown size */
-#define E_AUTO_AGGR_INIT 67 /* auto aggregates no init */
-#define E_INIT_COUNT 68 /* too many initializers */
-#define E_INIT_STRUCT 69 /* struct init wrong */
-#define E_INIT_NON_ADDR 70 /* non address xpr for init */
-#define E_INT_DEFINED 71 /* interrupt already over */
-#define E_INT_ARGS 72 /* interrupt rtn cannot have args */
-#define E_INCLUDE_MISSING 73 /* compiler include missing */
-#define E_NO_MAIN 74 /* main function undefined */
-#define E_EXTERN_INIT 75 /* extern variable initialised */
-#define E_PRE_PROC_FAILED 76 /* preprocessor failed */
-#define E_DUP_FAILED 77 /* file DUP failed */
-#define E_INCOMPAT_TYPES 78 /* incompatible types casting */
-#define W_LOOP_ELIMINATE 79 /* loop eliminated */
-#define W_NO_SIDE_EFFECTS 80 /* expression has no side effects */
-#define W_CONST_TOO_LARGE 81 /* constant out of range */
-#define W_BAD_COMPARE 82 /* bad comparison */
-#define E_TERMINATING 83 /* compiler terminating */
-#define W_LOCAL_NOINIT 84 /* local reference before assignment */
-#define W_NO_REFERENCE 85 /* no reference to local variable */
-#define E_OP_UNKNOWN_SIZE 86 /* unknown size for operand */
-#define W_LONG_UNSUPPORTED 87 /* 'long' not supported yet */
-#define E_LITERAL_GENERIC 88 /* literal being cast to generic pointer */
-#define E_SFR_ADDR_RANGE 89 /* sfr address out of range */
-#define E_BITVAR_STORAGE 90 /* storage given for 'bit' variable */
-#define E_EXTERN_MISMATCH 91 /* extern declaration mismatches */
-#define W_NONRENT_ARGS 92 /* fptr non reentrant has args */
-#define W_DOUBLE_UNSUPPORTED 93 /* 'double' not supported yet */
-#define W_COMP_RANGE 94 /* comparison is always %s due to limited range of data type */
-#define W_FUNC_NO_RETURN 95 /* no return statement found */
-#define W_PRE_PROC_WARNING 96 /* preprocessor generated warning */
-#define W_STRUCT_AS_ARG 97 /* structure passed as argument */
-#define E_PREV_DEF_CONFLICT 98 /* previous definition conflicts with current */
-#define E_CODE_NO_INIT 99 /* vars in code space must have initializer */
-#define E_OPS_INTEGRAL 100 /* operans must be integral for certian assignments */
-#define E_TOO_MANY_PARMS 101 /* too many parameters */
-#define E_TOO_FEW_PARMS 102 /* to few parameters */
-#define E_FUNC_NO_CODE 103 /* fatalError */
-#define E_TYPE_MISMATCH_PARM 104 /* type mismatch for parameter */
-#define E_INVALID_FLOAT_CONST 105 /* invalid floating point literal string */
-#define E_INVALID_OP 106 /* invalid operand for some operation */
-#define E_SWITCH_NON_INTEGER 107 /* switch value not integer */
-#define E_CASE_NON_INTEGER 108 /* case value not integer */
-#define W_FUNC_TOO_LARGE 109 /* function too large */
-#define W_CONTROL_FLOW 110 /* control flow changed due to optimization */
-#define W_PTR_TYPE_INVALID 111 /* invalid type specifier for pointer */
-#define W_IMPLICIT_FUNC 112 /* function declared implicitly */
-#define W_CONTINUE 113 /* more than one line */
-#define I_EXTENDED_STACK_SPILS 114 /* too many spils occured */
-#define W_UNKNOWN_PRAGMA 115 /* #pragma directive unsupported */
-#define W_SHIFT_CHANGED 116 /* shift changed to zero */
-#define W_UNKNOWN_OPTION 117 /* don't know the option */
-#define W_UNSUPP_OPTION 118 /* processor reset has been redifned */
-#define W_UNKNOWN_FEXT 119 /* unknown file extension */
-#define W_TOO_MANY_SRC 120 /* can only compile one .c file at a time */
-#define I_CYCLOMATIC 121 /* information message */
-#define E_DIVIDE_BY_ZERO 122 /* / 0 */
-#define E_FUNC_BIT 123 /* function cannot return bit */
-#define E_CAST_ZERO 124 /* casting to from size zero */
-#define W_CONST_RANGE 125 /* constant too large */
-#define W_CODE_UNREACH 126 /* unreachable code */
-#define E_NONPTR2_GENPTR 127 /* non pointer cast to generic pointer */
-#define W_POSSBUG 128 /* possible code generation error */
-#define E_INCOMPAT_PTYPES 129 /* incampatible pointer assignment */
-#define W_UNKNOWN_MODEL 130 /* Unknown memory model */
-#define E_UNKNOWN_TARGET 131 /* target not defined */
-#define W_INDIR_BANKED 132 /* Indirect call to a banked fun */
-#define W_UNSUPPORTED_MODEL 133 /* Unsupported model, ignored */
-#define W_BANKED_WITH_NONBANKED 134 /* banked and nonbanked attributes mixed */
-#define W_BANKED_WITH_STATIC 135 /* banked and static mixed */
-#define W_INT_TO_GEN_PTR_CAST 136 /* Converting integer type to generic pointer. */
-#define W_ESC_SEQ_OOR_FOR_CHAR 137 /* Escape sequence of of range for char */
-#define E_INVALID_HEX 138 /* \x used with no following hex digits */
-#define W_FUNCPTR_IN_USING_ISR 139 /* Call via function pointer in ISR with using attribute. */
-#define E_NO_SUCH_BANK 140 /* 'using' attribute specifies non-existant register bank. */
-#define E_TWO_OR_MORE_DATA_TYPES 141
-#define E_LONG_OR_SHORT_INVALID 142 /* long or short invalid for .. */
-#define E_SIGNED_OR_UNSIGNED_INVALID 143 /* signed or unsigned invalid for .. */
-#define E_LONG_AND_SHORT_INVALID 144 /* long and short invalid for .. */
-#define E_SIGNED_AND_UNSIGNED_INVALID 145 /* signed and unsigned invalid for .. */
-#define E_TWO_OR_MORE_STORAGE_CLASSES 146
-#define W_EXCESS_INITIALIZERS 147 /* too much initializers for array */
-#define E_ARGUMENT_MISSING 148 /* Option requires an argument. */
-#define W_STRAY_BACKSLASH 149
-#define W_NEWLINE_IN_STRING 150
-#define E_CANNOT_USE_GENERIC_POINTER 151
-#define W_EXCESS_SHORT_OPTIONS 152
-#define E_VOID_VALUE_USED 153
-#define W_INTEGRAL2PTR_NOCAST 154
-#define W_PTR2INTEGRAL_NOCAST 155
-#define W_SYMBOL_NAME_TOO_LONG 156
-#define W_CAST_STRUCT_PTR 157 /* pointer to different structure types */
-#define W_LIT_OVERFLOW 158 /* overflow in implicit constant conversion */
-#define E_PARAM_NAME_OMITTED 159
-#define W_NO_FILE_ARG_IN_C1 160
-#define E_NEED_OPT_O_IN_C1 161
-#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 */
-#define W_SIZEOF_VOID 178 /* size of void is zero */
-#define W_POSSBUG2 179 /* possible bug, new format */
-#define W_COMPLEMENT 180 /* ~bit can give unexpected results */
-#define E_SHADOWREGS_NO_ISR 181 /* shadowregs keyword following non-ISR function */
-#define W_SFR_ABSRANGE 182 /* sfr at address out of range */
-#define E_BANKED_WITH_CALLEESAVES 183 /* banked and callee-saves mixed */
-#define W_INVALID_INT_CONST 184 /* invalid integer literal string */
-#define W_CMP_SU_CHAR 185 /* comparison of 'signed char' with 'unsigned char' requires promotion to int */
-#define W_INVALID_FLEXARRAY 186 /* invalid use of structure with flexible array member */
-#define W_C89_NO_FLEXARRAY 187 /* ISO C90 does not support flexible array members */
-#define E_FLEXARRAY_NOTATEND 188 /* flexible array member not at end of struct */
-#define E_FLEXARRAY_INEMPTYSTRCT 189 /* flexible array in otherwise empty struct */
-#define W_EMPTY_SOURCE_FILE 190 /* ISO C forbids an empty source file */
-#define W_BAD_PRAGMA_ARGUMENTS 191 /* #pragma %s: bad argument(s); pragma ignored */
-#define E_BAD_RESTRICT 192 /* Only pointers may be qualified with 'restrict' */
-#define E_BAD_INLINE 193 /* Only functions may be qualified with 'inline' */
-#define E_BAD_INT_ARGUMENT 194 /* Bad integer option argument */
-#define E_NEGATIVE_ARRAY_SIZE 195 /* Size of array '%s' is negative */
-#define MAX_ERROR_WARNING 256 /* size of disable warnings array */
-
-/** Describes the maximum error level that will be logged. Any level
- * includes all of the levels listed after it.
- *
- *
- */
-enum _ERROR_LOG_LEVEL {
- /** Everything. Currently the same as PEDANTIC. */
- ERROR_LEVEL_ALL,
- /** All warnings, including those considered 'reasonable to use,
- on occasion, in clean programs' (man 3 gcc). */
- ERROR_LEVEL_PEDANTIC,
- /** 'informational' warnings */
- ERROR_LEVEL_INFO,
- /** Most warnings. */
- ERROR_LEVEL_WARNING,
- /** Errors only. */
- ERROR_LEVEL_ERROR
-};
-
-typedef enum _ERROR_LOG_LEVEL ERROR_LOG_LEVEL;
-
-struct SDCCERRG {
- ERROR_LOG_LEVEL logLevel;
- FILE *out;
- int style; /* 1=MSVC */
- char disabled[MAX_ERROR_WARNING]; /* 1=warning disabled*/
-};
-
-extern struct SDCCERRG _SDCCERRG;
-
-/** Sets the maximum error level to log.
- See MAX_ERROR_LEVEL. The default is ERROR_LEVEL_ALL.
-*/
-void setErrorLogLevel (ERROR_LOG_LEVEL level);
-
-/*
--------------------------------------------------------------------------------
-SetErrorOut - Set the error output file
-
--------------------------------------------------------------------------------
-*/
-
-FILE * SetErrorOut(FILE *NewErrorOut) ;
-
-/*
--------------------------------------------------------------------------------
-vwerror - Output a standard eror message with variable number of arguements
-
--------------------------------------------------------------------------------
-*/
-
-void vwerror (int errNum, va_list marker) ;
-
-/*
--------------------------------------------------------------------------------
-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) ;
-
-/*
--------------------------------------------------------------------------------
-disabled - Disable output of specified warning
--------------------------------------------------------------------------------
-*/
-
-void setWarningDisabled (int errNum) ;
-
-#endif
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /out:"../../bin_vc/sdcclib.exe"\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /out:"../../bin_vc/sdcclib.exe"\r
\r
!ELSEIF "$(CFG)" == "librarian - Win32 Debug"\r
\r
# ADD BASE BSC32 /nologo\r
# ADD BSC32 /nologo\r
LINK32=link.exe\r
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin_vc/sdcclib.exe" /pdbtype:sept\r
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept\r
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /debug /machine:I386 /out:"../../bin_vc/sdcclib.exe" /pdbtype:sept\r
\r
!ENDIF \r
\r