Changeset 1082 for trunk/dll/systemf.c
- Timestamp:
- Jul 20, 2008, 12:37:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/systemf.c
r1047 r1082 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 200 6Steven H.Levine9 Copyright (c) 2003, 2008 Steven H.Levine 10 10 11 11 21 Nov 03 SHL Comments … … 23 23 29 Feb 08 GKY Refactor global command line variables to notebook.h 24 24 26 May 08 SHL Use uiLineNumber correctly 25 19 Jul 08 GKY Replace save_dir2(dir) with pFM2SaveDirectory or pTmpDir and use MakeTempName 25 26 26 27 ***********************************************************************/ … … 181 182 FILE *fp; 182 183 183 save_dir2(listfile); 184 if (listfile[strlen(listfile) - 1] != '\\') 185 strcat(listfile, "\\"); 186 sprintf(&listfile[strlen(listfile)], "%s%03x", 187 LISTTEMPROOT, (clock() & 4095)); 188 fp = xfopen(listfile, "w",pszSrcFile,__LINE__); 189 if (fp) { 190 for (x = 0; list[x]; x++) 191 { 192 fputs(list[x], fp); 193 if (list[x + 1]) 194 fputc('\n', fp); 195 } 196 fclose(fp); 197 } 198 } 199 strcpy(pp, listfile); 200 pp += strlen(listfile); 184 185 strcpy(listfile, pTmpDir ? pTmpDir : pFM2SaveDirectory); 186 MakeTempName(listfile, "$FM2LI$T", 2); 187 /*if (listfile[strlen(listfile) - 1] != '\\') 188 strcat(listfile, "\\"); 189 sprintf(&listfile[strlen(listfile)], "%s.%03x", 190 LISTTEMPROOT, (clock() & 4095));*/ 191 fp = xfopen(listfile, "w",pszSrcFile,__LINE__); 192 if (fp) { 193 for (x = 0; list[x]; x++) 194 { 195 fputs(list[x], fp); 196 if (list[x + 1]) 197 fputc('\n', fp); 198 } 199 fclose(fp); 200 } 201 } 202 strcpy(pp, listfile); 203 pp += strlen(listfile); 201 204 } 202 205 p += 2;
Note:
See TracChangeset
for help on using the changeset viewer.