fix ppconcat function

This commit is contained in:
VVWVV 2017-11-04 00:05:54 +03:00
parent 49f88fb49b
commit f59b285e17

View File

@ -1830,11 +1830,10 @@ static void substallpatterns(unsigned char *line,int buffersize)
} /* if */
} /* while */
}
#endif
static void ppconcat(const char *line)
{
register const char *c, *p, *b;
const char *c,*p,*b;
for (c=line; *c!='\0'; ++c) {
if (is_startstring(c))
c=skipstring(c);
@ -1849,6 +1848,7 @@ static void ppconcat(const char *line)
} /* if */
} /* for */
}
#endif
/* 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) */
lptr=pline; /* set "line pointer" to start of the parsing buffer */
iscommand=command();
ppconcat((char*)lptr);
if (iscommand!=CMD_NONE)
errorset(sRESET,0); /* reset error flag ("panic mode") on empty line or directive */
#if !defined NO_DEFINE
if (iscommand==CMD_NONE) {
assert(lptr!=term_expr);
substallpatterns(pline,sLINEMAX);
ppconcat((char*)pline);
ppconcat(pline);
lptr=pline; /* reset "line pointer" to start of the parsing buffer */
} /* if */
#endif