fix ppconcat function
This commit is contained in:
parent
49f88fb49b
commit
f59b285e17
@ -1830,11 +1830,10 @@ static void substallpatterns(unsigned char *line,int buffersize)
|
|||||||
} /* if */
|
} /* if */
|
||||||
} /* while */
|
} /* while */
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static void ppconcat(const char *line)
|
static void ppconcat(const char *line)
|
||||||
{
|
{
|
||||||
register const char *c, *p, *b;
|
const char *c,*p,*b;
|
||||||
for (c=line; *c!='\0'; ++c) {
|
for (c=line; *c!='\0'; ++c) {
|
||||||
if (is_startstring(c))
|
if (is_startstring(c))
|
||||||
c=skipstring(c);
|
c=skipstring(c);
|
||||||
@ -1849,6 +1848,7 @@ static void ppconcat(const char *line)
|
|||||||
} /* if */
|
} /* if */
|
||||||
} /* for */
|
} /* for */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* preprocess
|
/* preprocess
|
||||||
*
|
*
|
||||||
@ -1873,14 +1873,13 @@ SC_FUNC void preprocess(void)
|
|||||||
stripcom(pline); /* ??? no need for this when reading back from list file (in the second pass) */
|
stripcom(pline); /* ??? no need for this when reading back from list file (in the second pass) */
|
||||||
lptr=pline; /* set "line pointer" to start of the parsing buffer */
|
lptr=pline; /* set "line pointer" to start of the parsing buffer */
|
||||||
iscommand=command();
|
iscommand=command();
|
||||||
ppconcat((char*)lptr);
|
|
||||||
if (iscommand!=CMD_NONE)
|
if (iscommand!=CMD_NONE)
|
||||||
errorset(sRESET,0); /* reset error flag ("panic mode") on empty line or directive */
|
errorset(sRESET,0); /* reset error flag ("panic mode") on empty line or directive */
|
||||||
#if !defined NO_DEFINE
|
#if !defined NO_DEFINE
|
||||||
if (iscommand==CMD_NONE) {
|
if (iscommand==CMD_NONE) {
|
||||||
assert(lptr!=term_expr);
|
assert(lptr!=term_expr);
|
||||||
substallpatterns(pline,sLINEMAX);
|
substallpatterns(pline,sLINEMAX);
|
||||||
ppconcat((char*)pline);
|
ppconcat(pline);
|
||||||
lptr=pline; /* reset "line pointer" to start of the parsing buffer */
|
lptr=pline; /* reset "line pointer" to start of the parsing buffer */
|
||||||
} /* if */
|
} /* if */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user