Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/wds/gen/messagescanner.h

Issue 1498473010: third_party: Add WDS library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wds
Patch Set: Fixed license headers in generated files Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifndef message_HEADER_H
2 #define message_HEADER_H 1
3 #define message_IN_HEADER 1
4
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
26
27
28 #line 30 "gen/messagescanner.h"
29
30 #define YY_INT_ALIGNED short int
31
32 /* A lexical scanner generated by flex */
33
34 #define FLEX_SCANNER
35 #define YY_FLEX_MAJOR_VERSION 2
36 #define YY_FLEX_MINOR_VERSION 5
37 #define YY_FLEX_SUBMINOR_VERSION 35
38 #if YY_FLEX_SUBMINOR_VERSION > 0
39 #define FLEX_BETA
40 #endif
41
42 /* First, we deal with platform-specific or compiler-specific issues. */
43
44 /* begin standard C headers. */
45 #include <stdio.h>
46 #include <string.h>
47 #include <errno.h>
48 #include <stdlib.h>
49
50 /* end standard C headers. */
51
52 /* flex integer type definitions */
53
54 #ifndef FLEXINT_H
55 #define FLEXINT_H
56
57 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
58
59 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
60
61 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
62 * if you want the limit (max/min) macros for int types.
63 */
64 #ifndef __STDC_LIMIT_MACROS
65 #define __STDC_LIMIT_MACROS 1
66 #endif
67
68 #include <inttypes.h>
69 typedef int8_t flex_int8_t;
70 typedef uint8_t flex_uint8_t;
71 typedef int16_t flex_int16_t;
72 typedef uint16_t flex_uint16_t;
73 typedef int32_t flex_int32_t;
74 typedef uint32_t flex_uint32_t;
75 #else
76 typedef signed char flex_int8_t;
77 typedef short int flex_int16_t;
78 typedef int flex_int32_t;
79 typedef unsigned char flex_uint8_t;
80 typedef unsigned short int flex_uint16_t;
81 typedef unsigned int flex_uint32_t;
82
83 /* Limits of integral types. */
84 #ifndef INT8_MIN
85 #define INT8_MIN (-128)
86 #endif
87 #ifndef INT16_MIN
88 #define INT16_MIN (-32767-1)
89 #endif
90 #ifndef INT32_MIN
91 #define INT32_MIN (-2147483647-1)
92 #endif
93 #ifndef INT8_MAX
94 #define INT8_MAX (127)
95 #endif
96 #ifndef INT16_MAX
97 #define INT16_MAX (32767)
98 #endif
99 #ifndef INT32_MAX
100 #define INT32_MAX (2147483647)
101 #endif
102 #ifndef UINT8_MAX
103 #define UINT8_MAX (255U)
104 #endif
105 #ifndef UINT16_MAX
106 #define UINT16_MAX (65535U)
107 #endif
108 #ifndef UINT32_MAX
109 #define UINT32_MAX (4294967295U)
110 #endif
111
112 #endif /* ! C99 */
113
114 #endif /* ! FLEXINT_H */
115
116 #ifdef __cplusplus
117
118 /* The "const" storage-class-modifier is valid. */
119 #define YY_USE_CONST
120
121 #else /* ! __cplusplus */
122
123 /* C99 requires __STDC__ to be defined as 1. */
124 #if defined (__STDC__)
125
126 #define YY_USE_CONST
127
128 #endif /* defined (__STDC__) */
129 #endif /* ! __cplusplus */
130
131 #ifdef YY_USE_CONST
132 #define yyconst const
133 #else
134 #define yyconst
135 #endif
136
137 /* An opaque pointer. */
138 #ifndef YY_TYPEDEF_YY_SCANNER_T
139 #define YY_TYPEDEF_YY_SCANNER_T
140 typedef void* yyscan_t;
141 #endif
142
143 /* For convenience, these vars (plus the bison vars far below)
144 are macros in the reentrant scanner. */
145 #define yyin yyg->yyin_r
146 #define yyout yyg->yyout_r
147 #define yyextra yyg->yyextra_r
148 #define yyleng yyg->yyleng_r
149 #define yytext yyg->yytext_r
150 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
151 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
152 #define yy_flex_debug yyg->yy_flex_debug_r
153
154 /* Size of default input buffer. */
155 #ifndef YY_BUF_SIZE
156 #ifdef __ia64__
157 /* On IA-64, the buffer size is 16k, not 8k.
158 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
159 * Ditto for the __ia64__ case accordingly.
160 */
161 #define YY_BUF_SIZE 32768
162 #else
163 #define YY_BUF_SIZE 16384
164 #endif /* __ia64__ */
165 #endif
166
167 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
168 #define YY_TYPEDEF_YY_BUFFER_STATE
169 typedef struct yy_buffer_state *YY_BUFFER_STATE;
170 #endif
171
172 #ifndef YY_TYPEDEF_YY_SIZE_T
173 #define YY_TYPEDEF_YY_SIZE_T
174 typedef size_t yy_size_t;
175 #endif
176
177 #ifndef YY_STRUCT_YY_BUFFER_STATE
178 #define YY_STRUCT_YY_BUFFER_STATE
179 struct yy_buffer_state
180 {
181 FILE *yy_input_file;
182
183 char *yy_ch_buf; /* input buffer */
184 char *yy_buf_pos; /* current position in input buffer */
185
186 /* Size of input buffer in bytes, not including room for EOB
187 * characters.
188 */
189 yy_size_t yy_buf_size;
190
191 /* Number of characters read into yy_ch_buf, not including EOB
192 * characters.
193 */
194 int yy_n_chars;
195
196 /* Whether we "own" the buffer - i.e., we know we created it,
197 * and can realloc() it to grow it, and should free() it to
198 * delete it.
199 */
200 int yy_is_our_buffer;
201
202 /* Whether this is an "interactive" input source; if so, and
203 * if we're using stdio for input, then we want to use getc()
204 * instead of fread(), to make sure we stop fetching input after
205 * each newline.
206 */
207 int yy_is_interactive;
208
209 /* Whether we're considered to be at the beginning of a line.
210 * If so, '^' rules will be active on the next match, otherwise
211 * not.
212 */
213 int yy_at_bol;
214
215 int yy_bs_lineno; /**< The line count. */
216 int yy_bs_column; /**< The column count. */
217
218 /* Whether to try to fill the input buffer when we reach the
219 * end of it.
220 */
221 int yy_fill_buffer;
222
223 int yy_buffer_status;
224
225 };
226 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
227
228 void message_restart (FILE *input_file ,yyscan_t yyscanner );
229 void message__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ) ;
230 YY_BUFFER_STATE message__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
231 void message__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
232 void message__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
233 void message_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ) ;
234 void message_pop_buffer_state (yyscan_t yyscanner );
235
236 YY_BUFFER_STATE message__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscan ner );
237 YY_BUFFER_STATE message__scan_string (yyconst char *yy_str ,yyscan_t yyscanner ) ;
238 YY_BUFFER_STATE message__scan_bytes (yyconst char *bytes,int len ,yyscan_t yysca nner );
239
240 void *message_alloc (yy_size_t ,yyscan_t yyscanner );
241 void *message_realloc (void *,yy_size_t ,yyscan_t yyscanner );
242 void message_free (void * ,yyscan_t yyscanner );
243
244 /* Begin user sect3 */
245
246 #define message_wrap(n) 1
247 #define YY_SKIP_YYWRAP
248
249 #define yytext_ptr yytext_r
250
251 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
252 #define INITIAL 0
253 #define MATCH_STRING_STATE 1
254 #define MATCH_RESPONSE_CODE_STATE 2
255 #define SUPPORTED_METHODS_STATE 3
256 #define CONTENT_TYPE_STATE 4
257 #define SESSION_STATE 5
258 #define MATCH_PRESENTATION_URL 6
259 #define NUM_AS_HEX_MODE 7
260
261 #endif
262
263 #ifndef YY_NO_UNISTD_H
264 /* Special case for "unistd.h", since it is non-ANSI. We include it way
265 * down here because we want the user's section 1 to have been scanned first.
266 * The user has a chance to override it with an option.
267 */
268 #include <unistd.h>
269 #endif
270
271 #define YY_EXTRA_TYPE bool
272
273 int message_lex_init (yyscan_t* scanner);
274
275 int message_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
276
277 /* Accessor methods to globals.
278 These are made visible to non-reentrant scanners for convenience. */
279
280 int message_lex_destroy (yyscan_t yyscanner );
281
282 int message_get_debug (yyscan_t yyscanner );
283
284 void message_set_debug (int debug_flag ,yyscan_t yyscanner );
285
286 YY_EXTRA_TYPE message_get_extra (yyscan_t yyscanner );
287
288 void message_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
289
290 FILE *message_get_in (yyscan_t yyscanner );
291
292 void message_set_in (FILE * in_str ,yyscan_t yyscanner );
293
294 FILE *message_get_out (yyscan_t yyscanner );
295
296 void message_set_out (FILE * out_str ,yyscan_t yyscanner );
297
298 int message_get_leng (yyscan_t yyscanner );
299
300 char *message_get_text (yyscan_t yyscanner );
301
302 int message_get_lineno (yyscan_t yyscanner );
303
304 void message_set_lineno (int line_number ,yyscan_t yyscanner );
305
306 YYSTYPE * message_get_lval (yyscan_t yyscanner );
307
308 void message_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
309
310 /* Macros after this point can all be overridden by user definitions in
311 * section 1.
312 */
313
314 #ifndef YY_SKIP_YYWRAP
315 #ifdef __cplusplus
316 extern "C" int message_wrap (yyscan_t yyscanner );
317 #else
318 extern int message_wrap (yyscan_t yyscanner );
319 #endif
320 #endif
321
322 #ifndef yytext_ptr
323 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
324 #endif
325
326 #ifdef YY_NEED_STRLEN
327 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
328 #endif
329
330 #ifndef YY_NO_INPUT
331
332 #endif
333
334 /* Amount of stuff to slurp up with each read. */
335 #ifndef YY_READ_BUF_SIZE
336 #ifdef __ia64__
337 /* On IA-64, the buffer size is 16k, not 8k */
338 #define YY_READ_BUF_SIZE 16384
339 #else
340 #define YY_READ_BUF_SIZE 8192
341 #endif /* __ia64__ */
342 #endif
343
344 /* Number of entries by which start-condition stack grows. */
345 #ifndef YY_START_STACK_INCR
346 #define YY_START_STACK_INCR 25
347 #endif
348
349 /* Default declaration of generated scanner - a define so the user can
350 * easily add parameters.
351 */
352 #ifndef YY_DECL
353 #define YY_DECL_IS_OURS 1
354
355 extern int message_lex \
356 (YYSTYPE * yylval_param ,yyscan_t yyscanner);
357
358 #define YY_DECL int message_lex \
359 (YYSTYPE * yylval_param , yyscan_t yyscanner)
360 #endif /* !YY_DECL */
361
362 /* yy_get_previous_state - get the state just before the EOB char was reached */
363
364 #undef YY_NEW_FILE
365 #undef YY_FLUSH_BUFFER
366 #undef yy_set_bol
367 #undef yy_new_buffer
368 #undef yy_set_interactive
369 #undef YY_DO_BEFORE_ACTION
370
371 #ifdef YY_DECL_IS_OURS
372 #undef YY_DECL_IS_OURS
373 #undef YY_DECL
374 #endif
375
376 #line 378 "gen/messagescanner.h"
377 #undef message_IN_HEADER
378 #endif /* message_HEADER_H */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698