Use the appropriate error function for displaying the error,

instead of printing it to stdout.

MFC after:	1 week
This commit is contained in:
Diomidis Spinellis 2005-11-20 13:48:15 +00:00
parent 8eb116b96e
commit 855196e9fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152635

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,