home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / fileutil / scan.lha / src / lexerror.c < prev    next >
C/C++ Source or Header  |  1992-05-21  |  547b  |  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.  * William Lee   28-Dec-86  Adapt for Commodore-Amiga 1000 and Lattice C.
  7.  */
  8.  
  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.