# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "INDEXLIB" /D "MLH_MAP" /D "SDK" /J /FD /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "INDEXLIB" /D "MLH_MAP" /D "SDK" /J /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\z80\alloc.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\z80\asm.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\z80\string.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\z80\z80.h
+# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# 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
-# ADD LINK32 /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"..\bin\aslink.exe" /pdbtype:sept
-# SUBTRACT LINK32 /nodefaultlib
+# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"..\bin\aslink.exe" /pdbtype:sept
+# SUBTRACT LINK32 /incremental:no /nodefaultlib
!ENDIF
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# Begin Source File
+
+SOURCE=.\mcs51\alloc.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\mcs51\aslink.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\mcs51\asm.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\mcs51\i8051.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\mcs51\string.h
+# End Source File
# End Group
# Begin Group "Resource Files"
# ADD BSC32 /nologo
LINK32=link.exe
# 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
-# ADD LINK32 /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"\sdcc\bin\asx8051.exe" /pdbtype:sept
+# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"\sdcc\bin\asx8051.exe" /pdbtype:sept
+# SUBTRACT LINK32 /incremental:no
!ENDIF
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
-# PROP Output_Dir "mcs51"
-# PROP Intermediate_Dir "mcs51"
+# PROP Output_Dir ""
+# PROP Intermediate_Dir ""
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# 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
-# ADD LINK32 /nologo /subsystem:console /incremental:no /debug /machine:I386 /out:"\sdcc\bin\packihx.exe" /pdbtype:sept
+# ADD LINK32 /nologo /subsystem:console /debug /machine:I386 /out:"\sdcc\bin\packihx.exe" /pdbtype:sept
+# SUBTRACT LINK32 /incremental:no
!ENDIF
#define SDCC_VERSION_P 1
#define SDCC_VERSION_STR "2.2.2"
+/* MSVC 6 does not have __FUNCTION__ preprocessor macro defined */
+
+#define __FUNCTION__ __FILE__
+
#undef PREFIX
#undef DATADIR
#undef SRCDIR
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "." /I "..\.." /I "..\..\support\util" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /J /FD /Zm500 /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "." /I "..\.." /I "..\..\support\util" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /J /FD /Zm500 /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# Begin Source File
SOURCE=.\main.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\peeph.def
!IF "$(CFG)" == "mcs51 - Win32 Release"
+!ELSEIF "$(CFG)" == "mcs51 - Win32 Debug"
+
+# PROP Ignore_Default_Tool 1
+USERDEP__MAIN_="peeph.rul"
# Begin Custom Build
-InputPath=.\peeph.def
+TargetName=port
+InputPath=.\main.c
+
+"$(TargetName)" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
+ cl /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "." /I "..\.." /I "..\..\support\util" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /J /FD /Zm500 /GZ /c $(InputPath)
-"peeph.rul" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- echo on
- gawk -f ../SDCCpeeph.awk $(InputPath) >peeph.rul
-
# End Custom Build
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\peeph.def
+
+!IF "$(CFG)" == "mcs51 - Win32 Release"
+
!ELSEIF "$(CFG)" == "mcs51 - Win32 Debug"
+# PROP Ignore_Default_Tool 1
# Begin Custom Build
InputPath=.\peeph.def
# End Source File
# Begin Source File
+SOURCE=.\peeph.rul
+
+!IF "$(CFG)" == "mcs51 - Win32 Release"
+
+!ELSEIF "$(CFG)" == "mcs51 - Win32 Debug"
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
SOURCE=.\ralloc.h
# End Source File
+# Begin Source File
+
+SOURCE=..\..\sdcc_vc.h
+# End Source File
# End Group
# End Target
# End Project
# PROP Intermediate_Dir ""
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "." /I "..\.." /I "..\..\support\util" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /J /FD /Zm500 /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "." /I "..\.." /I "..\..\support\util" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FR /J /FD /Zm500 /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# End Source File
# Begin Source File
+SOURCE=.\genarith.c
+# End Source File
+# Begin Source File
+
SOURCE=.\glue.c
# End Source File
# Begin Source File
# End Source File
# Begin Source File
+SOURCE=.\pcode.c
+# End Source File
+# Begin Source File
+
+SOURCE=.\pcodepeep.c
+# End Source File
+# Begin Source File
+
SOURCE=.\peeph.def
!IF "$(CFG)" == "pic - Win32 Release"
# End Source File
# Begin Source File
+SOURCE=.\pcode.h
+# End Source File
+# Begin Source File
+
SOURCE=.\ralloc.h
# End Source File
# End Group
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "..\support\util" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /I ".." /I "..\support\util" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /J /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
+SOURCE=.\asm.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\common.h
+# End Source File
+# Begin Source File
+
SOURCE=..\support\Util\newalloc.h
# End Source File
# Begin Source File
+SOURCE=.\port.h
+# End Source File
+# Begin Source File
+
SOURCE=..\sdcc_vc.h
# End Source File
# Begin Source File
+SOURCE=.\SDCCast.h
+# End Source File
+# Begin Source File
+
SOURCE=.\SDCCBBlock.h
# End Source File
# Begin Source File
+SOURCE=.\SDCCbitv.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCcflow.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCcse.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCdflow.h
+# End Source File
+# Begin Source File
+
SOURCE=.\SDCCglobl.h
# End Source File
# Begin Source File
+SOURCE=.\SDCCglue.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCChasht.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCicode.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCClabel.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCloop.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCClrange.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCmem.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCopt.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCpeeph.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCptropt.h
+# End Source File
+# Begin Source File
+
SOURCE=.\SDCCset.h
# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCsymt.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\SDCCval.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\sdccy.h
+# End Source File
+# Begin Source File
+
+SOURCE=.\spawn.h
+# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
+# Begin Group "Regression Test"
+
+# PROP Default_Filter ""
+# Begin Source File
+
+SOURCE=.\regression\add.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\arrays.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\b.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\bool1.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\call1.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\compare.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\compare2.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\for.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\pointer1.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\struct1.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\sub.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\TempTest.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
+SOURCE=.\regression\while.c
+
+!IF "$(CFG)" == "src - Win32 Release"
+
+!ELSEIF "$(CFG)" == "src - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# End Group
# End Target
# End Project
/* Parse a C expression from text in a string */
-//#if defined(_MSC_VER)
-//#include <malloc.h>
-//#endif
-
#include "config.h"
#include "cpplib.h"
if (largest_digit < digit)
largest_digit = digit;
nd = n * base + digit;
- overflow |= ULONG_MAX_over_base < n | nd < n;
+ overflow |= ((ULONG_MAX_over_base < n) | (nd < n)) ;
n = nd;
}
cpp_reader *pfile)
{
register int c;
- register int namelen;
+/* register int namelen; */
register struct token *toktab;
enum cpp_token token;
struct operation op;
{
c = cpp_parse_escape (pfile, &ptr);
if (width < HOST_BITS_PER_INT
- && (unsigned) c >= (1 << width))
+ && (unsigned) c >= (1U << width))
cpp_pedwarn (pfile,
"escape sequence out of range for character");
}
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /G3 /Zp8 /ML /W3 /Gm /GX /ZI /Od /I "..\util" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR"./" /J /FD /GZ /c
+# ADD CPP /nologo /G3 /ML /W3 /Gm /GX /ZI /Od /I "..\util" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR"./" /J /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo /o".\sdcpp.bsc"
+# ADD BSC32 /o".\sdcpp.bsc"
+# SUBTRACT BSC32 /nologo
LINK32=link.exe
# 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
# ADD LINK32 /nologo /version:2.2 /subsystem:console /debug /machine:I386 /out:"..\..\bin\sdcpp.exe" /pdbtype:sept
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
+# Begin Group "Test"
+
+# PROP Default_Filter ""
+# Begin Source File
+
+SOURCE=.\cppTest\cpptest.c
+
+!IF "$(CFG)" == "sdcpp - Win32 Release"
+
+!ELSEIF "$(CFG)" == "sdcpp - Win32 Debug"
+
+# PROP Exclude_From_Build 1
+
+!ENDIF
+
+# End Source File
+# End Group
# End Target
# End Project