home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 December / simtel1292_SIMTEL_1292_Walnut_Creek.iso / msdos / c / lex.arc / LEXERR.C < prev    next >
C/C++ Source or Header  |  1984-02-26  |  512b  |  21 lines

  1. /*
  2.  * Bob Denny 28-Aug-82    Move stdio dependencies to lexerr(), lexget(),
  3.  *                        lexech() and mapch(). This is one of 4 modules 
  4.  *                        in lexlib which depend upon the standard I/O package.
  5.  * Scott Guthery 20-Nov-83  Adapt for IBM PC & DeSmet C
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <lex.h>
  10.  
  11. extern int yyline;
  12.  
  13. lexerror(s, arg1, arg2, arg3)
  14. char *s;
  15. int arg1, arg2, arg3;
  16. {
  17.         if (yyline)
  18.                 fprintf(stderr, "%d: ", yyline);
  19.         fprintf(stderr, s, arg1, arg2, arg3);
  20. }
  21.