declare some variables in init.c instead of runtime startoff
authorceriel <none@none>
Tue, 3 May 1988 12:44:32 +0000 (12:44 +0000)
committerceriel <none@none>
Tue, 3 May 1988 12:44:32 +0000 (12:44 +0000)
lang/m2/libm2/head_m2.e
lang/m2/libm2/init.c

index 84caaac..b49cf17 100644 (file)
  exp $init
  inp $trap_handler
 
-handler
- con $catch
-environ
- bss EM_PSIZE,0,0
-argv
- bss EM_PSIZE,0,0
-argc
- bss EM_WSIZE,0,0
-CurrentProcess
- bss EM_PSIZE,0,0
-MainProcess
- bss EM_PSIZE,0,0
-StackBase
- bss EM_PSIZE,0,0
-MainLB
- bss EM_PSIZE,0,0
-StackSize
- bss EM_WSIZE,0,0
 mainroutine
  bss 2*EM_PSIZE,0,0
 
index 9dc40a4..f94e076 100644 (file)
@@ -25,3 +25,10 @@ init()
        sigtrp(M2_UNIXSIG, SIGALRM);
        sigtrp(M2_UNIXSIG, SIGTERM);
 }
+
+extern int catch();
+
+int (*handler)() = catch;
+char **argv, **environ;
+int argc, StackSize;
+char *CurrentProcess, MainProcess, StackBase, MainLB;