From ac9390a0bce6c32274c9110b23d9ef4f7eb08dae Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Wed, 30 Sep 1998 09:15:59 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- Wxwin.dsp | 1835 +++++++++++++++++++++++++++++++++++++ Wxwin.dsw | 29 + samples/dnd/test.dsp | 121 +++ samples/dnd/test.dsw | 29 + samples/listctrl/test.dsp | 118 +++ samples/listctrl/test.dsw | 29 + samples/printing/test.dsp | 118 +++ samples/printing/test.dsw | 29 + src/common/lex_yy.c | 1214 ++++++++++++++++++++++++ src/common/y_tab.c | 517 +++++++++++ 10 files changed, 4039 insertions(+) create mode 100644 Wxwin.dsp create mode 100644 Wxwin.dsw create mode 100644 samples/dnd/test.dsp create mode 100644 samples/dnd/test.dsw create mode 100644 samples/listctrl/test.dsp create mode 100644 samples/listctrl/test.dsw create mode 100644 samples/printing/test.dsp create mode 100644 samples/printing/test.dsw create mode 100644 src/common/lex_yy.c create mode 100644 src/common/y_tab.c diff --git a/Wxwin.dsp b/Wxwin.dsp new file mode 100644 index 0000000000..3d2ba550f0 --- /dev/null +++ b/Wxwin.dsp @@ -0,0 +1,1835 @@ +# Microsoft Developer Studio Project File - Name="wxWin" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 5.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=wxWin - Win32 Release +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\ + NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\ + Befehl +!MESSAGE +!MESSAGE NMAKE /f "Wxwin.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "Wxwin.mak" CFG="wxWin - Win32 Release" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "wxWin - Win32 Release" (basierend auf "Win32 (x86) Static Library") +!MESSAGE "wxWin - Win32 Debug" (basierend auf "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe + +!IF "$(CFG)" == "wxWin - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /O2 /I ".\include" /I ".\include\wx\msw" /I ".\include\wx\generic" /I ".\include\wx\other" /I ".\src\png" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D "__WINDOWS__" /YX /FD /c +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /Z7 /Od /I ".\include" /I ".\include\wx\msw" /I ".\include\wx\generic" /I ".\include\wx\other" /I ".\src\png" /D "__WXDEBUG__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WXDEBUG=1 /D "__WINDOWS__" /YX /FD /c +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo + +!ENDIF + +# Begin Target + +# Name "wxWin - Win32 Release" +# Name "wxWin - Win32 Debug" +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\include\wx\msw\wx.rc +# End Source File +# End Group +# Begin Group "win-dateien" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\src\msw\accel.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\app.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\bitmap.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\bmpbuttn.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\brush.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\button.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\checkbox.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\checklst.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\choice.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\clipbrd.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\colordlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\colour.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\combobox.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\control.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\curico.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\cursor.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\data.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dc.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dcclient.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dcmemory.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dcprint.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dcscreen.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dde.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dialog.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dib.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dibutils.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dirdlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dummy.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\dummydll.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\filedlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\font.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\fontdlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\frame.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\gauge95.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\gaugemsw.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\gdiobj.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\helpwin.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\icon.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\imaglist.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\iniconf.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\joystick.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\listbox.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\listctrl.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\main.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\mdi.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\menu.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\menuitem.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\metafile.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\minifram.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\msgdlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\nativdlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\notebook.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\ownerdrw.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\palette.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\pen.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\penwin.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\pnghand.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\printdlg.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\printwin.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\radiobox.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\radiobut.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\regconf.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\region.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\registry.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\scrolbar.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\settings.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\slider95.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\slidrmsw.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\spinbutt.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\statbmp.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\statbox.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\statbr95.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\stattext.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\tabctrl.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\taskbar.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\tbar95.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\tbarmsw.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\textctrl.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\thread.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\timer.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\treectrl.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\utils.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\utilsexc.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\wave.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\msw\window.cpp + +!IF "$(CFG)" == "wxWin - Win32 Release" + +!ELSEIF "$(CFG)" == "wxWin - Win32 Debug" + +# ADD CPP /D "STRICT" + +!ENDIF + +# End Source File +# End Group +# Begin Group "win-header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\include\wx\msw\app.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\bitmap.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\bmpbuttn.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\brush.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\button.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\checkbox.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\checklst.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\choice.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\clipbrd.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\colordlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\colour.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\combobox.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\control.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\curico.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\curicop.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\cursor.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dc.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dcclient.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dcmemory.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dcprint.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dcscreen.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dde.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dialog.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dib.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dibutils.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\dirdlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\filedlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\font.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\fontdlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\frame.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\gauge.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\gauge95.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\gaugemsw.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\gdiobj.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\helpwin.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\icon.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\imaglist.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\joystick.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\listbox.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\listctrl.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\mdi.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\menu.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\metafile.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\minifram.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\msgdlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\notebook.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\palette.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\pen.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\pnghand.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\pngread.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\printdlg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\printwin.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\private.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\radiobox.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\radiobut.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\regconf.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\region.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\registry.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\scrolbar.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\settings.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\setup.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\slider.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\slider95.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\slidrmsw.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\spinbutt.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\statbmp.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\statbox.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\statbr95.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\stattext.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\tabctrl.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\taskbar.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\tbar95.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\tbarmsw.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\textctrl.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\timer.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\treectrl.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\wave.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\msw\window.h +# End Source File +# End Group +# Begin Group "generic-datein" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\src\generic\choicdgg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\colrdlgg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\fontdlgg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\gridg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\helpxlp.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\msgdlgg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\panelg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\printps.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\prntdlgg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\scrolwin.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\splitter.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\statusbr.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\tabg.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\generic\textdlgg.cpp +# End Source File +# End Group +# Begin Group "generic-header" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\include\wx\generic\choicdgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\colrdlgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\fontdlgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\gridg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\helpxlp.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\imaglist.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\listctrl.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\msgdlgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\panelg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\printps.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\prntdlgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\scrolwin.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\splitter.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\statusbr.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\tabg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\textdlgg.h +# End Source File +# Begin Source File + +SOURCE=.\include\wx\generic\treectrl.h +# End Source File +# End Group +# Begin Group "common-dateien" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\src\common\cmndata.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\config.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\date.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\db.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\dbtable.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\docmdi.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\docview.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\dynarray.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\event.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\extended.c +# End Source File +# Begin Source File + +SOURCE=.\src\common\file.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\fileconf.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\filefn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\framecmn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\gdicmn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\hash.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\helpbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\intl.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\ipcbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\layout.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\list.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\log.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\matrix.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\memory.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\module.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\object.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\odbc.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\postscrp.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\prntbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\process.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\resource.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\serbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\string.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\tbarbase.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\tbarsmpl.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\textfile.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\time.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\timercmn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\utilscmn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\validate.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\valtext.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\wincmn.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\wxexpr.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\common\y_tab.c +# End Source File +# Begin Source File + +SOURCE=.\src\common\zstream.cpp +# End Source File +# End Group +# Begin Group "ole-dateien" + +# PROP Default_Filter "" +# Begin Source File + +SOURCE=.\src\msw\ole\dataobj.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\ole\dropsrc.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\ole\droptgt.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\ole\oleutils.cpp +# End Source File +# Begin Source File + +SOURCE=.\src\msw\ole\uuid.cpp +# End Source File +# End Group +# End Target +# End Project diff --git a/Wxwin.dsw b/Wxwin.dsw new file mode 100644 index 0000000000..934e9484e6 --- /dev/null +++ b/Wxwin.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "wxWin"=.\Wxwin.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/samples/dnd/test.dsp b/samples/dnd/test.dsp new file mode 100644 index 0000000000..cb7e2871db --- /dev/null +++ b/samples/dnd/test.dsp @@ -0,0 +1,121 @@ +# Microsoft Developer Studio Project File - Name="test" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 5.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Application" 0x0101 + +CFG=test - Win32 Release +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\ + NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\ + Befehl +!MESSAGE +!MESSAGE NMAKE /f "test.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "test.mak" CFG="test - Win32 Release" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "test - Win32 Release" (basierend auf "Win32 (x86) Application") +!MESSAGE "test - Win32 Debug" (basierend auf "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "test - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /O2 /I "..\..\include" /D "__WXDEBUG__" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "NDEBUG" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "WXDEBUG" /d "__WXMSW__" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\debug\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /incremental:yes /pdb:".\Debug/santis.pdb" /debug /machine:I386 /out:".\Debug/santis.exe" +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "test - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /Z7 /Od /I "..\..\include" /D "__WXDEBUG__" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "_DEBUG" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "WXDEBUG" /d "__WXMSW__" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\debug\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /debug /machine:I386 +# SUBTRACT LINK32 /pdb:none + +!ENDIF + +# Begin Target + +# Name "test - Win32 Release" +# Name "test - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\dnd.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\dnd.rc + +!IF "$(CFG)" == "test - Win32 Release" + +!ELSEIF "$(CFG)" == "test - Win32 Debug" + +!ENDIF + +# End Source File +# End Group +# End Target +# End Project diff --git a/samples/dnd/test.dsw b/samples/dnd/test.dsw new file mode 100644 index 0000000000..449f529bb9 --- /dev/null +++ b/samples/dnd/test.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "test"=.\test.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/samples/listctrl/test.dsp b/samples/listctrl/test.dsp new file mode 100644 index 0000000000..41e5828244 --- /dev/null +++ b/samples/listctrl/test.dsp @@ -0,0 +1,118 @@ +# Microsoft Developer Studio Project File - Name="test" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 5.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Application" 0x0101 + +CFG=test - Win32 Release +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\ + NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\ + Befehl +!MESSAGE +!MESSAGE NMAKE /f "test.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "test.mak" CFG="test - Win32 Release" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "test - Win32 Release" (basierend auf "Win32 (x86) Application") +!MESSAGE "test - Win32 Debug" (basierend auf "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "test - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /W3 /GX /O2 /I "..\..\include" /I "funcs" /I "santis2" /I "funcdefs" /I "tnt" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "NDEBUG" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "__WXMSW__" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\release\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /machine:I386 +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "test - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /I "funcs" /I "santis2" /I "funcdefs" /I "tnt" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D DEBUG=2 /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "_DEBUG" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "__WXMSW__" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\debug\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /debug /machine:I386 +# SUBTRACT LINK32 /pdb:none + +!ENDIF + +# Begin Target + +# Name "test - Win32 Release" +# Name "test - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\listtest.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\listtest.h +# End Source File +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\listtest.rc +# End Source File +# End Group +# End Target +# End Project diff --git a/samples/listctrl/test.dsw b/samples/listctrl/test.dsw new file mode 100644 index 0000000000..1fe8c87bde --- /dev/null +++ b/samples/listctrl/test.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "test"=.\santis.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/samples/printing/test.dsp b/samples/printing/test.dsp new file mode 100644 index 0000000000..c6e9c37f7a --- /dev/null +++ b/samples/printing/test.dsp @@ -0,0 +1,118 @@ +# Microsoft Developer Studio Project File - Name="test" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 5.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Application" 0x0101 + +CFG=test - Win32 Release +!MESSAGE Dies ist kein gültiges Makefile. Zum Erstellen dieses Projekts mit\ + NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und führen Sie den\ + Befehl +!MESSAGE +!MESSAGE NMAKE /f "test.mak". +!MESSAGE +!MESSAGE Sie können beim Ausführen von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "test.mak" CFG="test - Win32 Release" +!MESSAGE +!MESSAGE Für die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "test - Win32 Release" (basierend auf "Win32 (x86) Application") +!MESSAGE "test - Win32 Debug" (basierend auf "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "test - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir ".\Release" +# PROP BASE Intermediate_Dir ".\Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir ".\Release" +# PROP Intermediate_Dir ".\Release" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /O2 /I "..\..\include" /D "__WXDEBUG__" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "NDEBUG" /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\debug\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /incremental:yes /pdb:".\Debug/santis.pdb" /debug /machine:I386 /out:".\Debug/santis.exe" +# SUBTRACT LINK32 /pdb:none + +!ELSEIF "$(CFG)" == "test - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir ".\Debug" +# PROP BASE Intermediate_Dir ".\Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir ".\Debug" +# PROP Intermediate_Dir ".\Debug" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c +# ADD CPP /nologo /w /W0 /GX /Z7 /Od /I "..\..\include" /D "__WXDEBUG__" /D "__WIN32__" /D "__WXMSW__" /D "__WIN95__" /D "STRICT" /D "__WINDOWS__" /YX /FD /D /c +# ADD BASE MTL /nologo /D "_DEBUG" /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /i "..\..\include" /d "WXDEBUG" /d "__WXMSW__" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# 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 /nologo /subsystem:windows /debug /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib ctl3d32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib ..\..\debug\wxwin.lib ctl3d32.lib /nologo /subsystem:windows /debug /machine:I386 +# SUBTRACT LINK32 /pdb:none + +!ENDIF + +# Begin Target + +# Name "test - Win32 Release" +# Name "test - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90" +# Begin Source File + +SOURCE=.\printing.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd" +# Begin Source File + +SOURCE=.\printing.h +# End Source File +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe" +# Begin Source File + +SOURCE=.\printing.rc +# End Source File +# End Group +# End Target +# End Project diff --git a/samples/printing/test.dsw b/samples/printing/test.dsw new file mode 100644 index 0000000000..449f529bb9 --- /dev/null +++ b/samples/printing/test.dsw @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 5.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GELÖSCHT WERDEN! + +############################################################################### + +Project: "test"=.\test.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/src/common/lex_yy.c b/src/common/lex_yy.c new file mode 100644 index 0000000000..67e789afba --- /dev/null +++ b/src/common/lex_yy.c @@ -0,0 +1,1214 @@ +/* A lexical scanner generated by flex */ + +/* scanner skeleton version: + * $Header$ + Last change: JS 13 Jul 97 6:17 pm + */ + +#define FLEX_SCANNER + +#include + + +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif +#endif + + +#ifdef __cplusplus + +#include +#include + +/* use prototypes in function declarations */ +#define YY_USE_PROTOS + +/* the "const" storage-class-modifier is valid */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +#ifdef __STDC__ + +#ifdef __GNUC__ +#include +#else +#include +#endif /* __GNUC__ */ + +#define YY_USE_PROTOS +#define YY_USE_CONST + +#endif /* __STDC__ */ +#endif /* ! __cplusplus */ + + +#ifdef __TURBOC__ +#define YY_USE_CONST +#endif + + +#ifndef YY_USE_CONST +#define const +#endif + + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +/* we can't get here if it's an ANSI C compiler, or a C++ compiler, + * so it's got to be a K&R compiler, and therefore there's no standard + * place from which to include these definitions + */ +/* +char *malloc(); +int free(); +*/ + +int read(); +#endif + + +/* amount of stuff to slurp up with each read */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* returned upon end-of-file */ +#define YY_END_TOK 0 + +/* copy whatever the last rule matched to the standard output */ + +/* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */ +/* this used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite() + */ +#define ECHO (void) fwrite( (char *) yytext, yyleng, 1, yyout ) + +/* gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#define YY_INPUT(buf,result,max_size) \ + if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \ + YY_FATAL_ERROR( "read() in flex scanner failed" ); +#define YY_NULL 0 + +/* no semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#define yyterminate() return ( YY_NULL ) + +/* report a fatal error */ + +/* The funky do-while is used to turn this macro definition into + * a single C statement (which needs a semi-colon terminator). + * This avoids problems with code like: + * + * if ( something_happens ) + * YY_FATAL_ERROR( "oops, the something happened" ); + * else + * everything_okay(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the YY_FATAL_ERROR() call. + */ + +#define YY_FATAL_ERROR(msg) \ + do \ + { \ + (void) fputs( msg, stderr ); \ + (void) putc( '\n', stderr ); \ + exit( 1 ); \ + } \ + while ( 0 ) + +/* default yywrap function - always treat EOF as an EOF */ +int yywrap(void) { return 1; } + + +/* enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN + */ +#define BEGIN yy_start = 1 + 2 * + +/* action number for EOF rule of a given start state */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* special action meaning "start processing a new file" */ +#define YY_NEW_FILE \ + do \ + { \ + yy_init_buffer( yy_current_buffer, yyin ); \ + yy_load_buffer_state(); \ + } \ + while ( 0 ) + +/* default declaration of generated scanner - a define so the user can + * easily add parameters + */ +#define YY_DECL int yylex YY_PROTO(( void )) + +/* code executed at the end of each rule */ +#define YY_BREAK break; + +#define YY_END_OF_BUFFER_CHAR 0 + +#ifndef YY_BUF_SIZE +#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */ +#endif + +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +#define YY_CHAR unsigned char +# line 1 "lexer.l" +#define INITIAL 0 +# line 9 "lexer.l" +/* + * File: lexer.l + * Description: Lexical analyser for PROLOGIO; can be used with + * either lex and flex. + */ +#include + +/* +++steve162e: added, otherwise, PROIO_input will be undefined (at least under LINUX) + please check, if this is also TRUE under other UNIXes. + */ + +#if defined(FLEX_SCANNER) && defined(_LINUX) +#define PROIO_input my_input +#endif +/* ---steve162e */ + +#include "wx/expr.h" +#ifdef wx_x +extern char *malloc(); +#endif +#define Return(x) return x; + +#if defined(VMS) && !defined(strdup) +#define strdup(s) (strcpy((char *)malloc(strlen(s)+1), s)); +#endif + +static size_t lex_buffer_length = 0; +static const char *lex_buffer = NULL; +static size_t lex_string_ptr = 0; +static int lex_read_from_string = 0; + +static int my_input(void); +static int my_unput(char); + +#ifdef FLEX_SCANNER +#undef YY_INPUT +# define YY_INPUT(buf,result,max_size) \ + if (lex_read_from_string) \ + { int c = my_input(); result = (c == 0) ? YY_NULL : ((buf)[0]=(c), 1); } \ + else \ + if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \ + YY_FATAL_ERROR( "read() in flex scanner failed" ); +#else +# undef unput +# define unput(_c) my_unput(_c) +#endif + +# line 58 "lexer.l" + +/* done after the current pattern has been matched and before the + * corresponding action - sets up yytext + */ +#define YY_DO_BEFORE_ACTION \ + yytext = yy_bp; \ + yyleng = yy_cp - yy_bp; \ + yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yy_c_buf_p = yy_cp; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + +/* return all but the first 'n' matched characters back to the input stream */ +#define yyless(n) \ + do \ + { \ + /* undo effects of setting up yytext */ \ + *yy_cp = yy_hold_char; \ + yy_c_buf_p = yy_cp = yy_bp + n; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#undef unput +#define unput(c) yyunput( c, yytext ) + + +struct yy_buffer_state + { + FILE *yy_input_file; + + YY_CHAR *yy_ch_buf; /* input buffer */ + YY_CHAR *yy_buf_pos; /* current position in input buffer */ + + /* size of input buffer in bytes, not including room for EOB characters*/ + int yy_buf_size; + + /* number of characters read into yy_ch_buf, not including EOB characters */ + int yy_n_chars; + + int yy_eof_status; /* whether we've seen an EOF on this buffer */ +#define EOF_NOT_SEEN 0 + /* "pending" happens when the EOF has been seen but there's still + * some text process + */ +#define EOF_PENDING 1 +#define EOF_DONE 2 + }; + +static YY_BUFFER_STATE yy_current_buffer; + +/* we provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state" + */ +#define YY_CURRENT_BUFFER yy_current_buffer + + +/* yy_hold_char holds the character lost when yytext is formed */ +static YY_CHAR yy_hold_char; + +static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + + +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +#ifndef YY_USER_INIT +#define YY_USER_INIT +#endif + +extern YY_CHAR *yytext; +extern int yyleng; +extern FILE *yyin, *yyout; + +YY_CHAR *yytext; +int yyleng; + +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; + +#define YY_END_OF_BUFFER 18 +typedef int yy_state_type; +static const short int yy_accept[34] = + { 0, + 0, 0, 18, 16, 13, 14, 16, 16, 6, 7, + 16, 8, 12, 16, 1, 11, 3, 9, 10, 2, + 0, 5, 0, 0, 0, 4, 1, 15, 3, 5, + 0, 0, 0 + } ; + +static const YY_CHAR yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 4, 1, 1, 1, 1, 5, 6, + 7, 8, 9, 10, 9, 11, 12, 13, 13, 13, + 13, 13, 13, 13, 13, 13, 13, 1, 1, 1, + 14, 1, 1, 1, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 16, 17, 18, 1, 15, 1, 15, 15, 15, 15, + + 19, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, + 15, 15, 1, 20, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static const YY_CHAR yy_meta[21] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 2, 1, 2, 1, 3, 1, 2, 1 + } ; + +static const short int yy_base[37] = + { 0, + 0, 0, 48, 55, 55, 55, 17, 42, 55, 55, + 19, 55, 55, 23, 17, 55, 0, 55, 55, 0, + 18, 55, 19, 23, 21, 55, 12, 55, 0, 24, + 25, 29, 55, 49, 52, 22 + } ; + +static const short int yy_def[37] = + { 0, + 33, 1, 33, 33, 33, 33, 34, 35, 33, 33, + 33, 33, 33, 33, 33, 33, 36, 33, 33, 36, + 34, 33, 34, 34, 35, 33, 33, 33, 36, 34, + 34, 34, 0, 33, 33, 33 + } ; + +static const short int yy_nxt[76] = + { 0, + 4, 5, 6, 7, 8, 9, 10, 4, 11, 12, + 13, 14, 15, 16, 17, 18, 4, 19, 20, 4, + 22, 22, 30, 29, 27, 26, 22, 22, 30, 27, + 28, 27, 30, 23, 23, 23, 24, 24, 24, 31, + 23, 32, 24, 24, 24, 23, 26, 33, 24, 21, + 21, 21, 25, 25, 3, 33, 33, 33, 33, 33, + 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, + 33, 33, 33, 33, 33 + } ; + +static const short int yy_chk[76] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 7, 21, 23, 36, 27, 25, 24, 30, 31, 15, + 14, 11, 32, 7, 21, 23, 7, 21, 23, 24, + 30, 31, 24, 30, 31, 32, 8, 3, 32, 34, + 34, 34, 35, 35, 33, 33, 33, 33, 33, 33, + 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, + 33, 33, 33, 33, 33 + } ; + +static yy_state_type yy_last_accepting_state; +static YY_CHAR *yy_last_accepting_cpos; + +/* the intent behind this definition is that it'll catch + * any uses of REJECT which flex missed + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 + +/* these variables are all declared out here so that section 3 code can + * manipulate them + */ +/* points to current character in buffer */ +static YY_CHAR *yy_c_buf_p = (YY_CHAR *) 0; +static int yy_init = 1; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yyunput YY_PROTO(( YY_CHAR c, YY_CHAR *buf_ptr )); +void yyrestart YY_PROTO(( FILE *input_file )); +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); + +#define yy_new_buffer yy_create_buffer + +#ifdef __cplusplus +static int yyinput YY_PROTO(( void )); +#else +static int input YY_PROTO(( void )); +#endif + +YY_DECL + { + register yy_state_type yy_current_state; + register YY_CHAR *yy_cp, *yy_bp; + register int yy_act; + + + + + if ( yy_init ) + { + YY_USER_INIT; + + if ( ! yy_start ) + yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( yy_current_buffer ) + yy_init_buffer( yy_current_buffer, yyin ); + else + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_load_buffer_state(); + + yy_init = 0; + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yy_c_buf_p; + + /* support of yytext */ + *yy_cp = yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of the + * current run. + */ + yy_bp = yy_cp; + + yy_current_state = yy_start; +yy_match: + do + { + register YY_CHAR yy_c = yy_ec[*yy_cp]; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = yy_def[yy_current_state]; + if ( yy_current_state >= 34 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } + while ( yy_current_state != 33 ); + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + + YY_DO_BEFORE_ACTION; + YY_USER_ACTION; + +do_action: /* this label is used only to access EOF actions */ + + + switch ( yy_act ) + { + case 0: /* must backtrack */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + +case 1: +# line 60 "lexer.l" +{yylval.s = strdup(yytext); Return(INTEGER);} + YY_BREAK +case 2: +# line 62 "lexer.l" +Return(EXP); + YY_BREAK +case 3: +# line 64 "lexer.l" +{yylval.s = strdup(yytext); Return(WORD);} + YY_BREAK +case 4: +# line 66 "lexer.l" +{int len = strlen(yytext); + yytext[len-1] = 0; + yylval.s = strdup(yytext+1); + Return(WORD);} + YY_BREAK +case 5: +# line 71 "lexer.l" +{yylval.s = strdup(yytext); Return(STRING);} + YY_BREAK +case 6: +# line 73 "lexer.l" +Return(OPEN); + YY_BREAK +case 7: +# line 75 "lexer.l" +Return(CLOSE); + YY_BREAK +case 8: +# line 77 "lexer.l" +Return(COMMA); + YY_BREAK +case 9: +# line 79 "lexer.l" +Return(OPEN_SQUARE); + YY_BREAK +case 10: +# line 81 "lexer.l" +Return(CLOSE_SQUARE); + YY_BREAK +case 11: +# line 83 "lexer.l" +Return(EQUALS); + YY_BREAK +case 12: +# line 85 "lexer.l" +Return(PERIOD); + YY_BREAK +case 13: +# line 87 "lexer.l" +; + YY_BREAK +case 14: +# line 89 "lexer.l" +; + YY_BREAK +case 15: +# line 91 "lexer.l" +{ loop: +#ifdef __cplusplus + while (yyinput() != '*'); + switch (yyinput()) +#else + while (input() != '*'); + switch (input()) +#endif + { + case '/': break; + case '*': unput('*'); + default: goto loop; + } + } + YY_BREAK +case 16: +# line 106 "lexer.l" +Return(ERROR); + YY_BREAK +case 17: +# line 108 "lexer.l" +ECHO; + YY_BREAK +case YY_STATE_EOF(INITIAL): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* amount of text matched not including the EOB char */ + int yy_amount_of_matched_text = yy_cp - yytext - 1; + + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + + /* note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the end- + * of-buffer state). Contrast this with the test in yyinput(). + */ + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* this was really a NUL */ + { + yy_state_type yy_next_state; + + yy_c_buf_p = yytext + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + /* okay, we're now positioned to make the + * NUL transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we + * don't want to build jamming into it because + * then it will run more slowly) + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = yytext + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* consume the NUL */ + yy_cp = ++yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + yy_did_buffer_switch_on_eof = 0; + + if ( yywrap() ) + { + /* note: because we've taken care in + * yy_get_next_buffer() to have set up yytext, + * we can now set up yy_c_buf_p so that if some + * total hoser (like flex itself) wants + * to call the scanner after we return the + * YY_NULL, it'll still work - another YY_NULL + * will get returned. + */ + yy_c_buf_p = yytext + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF((yy_start - 1) / 2); + goto do_action; + } + + else + { + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + } + break; + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: +#ifdef FLEX_DEBUG + printf( "action # %d\n", yy_act ); +#endif + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } + } + } + + +/* yy_get_next_buffer - try to read in a new buffer + * + * synopsis + * int yy_get_next_buffer(); + * + * returns a code representing an action + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ + +static int yy_get_next_buffer() + + { + register YY_CHAR *dest = yy_current_buffer->yy_ch_buf; + register YY_CHAR *source = yytext - 1; /* copy prev. char, too */ + register int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + /* try to read more data */ + + /* first move last chars to start of buffer */ + number_to_move = yy_c_buf_p - yytext; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( yy_current_buffer->yy_eof_status != EOF_NOT_SEEN ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + yy_n_chars = 0; + + else + { + int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + else if ( num_to_read <= 0 ) + YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); + + /* read in more data */ + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); + } + + if ( yy_n_chars == 0 ) + { + if ( number_to_move == 1 ) + { + ret_val = EOB_ACT_END_OF_FILE; + yy_current_buffer->yy_eof_status = EOF_DONE; + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + yy_current_buffer->yy_eof_status = EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + /* yytext begins at the second character in yy_ch_buf; the first + * character is the one which preceded it before reading in the latest + * buffer; it needs to be kept around in case it's a newline, so + * yy_get_previous_state() will have with '^' rules active + */ + + yytext = &yy_current_buffer->yy_ch_buf[1]; + + return ( ret_val ); + } + + +/* yy_get_previous_state - get the state just before the EOB char was reached + * + * synopsis + * yy_state_type yy_get_previous_state(); + */ + +static yy_state_type yy_get_previous_state() + + { + register yy_state_type yy_current_state; + register YY_CHAR *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[*yy_cp] : 1); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = yy_def[yy_current_state]; + if ( yy_current_state >= 34 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } + + return ( yy_current_state ); + } + + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( register yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +register yy_state_type yy_current_state; +#endif + + { + register int yy_is_jam; + register YY_CHAR *yy_cp = yy_c_buf_p; + + register YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = yy_def[yy_current_state]; + if ( yy_current_state >= 34 ) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 33); + + return ( yy_is_jam ? 0 : yy_current_state ); + } + + +#ifdef YY_USE_PROTOS +static void yyunput( YY_CHAR c, register YY_CHAR *yy_bp ) +#else +static void yyunput( c, yy_bp ) +YY_CHAR c; +register YY_CHAR *yy_bp; +#endif + + { + register YY_CHAR *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + register int number_to_move = yy_n_chars + 2; /* +2 for EOB chars */ + register YY_CHAR *dest = + &yy_current_buffer->yy_ch_buf[yy_current_buffer->yy_buf_size + 2]; + register YY_CHAR *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) + *--dest = *--source; + + yy_cp += dest - source; + yy_bp += dest - source; + yy_n_chars = yy_current_buffer->yy_buf_size; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + if ( yy_cp > yy_bp && yy_cp[-1] == '\n' ) + yy_cp[-2] = '\n'; + + *--yy_cp = c; + + /* note: the formal parameter *must* be called "yy_bp" for this + * macro to now work correctly + */ + YY_DO_BEFORE_ACTION; /* set up yytext again */ + } + + +#ifdef __cplusplus +static int yyinput() +#else +static int input() +#endif + + { + int c; + YY_CHAR *yy_cp = yy_c_buf_p; + + *yy_cp = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* this was really a NUL */ + *yy_c_buf_p = '\0'; + + else + { /* need more input */ + yytext = yy_c_buf_p; + ++yy_c_buf_p; + + switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + if ( yywrap() ) + { + yy_c_buf_p = yytext + YY_MORE_ADJ; + return ( EOF ); + } + + YY_NEW_FILE; + +#ifdef __cplusplus + return ( yyinput() ); +#else + return ( input() ); +#endif + } + break; + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext + YY_MORE_ADJ; + break; + + case EOB_ACT_LAST_MATCH: +#ifdef __cplusplus + YY_FATAL_ERROR( "unexpected last match in yyinput()" ); +#else + YY_FATAL_ERROR( "unexpected last match in input()" ); +#endif + } + } + } + + c = *yy_c_buf_p; + yy_hold_char = *++yy_c_buf_p; + + return ( c ); + } + + +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + + { + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + + { + if ( yy_current_buffer == new_buffer ) + return; + + if ( yy_current_buffer ) + { + /* flush out information for old buffer */ + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + yy_current_buffer = new_buffer; + yy_load_buffer_state(); + + /* we don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yy_did_buffer_switch_on_eof = 1; + } + + +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + + { + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) malloc( sizeof( struct yy_buffer_state ) ); + + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (YY_CHAR *) malloc( (unsigned) (b->yy_buf_size + 2) ); + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + yy_init_buffer( b, file ); + + return ( b ); + } + + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; + + free( (char *) b->yy_ch_buf ); + free( (char *) b ); + } + + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + { + b->yy_input_file = file; + + /* we put in the '\n' and start reading from [1] so that an + * initial match-at-newline will be true. + */ + + b->yy_ch_buf[0] = '\n'; + b->yy_n_chars = 1; + + /* we always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[2] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[1]; + + b->yy_eof_status = EOF_NOT_SEEN; + } +# line 108 "lexer.l" + + + +#ifdef FLEX_SCANNER +static int lex_input() { + return input(); +} +#else /* BSD/AT&T lex */ +#ifndef input +# error "Sorry, but need either flex or AT&T lex" +#endif +static int lex_input() { + return input(); +} +/* # undef unput +# define unput(_c) my_unput(_c) +*/ + +# undef input +# define input() my_input() +static int my_unput(char c) +{ + if (lex_read_from_string) { + /* Make sure we have something */ + if (lex_string_ptr) { + if (c == '\n') yylineno--; + lex_string_ptr--; + } + } else { + yytchar= (c);if(yytchar=='\n')yylineno--;*yysptr++=yytchar; +/* unput(c); Causes infinite recursion! */ + } + return c; +} + +#endif + +/* Public */ +void LexFromFile(FILE *fd) +{ + lex_read_from_string = 0; + yyin = fd; + /* Don't know why this is necessary, but otherwise + * lex only works _once_! + */ +#ifdef FLEX_SCANNER + yy_init = 1; +#endif +} + +void LexFromString(char *buffer) +{ + lex_read_from_string = 1; + lex_buffer = buffer; + lex_buffer_length = strlen(buffer); + lex_string_ptr = 0; + /* Don't know why this is necessary, but otherwise + * lex only works _once_! + */ +#ifdef FLEX_SCANNER + yy_init = 1; +#endif +} + +static int my_input( void ) +{ + if (lex_read_from_string) { + if (lex_string_ptr == lex_buffer_length) + return 0; + else { + char c = lex_buffer[lex_string_ptr++]; +#ifndef FLEX_SCANNER + if (c == '\n') yylineno++; +#endif + return c; + } + } else { + return lex_input(); + } +} + +void wxExprCleanUp() +{ + if (yy_current_buffer) + yy_delete_buffer(yy_current_buffer); +} diff --git a/src/common/y_tab.c b/src/common/y_tab.c new file mode 100644 index 0000000000..c15eb4e2cf --- /dev/null +++ b/src/common/y_tab.c @@ -0,0 +1,517 @@ +#ifndef lint +static char yysccsid[] = "@(#)yaccpar 1.7 (Berkeley) 09/09/90"; +#endif +#define YYBYACC 1 +/* #line 2 "parser.y" */ +#include "string.h" +#include "wx/expr.h" + +#ifndef __EXTERN_C__ +#define __EXTERN_C__ 1 +#endif + +#if defined(__cplusplus) || defined(__STDC__) +#if defined(__cplusplus) && defined(__EXTERN_C__) +extern "C" { +#endif +#endif +int yylex(void); +int yylook(void); +/* int yywrap(void); */ +int yyback(int *, int); + +/* You may need to put /DLEX_SCANNER in your makefile + * if you're using LEX! + Last change: JS 13 Jul 97 6:12 pm + */ +#ifdef LEX_SCANNER +/* int yyoutput(int); */ +void yyoutput(int); +#else +void yyoutput(int); +#endif + +#if defined(__cplusplus) || defined(__STDC__) +#if defined(__cplusplus) && defined(__EXTERN_C__) +} +#endif +#endif +#line 36 "parser.y" +typedef union { + char *s; +/* struct pexpr *expr; */ +} YYSTYPE; +#line 44 "y_tab.c" +#define INTEGER 1 +#define WORD 2 +#define STRING 3 +#define PERIOD 13 +#define OPEN 4 +#define CLOSE 5 +#define COMMA 6 +#define NEWLINE 7 +#define ERROR 8 +#define OPEN_SQUARE 9 +#define CLOSE_SQUARE 10 +#define EQUALS 11 +#define EXP 14 +#define YYERRCODE 256 +short yylhs[] = { -1, + 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, + 3, 4, 4, 5, 5, 5, 5, 5, 5, 5, +}; +short yylen[] = { 2, + 0, 2, 2, 2, 2, 4, 2, 3, 0, 1, + 3, 3, 1, 1, 1, 1, 3, 3, 5, 1, +}; +short yydefred[] = { 1, + 0, 0, 0, 0, 2, 0, 5, 3, 0, 0, + 0, 15, 7, 20, 0, 0, 13, 4, 0, 0, + 0, 0, 8, 0, 6, 0, 18, 0, 12, 11, + 0, 19, +}; +short yydgoto[] = { 1, + 5, 14, 15, 16, 17, +}; +short yysindex[] = { 0, + -2, 9, 2, 1, 0, 10, 0, 0, 11, -5, + 17, 0, 0, 0, 14, -1, 0, 0, 33, 38, + 41, 16, 0, 11, 0, 29, 0, 40, 0, 0, + 44, 0, +}; +short yyrindex[] = { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 42, 21, + 24, 0, 0, 0, 0, 30, 0, 0, 0, 0, + 0, 0, 0, 31, 0, 27, 0, 24, 0, 0, + 0, 0, +}; +short yygindex[] = { 0, + 0, 45, -8, 0, 26, +}; +#define YYTABLESIZE 254 +short yytable[] = { 3, + 19, 10, 11, 12, 24, 9, 4, 20, 21, 4, + 13, 10, 11, 12, 8, 30, 10, 28, 12, 4, + 9, 7, 18, 23, 4, 16, 16, 22, 14, 14, + 16, 17, 17, 14, 10, 9, 17, 25, 26, 10, + 9, 27, 31, 9, 32, 6, 9, 29, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 2, +}; +short yycheck[] = { 2, + 9, 1, 2, 3, 6, 4, 9, 13, 14, 9, + 10, 1, 2, 3, 13, 24, 1, 2, 3, 9, + 4, 13, 13, 10, 9, 5, 6, 11, 5, 6, + 10, 5, 6, 10, 5, 5, 10, 5, 1, 10, + 10, 1, 14, 4, 1, 1, 5, 22, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 256, +}; +#define YYFINAL 1 +#ifndef YYDEBUG +#define YYDEBUG 0 +#endif +#define YYMAXTOKEN 14 +#if YYDEBUG +char *yyname[] = { +"end-of-file","INTEGER","WORD","STRING","OPEN","CLOSE","COMMA","NEWLINE", +"ERROR","OPEN_SQUARE","CLOSE_SQUARE","EQUALS",0,"PERIOD","EXP", +}; +char *yyrule[] = { +"$accept : commands", +"commands :", +"commands : commands command", +"command : WORD PERIOD", +"command : expr PERIOD", +"command : error PERIOD", +"expr : WORD OPEN arglist CLOSE", +"expr : OPEN_SQUARE CLOSE_SQUARE", +"expr : OPEN_SQUARE arglist CLOSE_SQUARE", +"arglist :", +"arglist : arg", +"arglist : arg COMMA arglist", +"arg : WORD EQUALS arg1", +"arg : arg1", +"arg1 : WORD", +"arg1 : STRING", +"arg1 : INTEGER", +"arg1 : INTEGER PERIOD INTEGER", +"arg1 : INTEGER EXP INTEGER", +"arg1 : INTEGER PERIOD INTEGER EXP INTEGER", +"arg1 : expr", +}; +#endif +#define yyclearin (yychar=(-1)) +#define yyerrok (yyerrflag=0) +#ifdef YYSTACKSIZE +#ifndef YYMAXDEPTH +#define YYMAXDEPTH YYSTACKSIZE +#endif +#else +#ifdef YYMAXDEPTH +#define YYSTACKSIZE YYMAXDEPTH +#else +#define YYSTACKSIZE 600 +#define YYMAXDEPTH 600 +#endif +#endif +int yydebug; +int yynerrs; +int yyerrflag; +int yychar; +short *yyssp; +YYSTYPE *yyvsp; +YYSTYPE yyval; +YYSTYPE yylval; +short yyss[YYSTACKSIZE]; +YYSTYPE yyvs[YYSTACKSIZE]; +#define yystacksize YYSTACKSIZE +#line 118 "parser.y" + +#include "../common/lex_yy.c" + +/* +void yyerror(s) +char *s; +{ + syntax_error(s); +} +*/ + +/* Ansi prototype. If this doesn't work for you... uncomment + the above instead. + */ + +void yyerror(char *s) +{ + syntax_error(s); +} + +/* + * Unfortunately, my DOS version of FLEX + * requires yywrap to be #def'ed, whereas + * the UNIX flex expects a proper function. + */ + +/* Not sure if __SC__ is the appropriate thing + * to test + */ + +#ifndef __SC__ +#ifdef USE_DEFINE +#ifndef yywrap +#define yywrap() 1 +#endif +#else +/* int yywrap() { return 1; } */ +#endif +#endif +#line 247 "y_tab.c" +#define YYABORT goto yyabort +#define YYACCEPT goto yyaccept +#define YYERROR goto yyerrlab +int +yyparse() +{ + register int yym, yyn, yystate; +#if YYDEBUG + register char *yys; + extern char *getenv(); + + if (yys = getenv("YYDEBUG")) + { + yyn = *yys; + if (yyn >= '0' && yyn <= '9') + yydebug = yyn - '0'; + } +#endif + + yynerrs = 0; + yyerrflag = 0; + yychar = (-1); + + yyssp = yyss; + yyvsp = yyvs; + *yyssp = yystate = 0; + +yyloop: + if (yyn = yydefred[yystate]) goto yyreduce; + if (yychar < 0) + { + if ((yychar = yylex()) < 0) yychar = 0; +#if YYDEBUG + if (yydebug) + { + yys = 0; + if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; + if (!yys) yys = "illegal-symbol"; + printf("yydebug: state %d, reading %d (%s)\n", yystate, + yychar, yys); + } +#endif + } + if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 && + yyn <= YYTABLESIZE && yycheck[yyn] == yychar) + { +#if YYDEBUG + if (yydebug) + printf("yydebug: state %d, shifting to state %d\n", + yystate, yytable[yyn]); +#endif + if (yyssp >= yyss + yystacksize - 1) + { + goto yyoverflow; + } + *++yyssp = yystate = yytable[yyn]; + *++yyvsp = yylval; + yychar = (-1); + if (yyerrflag > 0) --yyerrflag; + goto yyloop; + } + if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 && + yyn <= YYTABLESIZE && yycheck[yyn] == yychar) + { + yyn = yytable[yyn]; + goto yyreduce; + } + if (yyerrflag) goto yyinrecovery; +#ifdef lint + goto yynewerror; +#endif +yynewerror: + yyerror("syntax error"); +#ifdef lint + goto yyerrlab; +#endif +yyerrlab: + ++yynerrs; +yyinrecovery: + if (yyerrflag < 3) + { + yyerrflag = 3; + for (;;) + { + if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 && + yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) + { +#if YYDEBUG + if (yydebug) + printf("yydebug: state %d, error recovery shifting\ + to state %d\n", *yyssp, yytable[yyn]); +#endif + if (yyssp >= yyss + yystacksize - 1) + { + goto yyoverflow; + } + *++yyssp = yystate = yytable[yyn]; + *++yyvsp = yylval; + goto yyloop; + } + else + { +#if YYDEBUG + if (yydebug) + printf("yydebug: error recovery discarding state %d\n", + *yyssp); +#endif + if (yyssp <= yyss) goto yyabort; + --yyssp; + --yyvsp; + } + } + } + else + { + if (yychar == 0) goto yyabort; +#if YYDEBUG + if (yydebug) + { + yys = 0; + if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; + if (!yys) yys = "illegal-symbol"; + printf("yydebug: state %d, error recovery discards token %d (%s)\n", + yystate, yychar, yys); + } +#endif + yychar = (-1); + goto yyloop; + } +yyreduce: +#if YYDEBUG + if (yydebug) + printf("yydebug: state %d, reducing by rule %d (%s)\n", + yystate, yyn, yyrule[yyn]); +#endif + yym = yylen[yyn]; + yyval = yyvsp[1-yym]; + switch (yyn) + { +case 3: +#line 68 "parser.y" +{process_command(proio_cons(make_word(yyvsp[-1].s), NULL)); free(yyvsp[-1].s);} +break; +case 4: +#line 70 "parser.y" +{process_command(yyvsp[-1].s);} +break; +case 5: +#line 72 "parser.y" +{syntax_error("Unrecognized command.");} +break; +case 6: +#line 76 "parser.y" +{yyval.s = proio_cons(make_word(yyvsp[-3].s), yyvsp[-1].s); free(yyvsp[-3].s);} +break; +case 7: +#line 78 "parser.y" +{yyval.s = proio_cons(NULL, NULL);} +break; +case 8: +#line 80 "parser.y" +{yyval.s = yyvsp[-1].s; } +break; +case 9: +#line 84 "parser.y" +{yyval.s = NULL;} +break; +case 10: +#line 86 "parser.y" +{yyval.s = proio_cons(yyvsp[0].s, NULL);} +break; +case 11: +#line 89 "parser.y" +{yyval.s = proio_cons(yyvsp[-2].s, yyvsp[0].s);} +break; +case 12: +#line 93 "parser.y" +{yyval.s = proio_cons(make_word("="), proio_cons(make_word(yyvsp[-2].s), proio_cons(yyvsp[0].s, NULL))); + free(yyvsp[-2].s); } +break; +case 13: +#line 96 "parser.y" +{yyval.s = yyvsp[0].s; } +break; +case 14: +#line 99 "parser.y" +{yyval.s = make_word(yyvsp[0].s); free(yyvsp[0].s);} +break; +case 15: +#line 101 "parser.y" +{yyval.s = make_string(yyvsp[0].s); free(yyvsp[0].s);} +break; +case 16: +#line 103 "parser.y" +{yyval.s = make_integer(yyvsp[0].s); free(yyvsp[0].s);} +break; +case 17: +#line 105 "parser.y" +{yyval.s = make_real(yyvsp[-2].s, yyvsp[0].s); free(yyvsp[-2].s); free(yyvsp[0].s); } +break; +case 18: +#line 107 "parser.y" +{yyval.s = make_exp(yyvsp[-2].s, yyvsp[0].s); free(yyvsp[-2].s); free(yyvsp[0].s); } +break; +case 19: +#line 110 "parser.y" +{yyval.s = make_exp2(yyvsp[-4].s, yyvsp[-2].s, yyvsp[0].s); free(yyvsp[-4].s); free(yyvsp[-2].s); + free(yyvsp[0].s); } +break; +case 20: +#line 114 "parser.y" +{yyval.s = yyvsp[0].s;} +break; +#line 461 "y_tab.c" + } + yyssp -= yym; + yystate = *yyssp; + yyvsp -= yym; + yym = yylhs[yyn]; + if (yystate == 0 && yym == 0) + { +#if YYDEBUG + if (yydebug) + printf("yydebug: after reduction, shifting from state 0 to\ + state %d\n", YYFINAL); +#endif + yystate = YYFINAL; + *++yyssp = YYFINAL; + *++yyvsp = yyval; + if (yychar < 0) + { + if ((yychar = yylex()) < 0) yychar = 0; +#if YYDEBUG + if (yydebug) + { + yys = 0; + if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; + if (!yys) yys = "illegal-symbol"; + printf("yydebug: state %d, reading %d (%s)\n", + YYFINAL, yychar, yys); + } +#endif + } + if (yychar == 0) goto yyaccept; + goto yyloop; + } + if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 && + yyn <= YYTABLESIZE && yycheck[yyn] == yystate) + yystate = yytable[yyn]; + else + yystate = yydgoto[yym]; +#if YYDEBUG + if (yydebug) + printf("yydebug: after reduction, shifting from state %d \ +to state %d\n", *yyssp, yystate); +#endif + if (yyssp >= yyss + yystacksize - 1) + { + goto yyoverflow; + } + *++yyssp = yystate; + *++yyvsp = yyval; + goto yyloop; +yyoverflow: + yyerror("yacc stack overflow"); +yyabort: + return (1); +yyaccept: + return (0); +} -- 2.45.2