Use the appropriate error function for displaying the error,

instead of printing it to stdout.

MFC after:	1 week
This commit is contained in:
dds 2005-11-20 13:48:15 +00:00
parent 00a607320a
commit 1af684ac85

View File

@ -370,7 +370,7 @@ lexi(void)
do { /* copy the string */
while (1) { /* move one character or [/<char>]<char> */
if (*buf_ptr == '\n') {
printf("%d: Unterminated literal\n", line_no);
diag2(1, "Unterminated literal");
goto stop_lit;
}
CHECK_SIZE_TOKEN; /* Only have to do this once in this loop,