[Waba-commits] CVS: waba/vm/port nmport_c.c,1.6,1.7 nmport_c.h,1.2,1.3
Status: Abandoned
Brought to you by:
bornet
From: MURANAKA M. <mo...@us...> - 2001-09-02 10:06:54
|
Update of /cvsroot/waba/waba/vm/port In directory usw-pr-cvs1:/tmp/cvs-serv27666/port Modified Files: nmport_c.c nmport_c.h Log Message: Implemented Vm.exit(). It corresponds to System.exit(). We have already got MainWindow.exit() but console application because it isn't defined as static. Even if it was defined as static, it's funny to call UI packages from console application. Index: nmport_c.c =================================================================== RCS file: /cvsroot/waba/waba/vm/port/nmport_c.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** nmport_c.c 2001/09/02 03:48:43 1.6 --- nmport_c.c 2001/09/02 10:06:50 1.7 *************** *** 990,993 **** --- 990,1002 ---- } + Var VmExit(Var stack[]) + { + Var v; + int32 exitcode; + + v.obj = 0; + return v; + } + static Var VmSleep(Var stack[]) { Index: nmport_c.h =================================================================== RCS file: /cvsroot/waba/waba/vm/port/nmport_c.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** nmport_c.h 2001/08/18 20:26:21 1.2 --- nmport_c.h 2001/09/02 10:06:50 1.3 *************** *** 47,50 **** --- 47,51 ---- FUNC(VmGetTimeStamp); FUNC(copyArray); + FUNC(VmExit); FUNC(VmSleep); FUNC(VmSetDeviceAutoOff); |