fixes, added some standard functions to handle LONGREAL, LONGINT

This commit is contained in:
ceriel
1987-05-27 10:16:03 +00:00
parent 86c5c56a38
commit bb9b16ab50
17 changed files with 210 additions and 48 deletions

View File

@@ -74,6 +74,7 @@ Compile(src, dst)
char *src, *dst;
{
extern struct tokenname tkidf[];
extern char *getwdir();
if (! InsertFile(src, (char **) 0, &src)) {
fprint(STDERR,"%s: cannot open %s\n", ProgName, src);
@@ -81,6 +82,7 @@ Compile(src, dst)
}
LineNumber = 1;
FileName = src;
WorkingDir = getwdir(src);
init_idf();
InitCst();
reserve(tkidf);
@@ -171,6 +173,10 @@ static struct stdproc {
{ "MAX", S_MAX },
{ "MIN", S_MIN },
{ "INCL", S_INCL },
{ "LONG", S_LONG },
{ "SHORT", S_SHORT },
{ "TRUNCD", S_TRUNCD },
{ "FLOATD", S_FLOATD },
{ 0, 0 }
};
@@ -246,3 +252,13 @@ cnt_scope, cnt_scopelist, cnt_tmpvar);
print("\nNumber of lines read: %d\n", cntlines);
}
#endif
No_Mem()
{
fatal("out of memory");
}
C_failed()
{
fatal("write failed");
}