1984-11-27 22:11:59 +00:00
|
|
|
#include "bem.h"
|
1984-11-27 23:21:41 +00:00
|
|
|
#include <em_path.h>
|
1984-11-27 22:11:59 +00:00
|
|
|
|
1984-11-27 23:13:28 +00:00
|
|
|
#ifndef NORSCID
|
|
|
|
static char rcs_id[] = "$Header$" ;
|
|
|
|
#endif
|
|
|
|
|
1984-11-27 22:11:59 +00:00
|
|
|
/* generate temporary files etc */
|
|
|
|
|
|
|
|
FILE *emfile;
|
|
|
|
FILE *tmpfile;
|
|
|
|
FILE *datfile;
|
|
|
|
|
|
|
|
initialize()
|
|
|
|
{
|
1984-11-27 23:21:41 +00:00
|
|
|
sprintf(tmpfname,"%s/abc%d",TMP_DIR,getpid());
|
1984-11-27 22:11:59 +00:00
|
|
|
strcpy(datfname,program);
|
|
|
|
strcat(datfname,".d");
|
|
|
|
yyin= fopen(inpfile,"r");
|
|
|
|
emfile= fopen(outfile,"w");
|
|
|
|
tmpfile= fopen(tmpfname,"w");
|
|
|
|
if( yyin==NULL || emfile== NULL || tmpfile== NULL )
|
|
|
|
fatal("Improper file permissions");
|
|
|
|
fillkex(); /* initialize symbol table */
|
|
|
|
fprintf(emfile,"#\n");
|
|
|
|
fprintf(emfile," mes 2,EM_WSIZE,EM_PSIZE\n");
|
|
|
|
initdeftype(); /* set default symbol declarers */
|
|
|
|
}
|