Leaked source code of windows server 2003
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.

100 lines
2.7 KiB

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