=================================================================== RCS file: /home/cvs/OpenXM/src/kxx/nullstackmachine.c,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- OpenXM/src/kxx/nullstackmachine.c 2001/05/06 07:53:00 1.2 +++ OpenXM/src/kxx/nullstackmachine.c 2016/08/27 01:35:07 1.5 @@ -2,19 +2,21 @@ #include "ox_kan.h" #include "serversm.h" #include +#include +#include jmp_buf EnvOfStackMachine; /* dummy data. */ int SerialCurrent = -1; int Quiet = 0; -void *GC_malloc(n) { +void *sGC_malloc(int n) { return((void *)malloc(n)); } /* internal use. */ int Sm1_popInt(); -Sm1_start() { +Sm1_start(int argc,char *fnames[],char *myname) { fprintf(stderr,"nullstackmachine: sleep, pstack\n"); } @@ -95,9 +97,10 @@ void printCMO_object(FILE *fp,CMO_Object *op) void *Sm1_mathcap(void) { int n,i; struct mathCap *mathcap; + static char *infoStr; + infoStr = "nullserver00 Version=0.1; 199901160;"; mathcap = (struct mathCap *) malloc(sizeof(struct mathCap)); - strcpy(mathcap->name,"nullserver00 Version=0.1"); - mathcap->version = 199901160; + mathcap->infop = infoStr; /* string is OK? 2016.08.27 */ mathcap->cmo[0] = CMO_ERROR2; mathcap->cmo[1] = CMO_NULL; mathcap->cmo[2] = CMO_INT32; @@ -269,7 +272,6 @@ int Sm1_pushCMO(ox_stream ostream) /* old one went to int Sm1_popCMO(ox_stream os,int serial) { FILE *fp2; - extern int errno; int c; int p; char data[1000]; @@ -300,4 +302,5 @@ int Sm1_pushError2(int serial,int no,char *s) /* These are dummy. It is defined in stackmachine.c */ unlockCtrlCForOx() { ; } restoreLockCtrlCForOx() { ; } +void cancelAlarm() { ; }