381 |
|
{ |
382 |
|
register int i; |
383 |
|
|
384 |
– |
eputs(linbuf); |
385 |
– |
if (linbuf[strlen(linbuf)-1] != '\n') |
386 |
– |
eputs("\n"); |
387 |
– |
for (i = 0; i < linepos-1; i++) |
388 |
– |
eputs(linbuf[i] == '\t' ? "\t" : " "); |
389 |
– |
eputs("^ "); |
384 |
|
if (infile != NULL || lineno != 0) { |
391 |
– |
eputs("\n"); |
385 |
|
if (infile != NULL) eputs(infile); |
386 |
|
if (lineno != 0) { |
387 |
|
eputs(infile != NULL ? ", line " : "line "); |
388 |
|
eputs(ltoa((long)lineno)); |
389 |
|
} |
390 |
< |
eputs(": "); |
390 |
> |
eputs(": syntax error:\n"); |
391 |
|
} |
392 |
+ |
eputs(linbuf); |
393 |
+ |
if (linbuf[strlen(linbuf)-1] != '\n') |
394 |
+ |
eputs("\n"); |
395 |
+ |
for (i = 0; i < linepos-1; i++) |
396 |
+ |
eputs(linbuf[i] == '\t' ? "\t" : " "); |
397 |
+ |
eputs("^ "); |
398 |
|
eputs(err); |
399 |
|
eputs("\n"); |
400 |
|
quit(1); |