parse-events-flex.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. #ifndef parse_events_HEADER_H
  2. #define parse_events_HEADER_H 1
  3. #define parse_events_IN_HEADER 1
  4. #line 6 "util/parse-events-flex.h"
  5. #define YY_INT_ALIGNED short int
  6. /* A lexical scanner generated by flex */
  7. #define FLEX_SCANNER
  8. #define YY_FLEX_MAJOR_VERSION 2
  9. #define YY_FLEX_MINOR_VERSION 5
  10. #define YY_FLEX_SUBMINOR_VERSION 35
  11. #if YY_FLEX_SUBMINOR_VERSION > 0
  12. #define FLEX_BETA
  13. #endif
  14. /* First, we deal with platform-specific or compiler-specific issues. */
  15. /* begin standard C headers. */
  16. #include <stdio.h>
  17. #include <string.h>
  18. #include <errno.h>
  19. #include <stdlib.h>
  20. /* end standard C headers. */
  21. /* flex integer type definitions */
  22. #ifndef FLEXINT_H
  23. #define FLEXINT_H
  24. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  25. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  26. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  27. * if you want the limit (max/min) macros for int types.
  28. */
  29. #ifndef __STDC_LIMIT_MACROS
  30. #define __STDC_LIMIT_MACROS 1
  31. #endif
  32. #include <inttypes.h>
  33. typedef int8_t flex_int8_t;
  34. typedef uint8_t flex_uint8_t;
  35. typedef int16_t flex_int16_t;
  36. typedef uint16_t flex_uint16_t;
  37. typedef int32_t flex_int32_t;
  38. typedef uint32_t flex_uint32_t;
  39. #else
  40. typedef signed char flex_int8_t;
  41. typedef short int flex_int16_t;
  42. typedef int flex_int32_t;
  43. typedef unsigned char flex_uint8_t;
  44. typedef unsigned short int flex_uint16_t;
  45. typedef unsigned int flex_uint32_t;
  46. #endif /* ! C99 */
  47. /* Limits of integral types. */
  48. #ifndef INT8_MIN
  49. #define INT8_MIN (-128)
  50. #endif
  51. #ifndef INT16_MIN
  52. #define INT16_MIN (-32767-1)
  53. #endif
  54. #ifndef INT32_MIN
  55. #define INT32_MIN (-2147483647-1)
  56. #endif
  57. #ifndef INT8_MAX
  58. #define INT8_MAX (127)
  59. #endif
  60. #ifndef INT16_MAX
  61. #define INT16_MAX (32767)
  62. #endif
  63. #ifndef INT32_MAX
  64. #define INT32_MAX (2147483647)
  65. #endif
  66. #ifndef UINT8_MAX
  67. #define UINT8_MAX (255U)
  68. #endif
  69. #ifndef UINT16_MAX
  70. #define UINT16_MAX (65535U)
  71. #endif
  72. #ifndef UINT32_MAX
  73. #define UINT32_MAX (4294967295U)
  74. #endif
  75. #endif /* ! FLEXINT_H */
  76. #ifdef __cplusplus
  77. /* The "const" storage-class-modifier is valid. */
  78. #define YY_USE_CONST
  79. #else /* ! __cplusplus */
  80. /* C99 requires __STDC__ to be defined as 1. */
  81. #if defined (__STDC__)
  82. #define YY_USE_CONST
  83. #endif /* defined (__STDC__) */
  84. #endif /* ! __cplusplus */
  85. #ifdef YY_USE_CONST
  86. #define yyconst const
  87. #else
  88. #define yyconst
  89. #endif
  90. /* Size of default input buffer. */
  91. #ifndef YY_BUF_SIZE
  92. #define YY_BUF_SIZE 16384
  93. #endif
  94. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  95. #define YY_TYPEDEF_YY_BUFFER_STATE
  96. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  97. #endif
  98. extern int parse_events_leng;
  99. extern FILE *parse_events_in, *parse_events_out;
  100. #ifndef YY_TYPEDEF_YY_SIZE_T
  101. #define YY_TYPEDEF_YY_SIZE_T
  102. typedef size_t yy_size_t;
  103. #endif
  104. #ifndef YY_STRUCT_YY_BUFFER_STATE
  105. #define YY_STRUCT_YY_BUFFER_STATE
  106. struct yy_buffer_state
  107. {
  108. FILE *yy_input_file;
  109. char *yy_ch_buf; /* input buffer */
  110. char *yy_buf_pos; /* current position in input buffer */
  111. /* Size of input buffer in bytes, not including room for EOB
  112. * characters.
  113. */
  114. yy_size_t yy_buf_size;
  115. /* Number of characters read into yy_ch_buf, not including EOB
  116. * characters.
  117. */
  118. int yy_n_chars;
  119. /* Whether we "own" the buffer - i.e., we know we created it,
  120. * and can realloc() it to grow it, and should free() it to
  121. * delete it.
  122. */
  123. int yy_is_our_buffer;
  124. /* Whether this is an "interactive" input source; if so, and
  125. * if we're using stdio for input, then we want to use getc()
  126. * instead of fread(), to make sure we stop fetching input after
  127. * each newline.
  128. */
  129. int yy_is_interactive;
  130. /* Whether we're considered to be at the beginning of a line.
  131. * If so, '^' rules will be active on the next match, otherwise
  132. * not.
  133. */
  134. int yy_at_bol;
  135. int yy_bs_lineno; /**< The line count. */
  136. int yy_bs_column; /**< The column count. */
  137. /* Whether to try to fill the input buffer when we reach the
  138. * end of it.
  139. */
  140. int yy_fill_buffer;
  141. int yy_buffer_status;
  142. };
  143. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  144. void parse_events_restart (FILE *input_file );
  145. void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer );
  146. YY_BUFFER_STATE parse_events__create_buffer (FILE *file,int size );
  147. void parse_events__delete_buffer (YY_BUFFER_STATE b );
  148. void parse_events__flush_buffer (YY_BUFFER_STATE b );
  149. void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer );
  150. void parse_events_pop_buffer_state (void );
  151. YY_BUFFER_STATE parse_events__scan_buffer (char *base,yy_size_t size );
  152. YY_BUFFER_STATE parse_events__scan_string (yyconst char *yy_str );
  153. YY_BUFFER_STATE parse_events__scan_bytes (yyconst char *bytes,int len );
  154. void *parse_events_alloc (yy_size_t );
  155. void *parse_events_realloc (void *,yy_size_t );
  156. void parse_events_free (void * );
  157. /* Begin user sect3 */
  158. extern int parse_events_lineno;
  159. extern char *parse_events_text;
  160. #define yytext_ptr parse_events_text
  161. #ifdef YY_HEADER_EXPORT_START_CONDITIONS
  162. #define INITIAL 0
  163. #endif
  164. #ifndef YY_NO_UNISTD_H
  165. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  166. * down here because we want the user's section 1 to have been scanned first.
  167. * The user has a chance to override it with an option.
  168. */
  169. #include <unistd.h>
  170. #endif
  171. #ifndef YY_EXTRA_TYPE
  172. #define YY_EXTRA_TYPE void *
  173. #endif
  174. /* Accessor methods to globals.
  175. These are made visible to non-reentrant scanners for convenience. */
  176. int parse_events_lex_destroy (void );
  177. int parse_events_get_debug (void );
  178. void parse_events_set_debug (int debug_flag );
  179. YY_EXTRA_TYPE parse_events_get_extra (void );
  180. void parse_events_set_extra (YY_EXTRA_TYPE user_defined );
  181. FILE *parse_events_get_in (void );
  182. void parse_events_set_in (FILE * in_str );
  183. FILE *parse_events_get_out (void );
  184. void parse_events_set_out (FILE * out_str );
  185. int parse_events_get_leng (void );
  186. char *parse_events_get_text (void );
  187. int parse_events_get_lineno (void );
  188. void parse_events_set_lineno (int line_number );
  189. /* Macros after this point can all be overridden by user definitions in
  190. * section 1.
  191. */
  192. #ifndef YY_SKIP_YYWRAP
  193. #ifdef __cplusplus
  194. extern "C" int parse_events_wrap (void );
  195. #else
  196. extern int parse_events_wrap (void );
  197. #endif
  198. #endif
  199. #ifndef yytext_ptr
  200. static void yy_flex_strncpy (char *,yyconst char *,int );
  201. #endif
  202. #ifdef YY_NEED_STRLEN
  203. static int yy_flex_strlen (yyconst char * );
  204. #endif
  205. #ifndef YY_NO_INPUT
  206. #endif
  207. /* Amount of stuff to slurp up with each read. */
  208. #ifndef YY_READ_BUF_SIZE
  209. #define YY_READ_BUF_SIZE 8192
  210. #endif
  211. /* Number of entries by which start-condition stack grows. */
  212. #ifndef YY_START_STACK_INCR
  213. #define YY_START_STACK_INCR 25
  214. #endif
  215. /* Default declaration of generated scanner - a define so the user can
  216. * easily add parameters.
  217. */
  218. #ifndef YY_DECL
  219. #define YY_DECL_IS_OURS 1
  220. extern int parse_events_lex (void);
  221. #define YY_DECL int parse_events_lex (void)
  222. #endif /* !YY_DECL */
  223. /* yy_get_previous_state - get the state just before the EOB char was reached */
  224. #undef YY_NEW_FILE
  225. #undef YY_FLUSH_BUFFER
  226. #undef yy_set_bol
  227. #undef yy_new_buffer
  228. #undef yy_set_interactive
  229. #undef YY_DO_BEFORE_ACTION
  230. #ifdef YY_DECL_IS_OURS
  231. #undef YY_DECL_IS_OURS
  232. #undef YY_DECL
  233. #endif
  234. #line 121 "util/parse-events.l"
  235. #line 315 "util/parse-events-flex.h"
  236. #undef parse_events_IN_HEADER
  237. #endif /* parse_events_HEADER_H */