home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
OS2_LEX.ZIP
/
LEXERR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-10-05
|
502b
|
23 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 <lex.h>
#include <stdarg.h>
extern int yyline;
void lexerror(char *s)
{
va_list a1;
if (yyline)
fprintf(stderr, "%d: ", yyline);
va_start(a1, s);
vfprintf(stderr, s, a1);
va_end(a1);
}