home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update14.zoo / bc / scanl.diff < prev   
Encoding:
Text File  |  1992-01-15  |  965 b   |  34 lines

  1. *** scan.l.orig    Fri Dec 20 11:54:53 1991
  2. --- scan.l    Fri Dec 20 11:56:17 1991
  3. ***************
  4. *** 49,59 ****
  5.      does nothing! */
  6.   #include <errno.h>
  7.   #undef  YY_INPUT
  8.   #define YY_INPUT(buf,result,max_size) \
  9.       while ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  10.           if (errno != EINTR) \
  11.           YY_FATAL_ERROR( "read() in flex scanner failed" );
  12.   %}
  13.   DIGIT [0-9A-F]
  14.   LETTER [a-z]
  15. --- 49,65 ----
  16.      does nothing! */
  17.   #include <errno.h>
  18.   #undef  YY_INPUT
  19. + #ifndef atarist
  20.   #define YY_INPUT(buf,result,max_size) \
  21.       while ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  22.           if (errno != EINTR) \
  23.           YY_FATAL_ERROR( "read() in flex scanner failed" );
  24. ! #else
  25. ! #define YY_INPUT(buf,result,max_size) \
  26. !     while ( (result = _yyread( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  27. !         if (errno != EINTR) \
  28. !         YY_FATAL_ERROR( "read() in flex scanner failed" );
  29. ! #endif
  30.   %}
  31.   DIGIT [0-9A-F]
  32.   LETTER [a-z]
  33.