- char *cp, *cp2, *savestring();
- outp=inp=p; *--outp='#'; while (*inp!='\n') p=cotoken(p);
- cp = outp + 1;
- while (isspace(*cp) && cp < inp)
- cp++;
- while (isdigit(*cp) && cp < inp)
- cp++;
- while (*cp != '"' && cp < inp)
- cp++;
- if (cp < inp) {
- cp++;
- cp2 = cp;
- while (*cp2 != '"' && cp2 < inp)
- cp2++;
- fnames[ifno] = savestring(cp, cp2);
+ char *savestring();
+ char filename[BUFSIZ], *cp = filename;
+ outp=inp=p; *--outp='#';
+ /* Find the line number.. */
+ do {
+ p = cotoken(p);
+ } while (!isnum(*inp) && *inp != '\n');
+ if (isnum(*inp))
+ lineno[ifno] = atoi(inp)-1;
+ /* Skip over the blank token */
+ inp = p;
+ if (*inp != '\n') {
+ p = cotoken(p); inp = p;