dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/engine ilrun.c,1.35,1.36


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine ilrun.c,1.35,1.36
Date: Tue, 08 Jul 2003 00:11:17 -0400

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv31739/engine

Modified Files:
        ilrun.c 
Log Message:


Modify "ilrun" to avoid va_list's also.


Index: ilrun.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/ilrun.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -r1.35 -r1.36
*** ilrun.c     5 Jul 2003 22:51:32 -0000       1.35
--- ilrun.c     8 Jul 2003 04:11:14 -0000       1.36
***************
*** 152,155 ****
--- 152,157 ----
        char *ilprogram;
        int ilprogramLen;
+       ILExecValue execValue;
+       ILExecValue retValue;
        int flags=0;
  #ifndef IL_CONFIG_REDUCE_CODE
***************
*** 414,423 ****
                retval = CallStaticConstructor(thread, method);
                sawException = retval;
!               
!               if(!sawException && ILExecThreadCall(thread, method, &retval, 
args))
                {
                        /* An exception was thrown while executing the program 
*/
                        sawException = 1;
                        retval = 1;
                }
        }
--- 416,431 ----
                retval = CallStaticConstructor(thread, method);
                sawException = retval;
!               execValue.ptrValue = args;
!               ILMemZero(&retValue, sizeof(retValue));
!               if(!sawException && ILExecThreadCallV
!                               (thread, method, &retValue, &execValue))
                {
                        /* An exception was thrown while executing the program 
*/
                        sawException = 1;
                        retval = 1;
+               }
+               else if(!sawException)
+               {
+                       retval = retValue.int32Value;
                }
        }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]