version 1.6, 1999/04/18 17:06:30 |
version 1.7, 1999/04/20 17:31:30 |
|
|
THIS SOFTWARE. |
THIS SOFTWARE. |
****************************************************************/ |
****************************************************************/ |
|
|
char *version = "version 990305"; |
char *version = "version 19990416"; |
|
|
#define DEBUG |
#define DEBUG |
#include <stdio.h> |
#include <stdio.h> |
|
|
yyin = stdin; |
yyin = stdin; |
else if ((yyin = fopen(pfile[curpfile], "r")) == NULL) |
else if ((yyin = fopen(pfile[curpfile], "r")) == NULL) |
ERROR "can't open file %s", pfile[curpfile] FATAL; |
ERROR "can't open file %s", pfile[curpfile] FATAL; |
|
lineno = 1; |
} |
} |
if ((c = getc(yyin)) != EOF) |
if ((c = getc(yyin)) != EOF) |
return c; |
return c; |
|
|
yyin = NULL; |
yyin = NULL; |
curpfile++; |
curpfile++; |
} |
} |
|
} |
|
|
|
char *cursource(void) /* current source file name */ |
|
{ |
|
if (npfile > 0) |
|
return pfile[curpfile]; |
|
else |
|
return NULL; |
} |
} |