Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.3 KiB

4 years ago
  1. /* common macro definitions for C/FTL programs generated by flex */
  2. /* returned upon end-of-file */
  3. #define YY_END_TOK 0
  4. /* action number for an "end-of-file was seen and yywrap indicated that we
  5. * should continue processing"
  6. */
  7. #define YY_NEW_FILE -1
  8. /* action number for "the default action should be done" */
  9. #define YY_DO_DEFAULT -2
  10. #ifndef BUFSIZ
  11. #include <stdio.h>
  12. #endif
  13. #define YY_BUF_SIZE (BUFSIZ * 2) /* size of input buffer */
  14. /* number of characters one rule can match. One less than YY_BUF_SIZE to make
  15. * sure we never access beyond the end of an array
  16. */
  17. #define YY_BUF_MAX (YY_BUF_SIZE - 1)
  18. /* we will never use more than the first YY_BUF_LIM + YY_MAX_LINE positions
  19. * of the input buffer
  20. */
  21. #ifndef YY_MAX_LINE
  22. #define YY_MAX_LINE BUFSIZ
  23. #endif
  24. #define YY_BUF_LIM (YY_BUF_MAX - YY_MAX_LINE)
  25. /* copy whatever the last rule matched to the standard output */
  26. #define ECHO fputs( yytext, yyout )
  27. /* gets input and stuffs it into "buf". number of characters read, or YY_NULL,
  28. * is returned in "result".
  29. */
  30. #define YY_INPUT(buf,result,max_size) \
  31. if ( (result = read( fileno(yyin), buf, max_size )) < 0 ) \
  32. YY_FATAL_ERROR( "read() in flex scanner failed" );
  33. #define YY_NULL 0
  34. /* macro used to output a character */
  35. #define YY_OUTPUT(c) putc( c, yyout );
  36. /* report a fatal error */
  37. #define YY_FATAL_ERROR(msg) \
  38. { \
  39. fputs( msg, stderr ); \
  40. putc( '\n', stderr ); \
  41. exit( 1 ); \
  42. }
  43. /* returns the first character of the matched text */
  44. #define YY_FIRST_CHAR yy_ch_buf[yy_b_buf_p]
  45. /* default yywrap function - always treat EOF as an EOF */
  46. #define yywrap() 1
  47. /* enter a start condition. This macro really ought to take a parameter,
  48. * but we do it the disgusting crufty way that old Unix-lex does it
  49. */
  50. #define BEGIN yy_start = 1 +
  51. /* callable from YY_INPUT to set things up so that '%' will match. Proper
  52. * usage is "YY_SET_BOL(array,pos)"
  53. */
  54. #define YY_SET_BOL(array,pos) array[pos - 1] = '\n';
  55. /* default declaration of generated scanner - a define so the user can
  56. * easily add parameters
  57. */
  58. #define YY_DECL int yylex()
  59. /* return all but the first 'n' matched characters back to the input stream */
  60. #define yyless(n) \
  61. { \
  62. YY_DO_BEFORE_SCAN; /* undo effects of setting up yytext */ \
  63. yy_c_buf_p = yy_b_buf_p + n - 1; \
  64. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  65. }
  66. /* code executed at the end of each rule */
  67. #define YY_BREAK break;