home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
LEX
/
LEXERR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-01
|
512b
|
21 lines
/*
* Bob Denny 28-Aug-82 Move stdio dependencies to lexerr(), lexget(),
* lexech() and mapch(). This is one of 4 modules
* in lexlib which depend upon the standard I/O package.
* Scott Guthery 20-Nov-83 Adapt for IBM PC & DeSmet C
*/
#include <stdio.h>
#include <lex.h>
extern int yyline;
lexerror(s, arg1, arg2, arg3)
char *s;
int arg1, arg2, arg3;
{
if (yyline)
fprintf(stderr, "%d: ", yyline);
fprintf(stderr, s, arg1, arg2, arg3);
}