fixed calls of echo() macro's

This commit is contained in:
eck 1990-03-13 14:33:43 +00:00
parent 2c7496a525
commit d04a8595f3
3 changed files with 7 additions and 6 deletions

View file

@ -304,6 +304,7 @@ do_include()
error("cannot open include file \"%s\"", filenm); error("cannot open include file \"%s\"", filenm);
} }
else { else {
if (filenm != result) free(filenm);
WorkingDir = getwdir(result); WorkingDir = getwdir(result);
svnestlevel[++nestcount] = nestlevel; svnestlevel[++nestcount] = nestlevel;
FileName = result; FileName = result;

View file

@ -159,7 +159,7 @@ preprocess(fn)
if (c == '*') { if (c == '*') {
op = SkipComment(op, &lineno); op = SkipComment(op, &lineno);
if (!op) return; if (!op) return;
if (!options['C']) echo(' '); if (!options['C']) { echo(' '); }
c = GetChar(); c = GetChar();
continue; continue;
} }
@ -198,7 +198,7 @@ preprocess(fn)
if (c == '*') { if (c == '*') {
op = SkipComment(op, &lineno); op = SkipComment(op, &lineno);
if (!op) return; if (!op) return;
if (!options['C']) echo(' '); if (!options['C']) { echo(' '); }
c = GetChar(); c = GetChar();
continue; continue;
} }
@ -264,7 +264,7 @@ preprocess(fn)
continue; continue;
} else if (!is_dig(c)) { } else if (!is_dig(c)) {
continue; continue;
} else echo(c); } else { echo(c); }
} }
c = GetChar(); c = GetChar();
while (in_idf(c) || c == '.') { while (in_idf(c) || c == '.') {
@ -338,7 +338,7 @@ preprocess(fn)
echo(*tg++); echo(*tg++);
} }
c = GetChar(); c = GetChar();
if (in_idf(c)) echo(' '); if (in_idf(c)) { echo(' '); }
continue; continue;
} }
nomac: nomac:

View file

@ -65,8 +65,8 @@ freeargs(args)
/* We must don't know how many parameters were specified, so be /* We must don't know how many parameters were specified, so be
* prepared to free all NPARAMS parameters. * prepared to free all NPARAMS parameters.
* When an expvec is !0, the rawvec will also be !0. * When an expvec is !NULL, the rawvec will also be !NULL.
* When an expvec is 0, all remaining vectors will also be 0. * When an expvec is NULL, all remaining vectors will also be NULL.
*/ */
for (i = 0; i < NPARAMS; i++) { for (i = 0; i < NPARAMS; i++) {
if (args->a_expvec[i]) { if (args->a_expvec[i]) {