Rev 537 | Rev 550 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 537 | Rev 546 | ||
---|---|---|---|
Line 404... | Line 404... | ||
404 | 404 | ||
405 | xstrcpy(sfr.sfFile.szName, outfilename); |
405 | xstrcpy(sfr.sfFile.szName, outfilename); |
406 | #ifdef WIN_ENV |
406 | #ifdef WIN_ENV |
407 | sfr.nFileExtension = (WORD)(xstrlen(outfilename) - strlen(".afs") + 1); |
407 | sfr.nFileExtension = (WORD)(xstrlen(outfilename) - strlen(".afs") + 1); |
408 | #endif |
408 | #endif |
409 | sfr.sfScript = 0; // FIXME: is that ok? |
409 | sfr.sfScript = smSystemScript; |
410 | 410 | ||
411 | // We only want the parameters (ctl,map) in the temporary .afs file |
411 | // We only want the parameters (ctl,map) in the temporary .afs file |
412 | // It is important to remove the expressions, otherwise they would be |
412 | // It is important to remove the expressions, otherwise they would be |
413 | // revealed in the temporary files. |
413 | // revealed in the temporary files. |
414 | for (i = 0; i < 4; i++) { |
414 | for (i = 0; i < 4; i++) { |
Line 506... | Line 506... | ||
506 | 506 | ||
507 | xstrcpy(sfr.sfFile.szName, outfilename); |
507 | xstrcpy(sfr.sfFile.szName, outfilename); |
508 | #ifdef WIN_ENV |
508 | #ifdef WIN_ENV |
509 | sfr.nFileExtension = (WORD)(xstrlen(outfilename) - strlen(".afs") + 1); |
509 | sfr.nFileExtension = (WORD)(xstrlen(outfilename) - strlen(".afs") + 1); |
510 | #endif |
510 | #endif |
511 | sfr.sfScript = 0; // FIXME: is that ok? |
511 | sfr.sfScript = smSystemScript; |
512 | 512 | ||
513 | // We only want the parameters (ctl,map) in the temporary .afs file |
513 | // We only want the parameters (ctl,map) in the temporary .afs file |
514 | if (isStandalone) { |
514 | if (isStandalone) { |
515 | for (i = 0; i < 4; i++) { |
515 | for (i = 0; i < 4; i++) { |
516 | bakexpr[i] = my_strdup(expr[i]); |
516 | bakexpr[i] = my_strdup(expr[i]); |