[ros-diffs] [tkreuzer] 49540: [SPEC2PDEF] Handle varargs like cdecl

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Nov 9 13:08:00 UTC 2010


Author: tkreuzer
Date: Tue Nov  9 13:07:59 2010
New Revision: 49540

URL: http://svn.reactos.org/svn/reactos?rev=49540&view=rev
Log:
[SPEC2PDEF]
Handle varargs like cdecl

Modified:
    branches/cmake-bringup/tools/spec2pdef/spec2pdef.c

Modified: branches/cmake-bringup/tools/spec2pdef/spec2pdef.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/tools/spec2pdef/spec2pdef.c?rev=49540&r1=49539&r2=49540&view=diff
==============================================================================
--- branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] (original)
+++ branches/cmake-bringup/tools/spec2pdef/spec2pdef.c [iso-8859-1] Tue Nov  9 13:07:59 2010
@@ -95,7 +95,8 @@
     {
         pexp->nCallingConvention = CC_STDCALL;
     }
-    else if (_strcmpx(pcCurrent, "cdecl ") == 0)
+    else if ( (_strcmpx(pcCurrent, "cdecl ") == 0) ||
+              (_strcmpx(pcCurrent, "varargs ") == 0) )
     {
         pexp->nCallingConvention = CC_CDECL;
     }




More information about the Ros-diffs mailing list