]> granicus.if.org Git - postgresql/commitdiff
Make ECPG regression tests run with -c only for array_of_struct.pgc
authorMagnus Hagander <magnus@hagander.net>
Wed, 3 Oct 2007 11:57:36 +0000 (11:57 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 3 Oct 2007 11:57:36 +0000 (11:57 +0000)
on MSVC.

Fix strange nonstandard version of __stdcall specifyer in thread
tests on win32.

src/interfaces/ecpg/test/expected/thread-alloc.c
src/interfaces/ecpg/test/expected/thread-descriptor.c
src/interfaces/ecpg/test/expected/thread-prep.c
src/interfaces/ecpg/test/thread/alloc.pgc
src/interfaces/ecpg/test/thread/descriptor.pgc
src/interfaces/ecpg/test/thread/prep.pgc
src/tools/msvc/ecpg_regression.proj

index 12a95df8f668af321fcbbe900618f3fbb56a7c75..0f2979a2550a6d089700c3d78477d7ea1b4c13c4 100644 (file)
@@ -121,7 +121,7 @@ struct sqlca_t *ECPGget_sqlca(void);
 
 
 #ifdef WIN32
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index 4bbed8c256a274fd9f2d0fc85356e5367567978d..6fd0dd818bb76dd11855899bd915ab33713cc2f6 100644 (file)
@@ -101,7 +101,7 @@ struct sqlca_t *ECPGget_sqlca(void);
 
 
 #if defined(ENABLE_THREAD_SAFETY) && defined(WIN32)
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index 22b63f16fceeee09695dda11606c29348eff75ad..90d9dbc495842c728b2d47ba22ebb583b181f3f8 100644 (file)
@@ -121,7 +121,7 @@ struct sqlca_t *ECPGget_sqlca(void);
 
 
 #ifdef WIN32
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index d4850dcd88441dcbf41de58b4f95051746be1bb7..9c56c070c53b2c444706d80c8f28edc197834ef6 100644 (file)
@@ -28,7 +28,7 @@ exec sql whenever sqlerror sqlprint;
 exec sql whenever not found sqlprint;
 
 #ifdef WIN32
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index 7f7b4a1d0b94bfc1fff09ca0b0708a5e8a23b878..9560d105b6aa1d5be620bb9e6338c9b0d0096bb9 100644 (file)
@@ -17,7 +17,7 @@ EXEC SQL whenever sqlerror sqlprint;
 EXEC SQL whenever not found sqlprint;
 
 #if defined(ENABLE_THREAD_SAFETY) && defined(WIN32)
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index 314e24eecd25c88f05737c30037b215f6e220eed..0e822bb35984f40ec4e68ad4f10c76fed490a8f4 100644 (file)
@@ -28,7 +28,7 @@ exec sql whenever sqlerror sqlprint;
 exec sql whenever not found sqlprint;
 
 #ifdef WIN32
-static unsigned STDCALL fn(void* arg)
+static unsigned __stdcall fn(void* arg)
 #else
 static void* fn(void* arg)
 #endif
index a026c5433c48b1c4e1c56c3761a37144ccffaf8a..cccd6bce2edbeb109f2c55c070bb981f0c551644 100644 (file)
   <CreateProperty Value="-C INFORMIX -r no_indicator" Condition="'%(Pgc.FileName)'=='rnull'">
    <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
   </CreateProperty>
+  <CreateProperty Value="-c" Condition="'%(Pgc.FileName)'=='array_of_struct'">
+   <Output TaskParameter="Value" PropertyName="ECPGPARAM" />
+  </CreateProperty>
 
   <!-- Run ECPG and the Visual C++ compiler on the files. Don't bother with dependency check between the steps -->
-  <Exec WorkingDirectory="%(Pgc.RelativeDir)" Command="$(OUTDIR)ecpg\ecpg -c -I ../../include --regression $(ECPGPARAM) -o %(Pgc.Filename).c %(Pgc.Filename).pgc" />
+  <Exec WorkingDirectory="%(Pgc.RelativeDir)" Command="$(OUTDIR)ecpg\ecpg -I ../../include --regression $(ECPGPARAM) -o %(Pgc.Filename).c %(Pgc.Filename).pgc" />
   <Exec WorkingDirectorY="%(Pgc.RelativeDir)" Command="cl /nologo %(Pgc.FileName).c /TC /MD$(DEBUGLIB) /DENABLE_THREAD_SAFETY /DWIN32 /DWIN32_ONLY_COMPILER /I. /I..\..\include /I..\..\..\libpq /I..\..\..\..\include /link /defaultlib:$(OUTDIR)libecpg\libecpg.lib /defaultlib:$(OUTDIR)libecpg_compat\libecpg_compat.lib /defaultlib:$(OUTDIR)libpgtypes\libpgtypes.lib" />
  </Target>