headerscanner.h 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. #ifndef header_HEADER_H
  2. #define header_HEADER_H 1
  3. #define header_IN_HEADER 1
  4. #line 10 "headerlexer.l"
  5. /*
  6. * This file is part of Wireless Display Software for Linux OS
  7. *
  8. * Copyright (C) 2015 Intel Corporation.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation; either
  13. * version 2.1 of the License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  23. * 02110-1301 USA
  24. */
  25. #include <stdint.h>
  26. #define YY_NO_UNISTD_H 1
  27. #line 34 "gen/headerscanner.h"
  28. #define YY_INT_ALIGNED short int
  29. /* A lexical scanner generated by flex */
  30. #define FLEX_SCANNER
  31. #define YY_FLEX_MAJOR_VERSION 2
  32. #define YY_FLEX_MINOR_VERSION 5
  33. #define YY_FLEX_SUBMINOR_VERSION 35
  34. #if YY_FLEX_SUBMINOR_VERSION > 0
  35. #define FLEX_BETA
  36. #endif
  37. /* First, we deal with platform-specific or compiler-specific issues. */
  38. /* begin standard C headers. */
  39. #include <stdio.h>
  40. #include <string.h>
  41. #include <errno.h>
  42. #include <stdlib.h>
  43. /* end standard C headers. */
  44. /* flex integer type definitions */
  45. #ifndef FLEXINT_H
  46. #define FLEXINT_H
  47. /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  48. #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  49. /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
  50. * if you want the limit (max/min) macros for int types.
  51. */
  52. #ifndef __STDC_LIMIT_MACROS
  53. #define __STDC_LIMIT_MACROS 1
  54. #endif
  55. #include <inttypes.h>
  56. typedef int8_t flex_int8_t;
  57. typedef uint8_t flex_uint8_t;
  58. typedef int16_t flex_int16_t;
  59. typedef uint16_t flex_uint16_t;
  60. typedef int32_t flex_int32_t;
  61. typedef uint32_t flex_uint32_t;
  62. #else
  63. typedef signed char flex_int8_t;
  64. typedef short int flex_int16_t;
  65. typedef int flex_int32_t;
  66. typedef unsigned char flex_uint8_t;
  67. typedef unsigned short int flex_uint16_t;
  68. typedef unsigned int flex_uint32_t;
  69. /* Limits of integral types. */
  70. #ifndef INT8_MIN
  71. #define INT8_MIN (-128)
  72. #endif
  73. #ifndef INT16_MIN
  74. #define INT16_MIN (-32767-1)
  75. #endif
  76. #ifndef INT32_MIN
  77. #define INT32_MIN (-2147483647-1)
  78. #endif
  79. #ifndef INT8_MAX
  80. #define INT8_MAX (127)
  81. #endif
  82. #ifndef INT16_MAX
  83. #define INT16_MAX (32767)
  84. #endif
  85. #ifndef INT32_MAX
  86. #define INT32_MAX (2147483647)
  87. #endif
  88. #ifndef UINT8_MAX
  89. #define UINT8_MAX (255U)
  90. #endif
  91. #ifndef UINT16_MAX
  92. #define UINT16_MAX (65535U)
  93. #endif
  94. #ifndef UINT32_MAX
  95. #define UINT32_MAX (4294967295U)
  96. #endif
  97. #endif /* ! C99 */
  98. #endif /* ! FLEXINT_H */
  99. #ifdef __cplusplus
  100. /* The "const" storage-class-modifier is valid. */
  101. #define YY_USE_CONST
  102. #else /* ! __cplusplus */
  103. /* C99 requires __STDC__ to be defined as 1. */
  104. #if defined (__STDC__)
  105. #define YY_USE_CONST
  106. #endif /* defined (__STDC__) */
  107. #endif /* ! __cplusplus */
  108. #ifdef YY_USE_CONST
  109. #define yyconst const
  110. #else
  111. #define yyconst
  112. #endif
  113. /* An opaque pointer. */
  114. #ifndef YY_TYPEDEF_YY_SCANNER_T
  115. #define YY_TYPEDEF_YY_SCANNER_T
  116. typedef void* yyscan_t;
  117. #endif
  118. /* For convenience, these vars (plus the bison vars far below)
  119. are macros in the reentrant scanner. */
  120. #define yyin yyg->yyin_r
  121. #define yyout yyg->yyout_r
  122. #define yyextra yyg->yyextra_r
  123. #define yyleng yyg->yyleng_r
  124. #define yytext yyg->yytext_r
  125. #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
  126. #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
  127. #define yy_flex_debug yyg->yy_flex_debug_r
  128. /* Size of default input buffer. */
  129. #ifndef YY_BUF_SIZE
  130. #ifdef __ia64__
  131. /* On IA-64, the buffer size is 16k, not 8k.
  132. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
  133. * Ditto for the __ia64__ case accordingly.
  134. */
  135. #define YY_BUF_SIZE 32768
  136. #else
  137. #define YY_BUF_SIZE 16384
  138. #endif /* __ia64__ */
  139. #endif
  140. #ifndef YY_TYPEDEF_YY_BUFFER_STATE
  141. #define YY_TYPEDEF_YY_BUFFER_STATE
  142. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  143. #endif
  144. #ifndef YY_TYPEDEF_YY_SIZE_T
  145. #define YY_TYPEDEF_YY_SIZE_T
  146. typedef size_t yy_size_t;
  147. #endif
  148. #ifndef YY_STRUCT_YY_BUFFER_STATE
  149. #define YY_STRUCT_YY_BUFFER_STATE
  150. struct yy_buffer_state
  151. {
  152. FILE *yy_input_file;
  153. char *yy_ch_buf; /* input buffer */
  154. char *yy_buf_pos; /* current position in input buffer */
  155. /* Size of input buffer in bytes, not including room for EOB
  156. * characters.
  157. */
  158. yy_size_t yy_buf_size;
  159. /* Number of characters read into yy_ch_buf, not including EOB
  160. * characters.
  161. */
  162. int yy_n_chars;
  163. /* Whether we "own" the buffer - i.e., we know we created it,
  164. * and can realloc() it to grow it, and should free() it to
  165. * delete it.
  166. */
  167. int yy_is_our_buffer;
  168. /* Whether this is an "interactive" input source; if so, and
  169. * if we're using stdio for input, then we want to use getc()
  170. * instead of fread(), to make sure we stop fetching input after
  171. * each newline.
  172. */
  173. int yy_is_interactive;
  174. /* Whether we're considered to be at the beginning of a line.
  175. * If so, '^' rules will be active on the next match, otherwise
  176. * not.
  177. */
  178. int yy_at_bol;
  179. int yy_bs_lineno; /**< The line count. */
  180. int yy_bs_column; /**< The column count. */
  181. /* Whether to try to fill the input buffer when we reach the
  182. * end of it.
  183. */
  184. int yy_fill_buffer;
  185. int yy_buffer_status;
  186. };
  187. #endif /* !YY_STRUCT_YY_BUFFER_STATE */
  188. void header_restart (FILE *input_file ,yyscan_t yyscanner );
  189. void header__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  190. YY_BUFFER_STATE header__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
  191. void header__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  192. void header__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
  193. void header_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
  194. void header_pop_buffer_state (yyscan_t yyscanner );
  195. YY_BUFFER_STATE header__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
  196. YY_BUFFER_STATE header__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
  197. YY_BUFFER_STATE header__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
  198. void *header_alloc (yy_size_t ,yyscan_t yyscanner );
  199. void *header_realloc (void *,yy_size_t ,yyscan_t yyscanner );
  200. void header_free (void * ,yyscan_t yyscanner );
  201. /* Begin user sect3 */
  202. #define header_wrap(n) 1
  203. #define YY_SKIP_YYWRAP
  204. #define yytext_ptr yytext_r
  205. #ifdef YY_HEADER_EXPORT_START_CONDITIONS
  206. #define INITIAL 0
  207. #define MATCH_STRING_STATE 1
  208. #define MATCH_RESPONSE_CODE_STATE 2
  209. #define SUPPORTED_METHODS_STATE 3
  210. #define CONTENT_TYPE_STATE 4
  211. #define SESSION_STATE 5
  212. #endif
  213. #ifndef YY_NO_UNISTD_H
  214. /* Special case for "unistd.h", since it is non-ANSI. We include it way
  215. * down here because we want the user's section 1 to have been scanned first.
  216. * The user has a chance to override it with an option.
  217. */
  218. #include <unistd.h>
  219. #endif
  220. #define YY_EXTRA_TYPE bool
  221. int header_lex_init (yyscan_t* scanner);
  222. int header_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
  223. /* Accessor methods to globals.
  224. These are made visible to non-reentrant scanners for convenience. */
  225. int header_lex_destroy (yyscan_t yyscanner );
  226. int header_get_debug (yyscan_t yyscanner );
  227. void header_set_debug (int debug_flag ,yyscan_t yyscanner );
  228. YY_EXTRA_TYPE header_get_extra (yyscan_t yyscanner );
  229. void header_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
  230. FILE *header_get_in (yyscan_t yyscanner );
  231. void header_set_in (FILE * in_str ,yyscan_t yyscanner );
  232. FILE *header_get_out (yyscan_t yyscanner );
  233. void header_set_out (FILE * out_str ,yyscan_t yyscanner );
  234. int header_get_leng (yyscan_t yyscanner );
  235. char *header_get_text (yyscan_t yyscanner );
  236. int header_get_lineno (yyscan_t yyscanner );
  237. void header_set_lineno (int line_number ,yyscan_t yyscanner );
  238. YYSTYPE * header_get_lval (yyscan_t yyscanner );
  239. void header_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
  240. /* Macros after this point can all be overridden by user definitions in
  241. * section 1.
  242. */
  243. #ifndef YY_SKIP_YYWRAP
  244. #ifdef __cplusplus
  245. extern "C" int header_wrap (yyscan_t yyscanner );
  246. #else
  247. extern int header_wrap (yyscan_t yyscanner );
  248. #endif
  249. #endif
  250. #ifndef yytext_ptr
  251. static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
  252. #endif
  253. #ifdef YY_NEED_STRLEN
  254. static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
  255. #endif
  256. #ifndef YY_NO_INPUT
  257. #endif
  258. /* Amount of stuff to slurp up with each read. */
  259. #ifndef YY_READ_BUF_SIZE
  260. #ifdef __ia64__
  261. /* On IA-64, the buffer size is 16k, not 8k */
  262. #define YY_READ_BUF_SIZE 16384
  263. #else
  264. #define YY_READ_BUF_SIZE 8192
  265. #endif /* __ia64__ */
  266. #endif
  267. /* Number of entries by which start-condition stack grows. */
  268. #ifndef YY_START_STACK_INCR
  269. #define YY_START_STACK_INCR 25
  270. #endif
  271. /* Default declaration of generated scanner - a define so the user can
  272. * easily add parameters.
  273. */
  274. #ifndef YY_DECL
  275. #define YY_DECL_IS_OURS 1
  276. extern int header_lex \
  277. (YYSTYPE * yylval_param ,yyscan_t yyscanner);
  278. #define YY_DECL int header_lex \
  279. (YYSTYPE * yylval_param , yyscan_t yyscanner)
  280. #endif /* !YY_DECL */
  281. /* yy_get_previous_state - get the state just before the EOB char was reached */
  282. #undef YY_NEW_FILE
  283. #undef YY_FLUSH_BUFFER
  284. #undef yy_set_bol
  285. #undef yy_new_buffer
  286. #undef yy_set_interactive
  287. #undef YY_DO_BEFORE_ACTION
  288. #ifdef YY_DECL_IS_OURS
  289. #undef YY_DECL_IS_OURS
  290. #undef YY_DECL
  291. #endif
  292. #line 380 "gen/headerscanner.h"
  293. #undef header_IN_HEADER
  294. #endif /* header_HEADER_H */