|
From: John M M. <jo...@us...> - 2002-09-30 23:54:27
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm
In directory usw-pr-cvs1:/tmp/cvs-serv25674/squeak/platforms/Mac OS/vm
Modified Files:
sqMacMain.c
Log Message:
3.2.8b8 added argc argv env variables for UnixOSProcessPlugin
Index: sqMacMain.c
===================================================================
RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacMain.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** sqMacMain.c 17 Aug 2002 16:46:56 -0000 1.11
--- sqMacMain.c 30 Sep 2002 23:54:23 -0000 1.12
***************
*** 122,126 ****
--- 122,135 ----
#ifndef PLUGIN
+ #if defined ( __APPLE__ ) && defined ( __MACH__ )
+ /*** Variables -- globals for access from pluggable primitives ***/
+ int argCnt= 0;
+ char **argVec= 0;
+ char **envVec= 0;
+
+ int main(int argc, char **argv, char **envp) {
+ #else
int main(void) {
+ #endif
EventRecord theEvent;
sqImageFile f;
***************
*** 138,141 ****
--- 147,157 ----
error("This C compiler's time_t's are not 32 bits.");
}
+
+ #if defined ( __APPLE__ ) && defined ( __MACH__ )
+ /* Make parameters global for access from pluggable primitives */
+ argCnt= argc;
+ argVec= argv;
+ envVec= envp;
+ #endif
InitMacintosh();
|