=================================================================== RCS file: /home/cvs/OpenXM/src/k097/sm1sm.c,v retrieving revision 1.1 retrieving revision 1.6 diff -u -p -r1.1 -r1.6 --- OpenXM/src/k097/sm1sm.c 2003/05/14 07:09:48 1.1 +++ OpenXM/src/k097/sm1sm.c 2021/03/12 06:45:55 1.6 @@ -1,9 +1,13 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/src/k097/sm1sm.c,v 1.5 2020/10/07 23:53:25 takayama Exp $ */ /* This is imported from kxx/sm1stackmachine.c */ #include #include +#include +#include #include "../kxx/ox_kan.h" #include "../kxx/serversm.h" +#include "ox_k0.h" + extern int OXprintMessage; /* server stack machine */ @@ -20,13 +24,14 @@ int Sm1_setMathCap(ox_stream os) { /* Set the mathcap data of the client in the server. */ /* sm1 <====== ox_sm1 mathcap is set in ox_stream = FILE2 * */ /* The mathcap data is on the stack. */ - struct object ob; - struct object ob2; + struct object ob = OINIT; + struct object ob2 = OINIT; int n,i; ob = KSpop(); KSpush(ob); KSexecuteString(" (mathcap data is ) message message "); Kan_setMathCapToStream(os,ob); /* set the math cap data associated to the ox_stream. */ + return 0; } void Sm1_pops(void) { char data[100]; @@ -56,7 +61,7 @@ char *Sm1_popString(void) { int Sm1_setName(void) { char *s; - struct object ob; + struct object ob = OINIT; s = Sm1_popString(); if (s == NULL) { printf("NULL argument for setName.\n"); @@ -72,7 +77,7 @@ int Sm1_setName(void) int Sm1_evalName(void) { char *s; - struct object ob; + struct object ob = OINIT; s = Sm1_popString(); if (s == NULL) { printf("NULL argument for evalName.\n"); @@ -100,9 +105,10 @@ int Sm1_popCMO(ox_stream fp,int serial) int Sm1_pushError2(int serial, int no, char *s) { - struct object ob; + struct object ob = OINIT; ob = KnewErrorPacket(serial,no,s); KSpush(ob); + return 0; } char *Sm1_popErrorMessage(char *s) { @@ -140,7 +146,7 @@ void Sm1_dupErrors(void) { } void Sm1_pushCMOtag(int serial) { - struct object obj; + struct object obj = OINIT; int t; obj = KSpeek(0); t = KgetCmoTagOfObject(obj);