=================================================================== RCS file: /home/cvs/OpenXM/src/k097/d.h,v retrieving revision 1.2 retrieving revision 1.5 diff -u -p -r1.2 -r1.5 --- OpenXM/src/k097/d.h 2000/01/21 03:01:25 1.2 +++ OpenXM/src/k097/d.h 2005/06/16 05:07:24 1.5 @@ -1,4 +1,4 @@ -/* $OpenXM$ */ +/* $OpenXM: OpenXM/src/k097/d.h,v 1.4 2005/06/09 04:47:16 takayama Exp $ */ /* d.h;*/ /* from stackm.h */ @@ -47,14 +47,18 @@ struct Object{ int tag; /* class identifier */ union cell lc; /* left cell */ union cell rc; /* right cell */ + struct object *attr; }; struct object{ /* must be compatible with stackm.h */ int tag; /* class identifier */ union cell lc; /* left cell */ union cell rc; /* right cell */ + struct object *attr; }; +#define OINIT { .attr = NULL } + typedef struct Object * objectp; /* cf. 65p of Schreiner. */ #define YYSTYPE objectp @@ -131,6 +135,7 @@ int fsungetc(int c,objectp op); void readLineFromFile(FILE *fp,struct stringBuf *obuf); struct stringBuf *newStringBuf(char *initstr); void doublingStringBuf(struct stringBuf *sbuf); +objectp checkIfTheFileExists(objectp name); void loadFile(objectp op); void loadFileWithCpp(objectp op); void showStringBuff(objectp op);