- if (useVM == 0){
- strcat(tmpn1, tmpdirprefix);
- if (tmpdirprefix[strlen(tmpdirprefix)-1] != '/')
- strcat(tmpn1, "/");
- (void)strcat(tmpn1, TMP_SUFFIX);
- (void)mktemp(tmpn1);
- tmpfil = fopen(tmpn1, "w");
- if (tmpfil==NULL) {
- yyerror("Bad pass 1 temporary file for writing %s", tmpn1);
- delexit();
- }
- }
+ FILE *tempopen();
+ if (useVM == 0)
+ tokfile = tempopen(tokfilename, "T");
+ strfile = tempopen(strfilename, "S");
+ /*
+ * write out the string length.
+ * This will be overwritten when the
+ * strings are tacked onto the growing a.out file
+ */
+ strfilepos = sizeof(int);
+ fwrite(&strfilepos, sizeof(int), 1, strfile);