From 2b50e6dfb06c2e7845594a3dff9982a366ef30ec Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 26 Oct 2006 09:14:27 +0000 Subject: [PATCH] *** empty log message *** --- ase/ase.dsw | 12 +++++ ase/test/lsp/lsp.c | 30 ++++++++--- ase/test/lsp/test_lsp.dsp | 102 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+), 7 deletions(-) create mode 100644 ase/test/lsp/test_lsp.dsp diff --git a/ase/ase.dsw b/ase/ase.dsw index d37ca88b..6f2d9a8a 100644 --- a/ase/ase.dsw +++ b/ase/ase.dsw @@ -39,6 +39,18 @@ Package=<4> ############################################################################### +Project: "test_lsp"=.\test\lsp\test_lsp.dsp - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + Global: Package=<5> diff --git a/ase/test/lsp/lsp.c b/ase/test/lsp/lsp.c index 776f3d17..08d0443e 100644 --- a/ase/test/lsp/lsp.c +++ b/ase/test/lsp/lsp.c @@ -178,7 +178,7 @@ static int __dprintf (const xp_char_t* fmt, ...) } -int xp_main (int argc, xp_char_t* argv[]) +int __main (int argc, xp_char_t* argv[]) { ase_lsp_t* lsp; ase_lsp_obj_t* obj; @@ -186,9 +186,6 @@ int xp_main (int argc, xp_char_t* argv[]) int mem, inc; ase_lsp_syscas_t syscas; -#ifdef __linux - mtrace (); -#endif if (xp_setlocale () == -1) { xp_fprintf (xp_stderr, @@ -304,10 +301,29 @@ int xp_main (int argc, xp_char_t* argv[]) ase_lsp_close (lsp); -#ifdef __linux - muntrace (); -#endif + return 0; } +int xp_main (int argc, xp_char_t* argv[]) +{ + int n; + +#if defined(__linux) && defined(_DEBUG) + mtrace (); +#endif + + n = __main (argc, argv); + +#if defined(__linux) && defined(_DEBUG) + muntrace (); +#endif +#if defined(_WIN32) && defined(_MSC_VER) && defined(_DEBUG) + _CrtDumpMemoryLeaks (); + wprintf (L"Press ENTER to quit\n"); + getchar (); +#endif + + return n; +} \ No newline at end of file diff --git a/ase/test/lsp/test_lsp.dsp b/ase/test/lsp/test_lsp.dsp new file mode 100644 index 00000000..39ff2f5a --- /dev/null +++ b/ase/test/lsp/test_lsp.dsp @@ -0,0 +1,102 @@ +# Microsoft Developer Studio Project File - Name="test_lsp" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=test_lsp - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "test_lsp.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "test_lsp.mak" CFG="test_lsp - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "test_lsp - Win32 Release" (based on "Win32 (x86) Console Application") +!MESSAGE "test_lsp - Win32 Debug" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "test_lsp - 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 "_CONSOLE" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\..\.." /I "\projects\xpkit" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D _WIN32_WINNT=0x0400 /D "__STAND_ALONE" /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /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 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 +# ADD LINK32 aselsp.lib xpbas.lib user32.lib kernel32.lib /nologo /subsystem:console /machine:I386 /out:"..\..\..\release\lsp.exe" /libpath:"..\..\release" /libpath:"\projects\xpkit\release" + +!ELSEIF "$(CFG)" == "test_lsp - 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 "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\..\.." /I "\projects\xpkit" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D _WIN32_WINNT=0x0400 /D "__STAND_ALONE" /FR /YX /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 +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 aselsp.lib xpbas.lib user32.lib kernel32.lib /nologo /subsystem:console /debug /machine:I386 /out:"..\..\..\debug\lsp.exe" /pdbtype:sept /libpath:"..\..\debug" /libpath:"\projects\xpkit\debug" + +!ENDIF + +# Begin Target + +# Name "test_lsp - Win32 Release" +# Name "test_lsp - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\lsp.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project