2003-03-11 Bernhard Held <bernhard@bernhardheld.de>
* src/SDCCloop.c (mergeRegions): an evil beast is dead
+ * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
2003-03-10 Borut Razem <borut.razem@siol.net>
int nlibPaths = 0;
char *relFiles[128];
int nrelFiles = 0;
-static char *preOutName;
/* uncomment JAMIN_DS390 to always override and use ds390 port
for mcs51 work. This is temporary, for compatibility testing. */
setMainValue ("cppextraopts", join(preArgv));
- if (preProcOnly)
- {
- if (fullDstFileName)
- {
- preOutName = Safe_strdup (fullDstFileName);
- }
- }
-
- /* Have to set cppoutfilename to something, even if just pre-processing. */
- setMainValue ("cppoutfilename", preOutName ? preOutName : "");
+ if (preProcOnly && fullDstFileName)
+ {
+ /* -E and -o given */
+ setMainValue ("cppoutfilename", fullDstFileName);
+ }
+ else
+ {
+ /* Have to set cppoutfilename to something, even if piping */
+ setMainValue ("cppoutfilename", "");
+ }
if (options.verbose)
printf ("sdcc: Calling preprocessor...\n");