home *** CD-ROM | disk | FTP | other *** search
- /*
- * 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);
- }
-