1 #line 2 "ssl_expr_scan.c"
3 #line 4 "ssl_expr_scan.c"
5 #define YY_INT_ALIGNED short int
7 /* A lexical scanner generated by flex */
10 #define YY_FLEX_MAJOR_VERSION 2
11 #define YY_FLEX_MINOR_VERSION 5
12 #define YY_FLEX_SUBMINOR_VERSION 35
13 #if YY_FLEX_SUBMINOR_VERSION > 0
17 /* First, we deal with platform-specific or compiler-specific issues. */
19 /* begin standard C headers. */
25 /* end standard C headers. */
27 /* flex integer type definitions */
32 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
34 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
36 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
37 * if you want the limit (max/min) macros for int types.
39 #ifndef __STDC_LIMIT_MACROS
40 #define __STDC_LIMIT_MACROS 1
44 typedef int8_t flex_int8_t;
45 typedef uint8_t flex_uint8_t;
46 typedef int16_t flex_int16_t;
47 typedef uint16_t flex_uint16_t;
48 typedef int32_t flex_int32_t;
49 typedef uint32_t flex_uint32_t;
51 typedef signed char flex_int8_t;
52 typedef short int flex_int16_t;
53 typedef int flex_int32_t;
54 typedef unsigned char flex_uint8_t;
55 typedef unsigned short int flex_uint16_t;
56 typedef unsigned int flex_uint32_t;
58 /* Limits of integral types. */
60 #define INT8_MIN (-128)
63 #define INT16_MIN (-32767-1)
66 #define INT32_MIN (-2147483647-1)
69 #define INT8_MAX (127)
72 #define INT16_MAX (32767)
75 #define INT32_MAX (2147483647)
78 #define UINT8_MAX (255U)
81 #define UINT16_MAX (65535U)
84 #define UINT32_MAX (4294967295U)
89 #endif /* ! FLEXINT_H */
93 /* The "const" storage-class-modifier is valid. */
96 #else /* ! __cplusplus */
98 /* C99 requires __STDC__ to be defined as 1. */
99 #if defined (__STDC__)
103 #endif /* defined (__STDC__) */
104 #endif /* ! __cplusplus */
107 #define yyconst const
112 /* Returned upon end-of-file. */
115 /* Promotes a possibly negative, possibly signed char to an unsigned
116 * integer for use as an array index. If the signed char is negative,
117 * we want to instead treat it as an 8-bit unsigned char, hence the
120 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
122 /* An opaque pointer. */
123 #ifndef YY_TYPEDEF_YY_SCANNER_T
124 #define YY_TYPEDEF_YY_SCANNER_T
125 typedef void* yyscan_t;
128 /* For convenience, these vars (plus the bison vars far below)
129 are macros in the reentrant scanner. */
130 #define yyin yyg->yyin_r
131 #define yyout yyg->yyout_r
132 #define yyextra yyg->yyextra_r
133 #define yyleng yyg->yyleng_r
134 #define yytext yyg->yytext_r
135 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
136 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
137 #define yy_flex_debug yyg->yy_flex_debug_r
139 /* Enter a start condition. This macro really ought to take a parameter,
140 * but we do it the disgusting crufty way forced on us by the ()-less
141 * definition of BEGIN.
143 #define BEGIN yyg->yy_start = 1 + 2 *
145 /* Translate the current start state into a value that can be later handed
146 * to BEGIN to return to the state. The YYSTATE alias is for lex
149 #define YY_START ((yyg->yy_start - 1) / 2)
150 #define YYSTATE YY_START
152 /* Action number for EOF rule of a given start state. */
153 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
155 /* Special action meaning "start processing a new file". */
156 #define YY_NEW_FILE ssl_expr_yyrestart(yyin ,yyscanner )
158 #define YY_END_OF_BUFFER_CHAR 0
160 /* Size of default input buffer. */
163 /* On IA-64, the buffer size is 16k, not 8k.
164 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
165 * Ditto for the __ia64__ case accordingly.
167 #define YY_BUF_SIZE 32768
169 #define YY_BUF_SIZE 16384
170 #endif /* __ia64__ */
173 /* The state buf must be large enough to hold one state per character in the main buffer.
175 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
177 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
178 #define YY_TYPEDEF_YY_BUFFER_STATE
179 typedef struct yy_buffer_state *YY_BUFFER_STATE;
182 #define EOB_ACT_CONTINUE_SCAN 0
183 #define EOB_ACT_END_OF_FILE 1
184 #define EOB_ACT_LAST_MATCH 2
186 #define YY_LESS_LINENO(n)
188 /* Return all but the first "n" matched characters back to the input stream. */
192 /* Undo effects of setting up yytext. */ \
193 int yyless_macro_arg = (n); \
194 YY_LESS_LINENO(yyless_macro_arg);\
195 *yy_cp = yyg->yy_hold_char; \
196 YY_RESTORE_YY_MORE_OFFSET \
197 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
198 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
202 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
204 #ifndef YY_TYPEDEF_YY_SIZE_T
205 #define YY_TYPEDEF_YY_SIZE_T
206 typedef size_t yy_size_t;
209 #ifndef YY_STRUCT_YY_BUFFER_STATE
210 #define YY_STRUCT_YY_BUFFER_STATE
211 struct yy_buffer_state
215 char *yy_ch_buf; /* input buffer */
216 char *yy_buf_pos; /* current position in input buffer */
218 /* Size of input buffer in bytes, not including room for EOB
221 yy_size_t yy_buf_size;
223 /* Number of characters read into yy_ch_buf, not including EOB
228 /* Whether we "own" the buffer - i.e., we know we created it,
229 * and can realloc() it to grow it, and should free() it to
232 int yy_is_our_buffer;
234 /* Whether this is an "interactive" input source; if so, and
235 * if we're using stdio for input, then we want to use getc()
236 * instead of fread(), to make sure we stop fetching input after
239 int yy_is_interactive;
241 /* Whether we're considered to be at the beginning of a line.
242 * If so, '^' rules will be active on the next match, otherwise
247 int yy_bs_lineno; /**< The line count. */
248 int yy_bs_column; /**< The column count. */
250 /* Whether to try to fill the input buffer when we reach the
255 int yy_buffer_status;
257 #define YY_BUFFER_NEW 0
258 #define YY_BUFFER_NORMAL 1
259 /* When an EOF's been seen but there's still some text to process
260 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
261 * shouldn't try reading from the input source any more. We might
262 * still have a bunch of tokens to match, though, because of
263 * possible backing-up.
265 * When we actually see the EOF, we change the status to "new"
266 * (via ssl_expr_yyrestart()), so that the user can continue scanning by
267 * just pointing yyin at a new input file.
269 #define YY_BUFFER_EOF_PENDING 2
272 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
274 /* We provide macros for accessing buffer states in case in the
275 * future we want to put the buffer states in a more general
278 * Returns the top of the stack, or NULL.
280 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
281 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
284 /* Same as previous macro, but useful when we know that the buffer stack is not
285 * NULL or when we need an lvalue. For internal use only.
287 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
289 void ssl_expr_yyrestart (FILE *input_file ,yyscan_t yyscanner );
290 void ssl_expr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
291 YY_BUFFER_STATE ssl_expr_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
292 void ssl_expr_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
293 void ssl_expr_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
294 void ssl_expr_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
295 void ssl_expr_yypop_buffer_state (yyscan_t yyscanner );
297 static void ssl_expr_yyensure_buffer_stack (yyscan_t yyscanner );
298 static void ssl_expr_yy_load_buffer_state (yyscan_t yyscanner );
299 static void ssl_expr_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
301 #define YY_FLUSH_BUFFER ssl_expr_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
303 YY_BUFFER_STATE ssl_expr_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
304 YY_BUFFER_STATE ssl_expr_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
305 YY_BUFFER_STATE ssl_expr_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
307 void *ssl_expr_yyalloc (yy_size_t ,yyscan_t yyscanner );
308 void *ssl_expr_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
309 void ssl_expr_yyfree (void * ,yyscan_t yyscanner );
311 #define yy_new_buffer ssl_expr_yy_create_buffer
313 #define yy_set_interactive(is_interactive) \
315 if ( ! YY_CURRENT_BUFFER ){ \
316 ssl_expr_yyensure_buffer_stack (yyscanner); \
317 YY_CURRENT_BUFFER_LVALUE = \
318 ssl_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
320 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
323 #define yy_set_bol(at_bol) \
325 if ( ! YY_CURRENT_BUFFER ){\
326 ssl_expr_yyensure_buffer_stack (yyscanner); \
327 YY_CURRENT_BUFFER_LVALUE = \
328 ssl_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
330 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
333 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
335 /* Begin user sect3 */
337 #define ssl_expr_yywrap(n) 1
338 #define YY_SKIP_YYWRAP
340 typedef unsigned char YY_CHAR;
342 typedef int yy_state_type;
344 #define yytext_ptr yytext_r
346 static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
347 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
348 static int yy_get_next_buffer (yyscan_t yyscanner );
349 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
351 /* Done after the current pattern has been matched and before the
352 * corresponding action - sets up yytext.
354 #define YY_DO_BEFORE_ACTION \
355 yyg->yytext_ptr = yy_bp; \
356 yyleng = (size_t) (yy_cp - yy_bp); \
357 yyg->yy_hold_char = *yy_cp; \
359 yyg->yy_c_buf_p = yy_cp;
361 #define YY_NUM_RULES 47
362 #define YY_END_OF_BUFFER 48
363 /* This struct is not used in this scanner,
364 but its presence is necessary. */
367 flex_int32_t yy_verify;
370 static yyconst flex_int16_t yy_accept[97] =
372 0, 0, 0, 0, 0, 0, 0, 0, 48, 46,
373 1, 38, 2, 46, 44, 24, 46, 28, 45, 45,
374 45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
375 46, 13, 4, 3, 14, 16, 18, 17, 1, 22,
376 32, 34, 44, 26, 20, 31, 30, 45, 45, 45,
377 19, 45, 45, 29, 27, 39, 25, 23, 15, 15,
378 21, 45, 35, 45, 36, 13, 12, 5, 6, 10,
379 11, 7, 8, 9, 45, 33, 45, 45, 37, 45,
380 5, 6, 45, 45, 41, 42, 5, 45, 43, 45,
381 45, 45, 45, 45, 40, 0
385 static yyconst flex_int32_t yy_ec[256] =
387 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
388 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 2, 4, 5, 1, 1, 1, 6, 1, 1,
391 1, 1, 1, 1, 7, 1, 1, 8, 8, 8,
392 8, 8, 8, 8, 8, 9, 9, 7, 1, 10,
393 11, 12, 1, 1, 13, 13, 13, 13, 14, 13,
394 13, 13, 15, 13, 13, 16, 13, 13, 13, 17,
395 13, 18, 19, 20, 13, 13, 13, 21, 13, 13,
396 1, 22, 1, 1, 7, 1, 23, 24, 13, 25,
398 26, 27, 28, 13, 29, 13, 13, 30, 31, 32,
399 33, 17, 34, 35, 36, 37, 38, 13, 13, 21,
400 13, 13, 1, 39, 1, 40, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
403 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
410 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
411 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
417 static yyconst flex_int32_t yy_meta[41] =
419 1, 1, 2, 1, 3, 1, 4, 4, 4, 1,
420 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
421 4, 3, 4, 4, 4, 4, 4, 4, 4, 4,
422 4, 4, 4, 4, 4, 4, 4, 4, 1, 1
425 static yyconst flex_int16_t yy_base[104] =
427 0, 0, 38, 39, 0, 0, 101, 100, 128, 174,
428 43, 36, 174, 121, 40, 115, 39, 114, 0, 37,
429 92, 89, 29, 27, 90, 28, 79, 29, 82, 81,
430 76, 0, 174, 174, 112, 174, 174, 174, 54, 174,
431 174, 174, 58, 174, 174, 174, 174, 0, 45, 87,
432 0, 81, 80, 0, 0, 0, 0, 0, 174, 0,
433 0, 71, 0, 69, 174, 0, 174, 60, 64, 174,
434 174, 174, 174, 174, 52, 0, 70, 79, 0, 78,
435 66, 69, 68, 74, 0, 0, 84, 78, 0, 66,
436 72, 80, 77, 77, 0, 174, 149, 153, 157, 94,
441 static yyconst flex_int16_t yy_def[104] =
443 96, 1, 97, 97, 98, 98, 99, 99, 96, 96,
444 96, 96, 96, 96, 96, 96, 96, 96, 100, 100,
445 100, 100, 100, 100, 100, 100, 101, 100, 100, 100,
446 96, 102, 96, 96, 103, 96, 96, 96, 96, 96,
447 96, 96, 96, 96, 96, 96, 96, 100, 100, 100,
448 100, 100, 100, 100, 100, 100, 100, 100, 96, 100,
449 100, 100, 100, 100, 96, 102, 96, 96, 96, 96,
450 96, 96, 96, 96, 100, 100, 100, 100, 100, 100,
451 96, 96, 100, 100, 100, 100, 96, 100, 100, 100,
452 100, 100, 100, 100, 100, 0, 96, 96, 96, 96,
457 static yyconst flex_int16_t yy_nxt[215] =
459 10, 11, 11, 12, 13, 14, 10, 15, 15, 16,
460 17, 18, 19, 19, 19, 19, 20, 19, 19, 19,
461 19, 10, 21, 19, 19, 22, 23, 24, 25, 26,
462 27, 28, 29, 19, 19, 19, 30, 19, 31, 10,
463 33, 33, 34, 34, 39, 39, 40, 43, 43, 45,
464 49, 52, 54, 57, 61, 39, 39, 53, 75, 35,
465 35, 62, 49, 55, 58, 43, 43, 81, 82, 83,
466 75, 82, 82, 87, 82, 41, 82, 82, 46, 59,
467 59, 88, 59, 59, 59, 91, 83, 92, 59, 59,
468 59, 82, 82, 88, 93, 94, 95, 48, 90, 89,
470 59, 92, 91, 86, 85, 84, 80, 79, 93, 78,
471 77, 76, 94, 95, 65, 64, 63, 59, 59, 68,
472 69, 56, 51, 50, 47, 44, 42, 96, 38, 38,
473 96, 96, 96, 96, 96, 70, 96, 96, 71, 96,
474 96, 96, 96, 72, 96, 96, 73, 96, 74, 32,
475 32, 32, 32, 36, 36, 36, 36, 37, 37, 37,
476 37, 60, 96, 60, 60, 66, 96, 96, 66, 67,
477 67, 67, 67, 9, 96, 96, 96, 96, 96, 96,
478 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
479 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
481 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
485 static yyconst flex_int16_t yy_chk[215] =
487 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
488 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
489 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
490 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
491 3, 4, 3, 4, 11, 11, 12, 15, 15, 17,
492 20, 23, 24, 26, 28, 39, 39, 23, 49, 3,
493 4, 28, 20, 24, 26, 43, 43, 68, 68, 75,
494 49, 69, 69, 81, 81, 12, 82, 82, 17, 27,
495 27, 83, 27, 27, 27, 90, 75, 91, 27, 27,
496 27, 87, 87, 83, 92, 93, 94, 100, 88, 84,
498 27, 91, 90, 80, 78, 77, 64, 62, 92, 53,
499 52, 50, 93, 94, 31, 30, 29, 27, 27, 35,
500 35, 25, 22, 21, 18, 16, 14, 9, 8, 7,
501 0, 0, 0, 0, 0, 35, 0, 0, 35, 0,
502 0, 0, 0, 35, 0, 0, 35, 0, 35, 97,
503 97, 97, 97, 98, 98, 98, 98, 99, 99, 99,
504 99, 101, 0, 101, 101, 102, 0, 0, 102, 103,
505 103, 103, 103, 96, 96, 96, 96, 96, 96, 96,
506 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
507 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
509 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
513 /* The intent behind this definition is that it'll catch
514 * any uses of REJECT which flex missed.
516 #define REJECT reject_used_but_not_detected
517 #define yymore() yymore_used_but_not_detected
518 #define YY_MORE_ADJ 0
519 #define YY_RESTORE_YY_MORE_OFFSET
520 #line 1 "ssl_expr_scan.l"
521 /* Licensed to the Apache Software Foundation (ASF) under one or more
522 * contributor license agreements. See the NOTICE file distributed with
523 * this work for additional information regarding copyright ownership.
524 * The ASF licenses this file to You under the Apache License, Version 2.0
525 * (the "License"); you may not use this file except in compliance with
526 * the License. You may obtain a copy of the License at
528 * http://www.apache.org/licenses/LICENSE-2.0
530 * Unless required by applicable law or agreed to in writing, software
531 * distributed under the License is distributed on an "AS IS" BASIS,
532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
533 * See the License for the specific language governing permissions and
534 * limitations under the License.
537 * _ __ ___ ___ __| | ___ ___| |
538 * | '_ ` _ \ / _ \ / _` | / __/ __| |
539 * | | | | | | (_) | (_| | \__ \__ \ | mod_ssl - Apache Interface to OpenSSL
540 * |_| |_| |_|\___/ \__,_|___|___/___/_| http://www.modssl.org/
545 /* ``Killing for peace is
546 like fucking for virginity.''
548 /* _________________________________________________________________
550 ** Expression Scanner
551 ** _________________________________________________________________
553 #define YY_NO_INPUT 1
556 #line 49 "ssl_expr_scan.l"
557 #include "ssl_private.h"
559 #include "ssl_expr_parse.h"
560 #include "ssl_expr.h"
563 #define YY_INPUT(buf,result,max_size) \
565 if ((result = MIN(max_size, yyextra->inputbuf \
566 + yyextra->inputlen \
567 - yyextra->inputptr)) <= 0) \
572 memcpy(buf, yyextra->inputptr, result); \
573 yyextra->inputptr += result; \
577 #define MAX_STR_LEN 2048
578 #define YY_EXTRA_TYPE ssl_expr_info_type*
579 #line 580 "ssl_expr_scan.c"
584 #define regex_flags 3
586 #ifndef YY_NO_UNISTD_H
587 /* Special case for "unistd.h", since it is non-ANSI. We include it way
588 * down here because we want the user's section 1 to have been scanned first.
589 * The user has a chance to override it with an option.
594 #ifndef YY_EXTRA_TYPE
595 #define YY_EXTRA_TYPE void *
598 /* Holds the entire state of the reentrant scanner. */
602 /* User-defined. Not touched by flex. */
603 YY_EXTRA_TYPE yyextra_r;
605 /* The rest are the same as the globals declared in the non-reentrant scanner. */
606 FILE *yyin_r, *yyout_r;
607 size_t yy_buffer_stack_top; /**< index of top of stack. */
608 size_t yy_buffer_stack_max; /**< capacity of stack. */
609 YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
616 int yy_did_buffer_switch_on_eof;
617 int yy_start_stack_ptr;
618 int yy_start_stack_depth;
620 yy_state_type yy_last_accepting_state;
621 char* yy_last_accepting_cpos;
632 }; /* end struct yyguts_t */
634 static int yy_init_globals (yyscan_t yyscanner );
636 /* This must go here because YYSTYPE and YYLTYPE are included
637 * from bison output in section 1.*/
638 # define yylval yyg->yylval_r
640 int ssl_expr_yylex_init (yyscan_t* scanner);
642 int ssl_expr_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
644 /* Accessor methods to globals.
645 These are made visible to non-reentrant scanners for convenience. */
647 int ssl_expr_yylex_destroy (yyscan_t yyscanner );
649 int ssl_expr_yyget_debug (yyscan_t yyscanner );
651 void ssl_expr_yyset_debug (int debug_flag ,yyscan_t yyscanner );
653 YY_EXTRA_TYPE ssl_expr_yyget_extra (yyscan_t yyscanner );
655 void ssl_expr_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
657 FILE *ssl_expr_yyget_in (yyscan_t yyscanner );
659 void ssl_expr_yyset_in (FILE * in_str ,yyscan_t yyscanner );
661 FILE *ssl_expr_yyget_out (yyscan_t yyscanner );
663 void ssl_expr_yyset_out (FILE * out_str ,yyscan_t yyscanner );
665 int ssl_expr_yyget_leng (yyscan_t yyscanner );
667 char *ssl_expr_yyget_text (yyscan_t yyscanner );
669 int ssl_expr_yyget_lineno (yyscan_t yyscanner );
671 void ssl_expr_yyset_lineno (int line_number ,yyscan_t yyscanner );
673 YYSTYPE * ssl_expr_yyget_lval (yyscan_t yyscanner );
675 void ssl_expr_yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
677 /* Macros after this point can all be overridden by user definitions in
681 #ifndef YY_SKIP_YYWRAP
683 extern "C" int ssl_expr_yywrap (yyscan_t yyscanner );
685 extern int ssl_expr_yywrap (yyscan_t yyscanner );
690 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
693 #ifdef YY_NEED_STRLEN
694 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
700 static int yyinput (yyscan_t yyscanner );
702 static int input (yyscan_t yyscanner );
707 /* Amount of stuff to slurp up with each read. */
708 #ifndef YY_READ_BUF_SIZE
710 /* On IA-64, the buffer size is 16k, not 8k */
711 #define YY_READ_BUF_SIZE 16384
713 #define YY_READ_BUF_SIZE 8192
714 #endif /* __ia64__ */
717 /* Copy whatever the last rule matched to the standard output. */
719 /* This used to be an fputs(), but since the string might contain NUL's,
720 * we now use fwrite().
722 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
725 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
726 * is returned in "result".
729 #define YY_INPUT(buf,result,max_size) \
730 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
734 for ( n = 0; n < max_size && \
735 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
738 buf[n++] = (char) c; \
739 if ( c == EOF && ferror( yyin ) ) \
740 YY_FATAL_ERROR( "input in flex scanner failed" ); \
746 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
748 if( errno != EINTR) \
750 YY_FATAL_ERROR( "input in flex scanner failed" ); \
761 /* No semi-colon after return; correct usage is to write "yyterminate();" -
762 * we don't want an extra ';' after the "return" because that will cause
763 * some compilers to complain about unreachable statements.
766 #define yyterminate() return YY_NULL
769 /* Number of entries by which start-condition stack grows. */
770 #ifndef YY_START_STACK_INCR
771 #define YY_START_STACK_INCR 25
774 /* Report a fatal error. */
775 #ifndef YY_FATAL_ERROR
776 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
779 /* end tables serialization structures and prototypes */
781 /* Default declaration of generated scanner - a define so the user can
782 * easily add parameters.
785 #define YY_DECL_IS_OURS 1
787 extern int ssl_expr_yylex \
788 (YYSTYPE * yylval_param ,yyscan_t yyscanner);
790 #define YY_DECL int ssl_expr_yylex \
791 (YYSTYPE * yylval_param , yyscan_t yyscanner)
792 #endif /* !YY_DECL */
794 /* Code executed at the beginning of each rule, after yytext and yyleng
797 #ifndef YY_USER_ACTION
798 #define YY_USER_ACTION
801 /* Code executed at the end of each rule. */
803 #define YY_BREAK break;
806 #define YY_RULE_SETUP \
809 /** The main scanner function which does all the work.
813 register yy_state_type yy_current_state;
814 register char *yy_cp, *yy_bp;
816 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
818 #line 74 "ssl_expr_scan.l"
821 char caStr[MAX_STR_LEN];
823 char caRegex[MAX_STR_LEN];
824 char *cpRegex = NULL;
825 char cRegexDel = NUL;
830 #line 831 "ssl_expr_scan.c"
832 yylval = yylval_param;
842 if ( ! yyg->yy_start )
843 yyg->yy_start = 1; /* first start state */
851 if ( ! YY_CURRENT_BUFFER ) {
852 ssl_expr_yyensure_buffer_stack (yyscanner);
853 YY_CURRENT_BUFFER_LVALUE =
854 ssl_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
857 ssl_expr_yy_load_buffer_state(yyscanner );
860 while ( 1 ) /* loops until end-of-file is reached */
862 yy_cp = yyg->yy_c_buf_p;
864 /* Support of yytext. */
865 *yy_cp = yyg->yy_hold_char;
867 /* yy_bp points to the position in yy_ch_buf of the start of
872 yy_current_state = yyg->yy_start;
876 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
877 if ( yy_accept[yy_current_state] )
879 yyg->yy_last_accepting_state = yy_current_state;
880 yyg->yy_last_accepting_cpos = yy_cp;
882 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
884 yy_current_state = (int) yy_def[yy_current_state];
885 if ( yy_current_state >= 97 )
886 yy_c = yy_meta[(unsigned int) yy_c];
888 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
891 while ( yy_current_state != 96 );
892 yy_cp = yyg->yy_last_accepting_cpos;
893 yy_current_state = yyg->yy_last_accepting_state;
896 yy_act = yy_accept[yy_current_state];
900 do_action: /* This label is used only to access EOF actions. */
903 { /* beginning of action switch */
904 case 0: /* must back up */
905 /* undo the effects of YY_DO_BEFORE_ACTION */
906 *yy_cp = yyg->yy_hold_char;
907 yy_cp = yyg->yy_last_accepting_cpos;
908 yy_current_state = yyg->yy_last_accepting_state;
912 /* rule 1 can match eol */
914 #line 85 "ssl_expr_scan.l"
920 * C-style strings ("...")
924 #line 92 "ssl_expr_scan.l"
932 #line 96 "ssl_expr_scan.l"
936 yylval->cpVal = apr_pstrdup(yyextra->pool, caStr);
941 /* rule 4 can match eol */
943 #line 102 "ssl_expr_scan.l"
945 ssl_expr_yyerror(yyextra, "Unterminated string");
950 #line 105 "ssl_expr_scan.l"
954 (void)sscanf(yytext+1, "%o", &result);
956 ssl_expr_yyerror(yyextra, "Escape sequence out of bound");
963 #line 114 "ssl_expr_scan.l"
965 ssl_expr_yyerror(yyextra, "Bad escape sequence");
970 #line 117 "ssl_expr_scan.l"
975 #line 118 "ssl_expr_scan.l"
980 #line 119 "ssl_expr_scan.l"
985 #line 120 "ssl_expr_scan.l"
990 #line 121 "ssl_expr_scan.l"
994 /* rule 12 can match eol */
996 #line 122 "ssl_expr_scan.l"
998 *cpStr++ = yytext[1];
1003 #line 125 "ssl_expr_scan.l"
1012 #line 130 "ssl_expr_scan.l"
1014 *cpStr++ = yytext[1];
1018 * Regular Expression
1022 #line 137 "ssl_expr_scan.l"
1024 cRegexDel = yytext[1];
1030 /* rule 16 can match eol */
1032 #line 142 "ssl_expr_scan.l"
1034 if (yytext[0] == cRegexDel) {
1039 *cpRegex++ = yytext[0];
1045 #line 151 "ssl_expr_scan.l"
1047 yylval->cpVal = apr_pstrdup(yyextra->pool, caRegex);
1053 /* rule 18 can match eol */
1055 #line 156 "ssl_expr_scan.l"
1057 yylval->cpVal = apr_pstrdup(yyextra->pool, caRegex);
1063 case YY_STATE_EOF(regex_flags):
1064 #line 162 "ssl_expr_scan.l"
1066 yylval->cpVal = apr_pstrdup(yyextra->pool, caRegex);
1076 #line 171 "ssl_expr_scan.l"
1081 #line 172 "ssl_expr_scan.l"
1086 #line 173 "ssl_expr_scan.l"
1091 #line 174 "ssl_expr_scan.l"
1096 #line 175 "ssl_expr_scan.l"
1101 #line 176 "ssl_expr_scan.l"
1106 #line 177 "ssl_expr_scan.l"
1111 #line 178 "ssl_expr_scan.l"
1116 #line 179 "ssl_expr_scan.l"
1121 #line 180 "ssl_expr_scan.l"
1126 #line 181 "ssl_expr_scan.l"
1131 #line 182 "ssl_expr_scan.l"
1136 #line 183 "ssl_expr_scan.l"
1137 { return T_OP_REG; }
1141 #line 184 "ssl_expr_scan.l"
1142 { return T_OP_NRE; }
1146 #line 185 "ssl_expr_scan.l"
1147 { return T_OP_AND; }
1151 #line 186 "ssl_expr_scan.l"
1152 { return T_OP_AND; }
1156 #line 187 "ssl_expr_scan.l"
1161 #line 188 "ssl_expr_scan.l"
1166 #line 189 "ssl_expr_scan.l"
1167 { return T_OP_NOT; }
1171 #line 190 "ssl_expr_scan.l"
1172 { return T_OP_NOT; }
1176 #line 191 "ssl_expr_scan.l"
1181 #line 192 "ssl_expr_scan.l"
1182 { return T_OP_PEEREXTLIST; }
1189 #line 197 "ssl_expr_scan.l"
1190 { return T_FUNC_FILE; }
1197 #line 202 "ssl_expr_scan.l"
1202 #line 203 "ssl_expr_scan.l"
1210 #line 208 "ssl_expr_scan.l"
1212 yylval->cpVal = apr_pstrdup(yyextra->pool, yytext);
1221 #line 216 "ssl_expr_scan.l"
1223 yylval->cpVal = apr_pstrdup(yyextra->pool, yytext);
1228 * Anything else is returned as is...
1231 /* rule 46 can match eol */
1233 #line 224 "ssl_expr_scan.l"
1240 #line 228 "ssl_expr_scan.l"
1241 YY_FATAL_ERROR( "flex scanner jammed" );
1243 #line 1244 "ssl_expr_scan.c"
1244 case YY_STATE_EOF(INITIAL):
1245 case YY_STATE_EOF(str):
1246 case YY_STATE_EOF(regex):
1249 case YY_END_OF_BUFFER:
1251 /* Amount of text matched not including the EOB char. */
1252 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1254 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1255 *yy_cp = yyg->yy_hold_char;
1256 YY_RESTORE_YY_MORE_OFFSET
1258 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1260 /* We're scanning a new file or input source. It's
1261 * possible that this happened because the user
1262 * just pointed yyin at a new source and called
1263 * ssl_expr_yylex(). If so, then we have to assure
1264 * consistency between YY_CURRENT_BUFFER and our
1265 * globals. Here is the right place to do so, because
1266 * this is the first action (other than possibly a
1267 * back-up) that will match for the new input source.
1269 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1270 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1271 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1274 /* Note that here we test for yy_c_buf_p "<=" to the position
1275 * of the first EOB in the buffer, since yy_c_buf_p will
1276 * already have been incremented past the NUL character
1277 * (since all states make transitions on EOB to the
1278 * end-of-buffer state). Contrast this with the test
1281 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1282 { /* This was really a NUL. */
1283 yy_state_type yy_next_state;
1285 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1287 yy_current_state = yy_get_previous_state( yyscanner );
1289 /* Okay, we're now positioned to make the NUL
1290 * transition. We couldn't have
1291 * yy_get_previous_state() go ahead and do it
1292 * for us because it doesn't know how to deal
1293 * with the possibility of jamming (and we don't
1294 * want to build jamming into it because then it
1295 * will run more slowly).
1298 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1300 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1302 if ( yy_next_state )
1304 /* Consume the NUL. */
1305 yy_cp = ++yyg->yy_c_buf_p;
1306 yy_current_state = yy_next_state;
1312 yy_cp = yyg->yy_last_accepting_cpos;
1313 yy_current_state = yyg->yy_last_accepting_state;
1314 goto yy_find_action;
1318 else switch ( yy_get_next_buffer( yyscanner ) )
1320 case EOB_ACT_END_OF_FILE:
1322 yyg->yy_did_buffer_switch_on_eof = 0;
1324 if ( ssl_expr_yywrap(yyscanner ) )
1326 /* Note: because we've taken care in
1327 * yy_get_next_buffer() to have set up
1328 * yytext, we can now set up
1329 * yy_c_buf_p so that if some total
1330 * hoser (like flex itself) wants to
1331 * call the scanner after we return the
1332 * YY_NULL, it'll still work - another
1333 * YY_NULL will get returned.
1335 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1337 yy_act = YY_STATE_EOF(YY_START);
1343 if ( ! yyg->yy_did_buffer_switch_on_eof )
1349 case EOB_ACT_CONTINUE_SCAN:
1351 yyg->yytext_ptr + yy_amount_of_matched_text;
1353 yy_current_state = yy_get_previous_state( yyscanner );
1355 yy_cp = yyg->yy_c_buf_p;
1356 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1359 case EOB_ACT_LAST_MATCH:
1361 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1363 yy_current_state = yy_get_previous_state( yyscanner );
1365 yy_cp = yyg->yy_c_buf_p;
1366 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1367 goto yy_find_action;
1374 "fatal flex scanner internal error--no action found" );
1375 } /* end of action switch */
1376 } /* end of scanning one token */
1377 } /* end of ssl_expr_yylex */
1379 /* yy_get_next_buffer - try to read in a new buffer
1381 * Returns a code representing an action:
1382 * EOB_ACT_LAST_MATCH -
1383 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1384 * EOB_ACT_END_OF_FILE - end of file
1386 static int yy_get_next_buffer (yyscan_t yyscanner)
1388 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1389 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1390 register char *source = yyg->yytext_ptr;
1391 register int number_to_move, i;
1394 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1396 "fatal flex scanner internal error--end of buffer missed" );
1398 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1399 { /* Don't try to fill the buffer, so this is an EOF. */
1400 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1402 /* We matched a single character, the EOB, so
1403 * treat this as a final EOF.
1405 return EOB_ACT_END_OF_FILE;
1410 /* We matched some text prior to the EOB, first
1413 return EOB_ACT_LAST_MATCH;
1417 /* Try to read more data. */
1419 /* First move last chars to start of buffer. */
1420 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1422 for ( i = 0; i < number_to_move; ++i )
1423 *(dest++) = *(source++);
1425 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1426 /* don't do the read, it's not guaranteed to return an EOF,
1429 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1434 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1436 while ( num_to_read <= 0 )
1437 { /* Not enough room in the buffer - grow it. */
1439 /* just a shorter name for the current buffer */
1440 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
1442 int yy_c_buf_p_offset =
1443 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1445 if ( b->yy_is_our_buffer )
1447 int new_size = b->yy_buf_size * 2;
1449 if ( new_size <= 0 )
1450 b->yy_buf_size += b->yy_buf_size / 8;
1452 b->yy_buf_size *= 2;
1454 b->yy_ch_buf = (char *)
1455 /* Include room in for 2 EOB chars. */
1456 ssl_expr_yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner );
1459 /* Can't grow it, we don't own it. */
1462 if ( ! b->yy_ch_buf )
1464 "fatal error - scanner input buffer overflow" );
1466 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1468 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1473 if ( num_to_read > YY_READ_BUF_SIZE )
1474 num_to_read = YY_READ_BUF_SIZE;
1476 /* Read in more data. */
1477 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1478 yyg->yy_n_chars, (size_t) num_to_read );
1480 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1483 if ( yyg->yy_n_chars == 0 )
1485 if ( number_to_move == YY_MORE_ADJ )
1487 ret_val = EOB_ACT_END_OF_FILE;
1488 ssl_expr_yyrestart(yyin ,yyscanner);
1493 ret_val = EOB_ACT_LAST_MATCH;
1494 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1495 YY_BUFFER_EOF_PENDING;
1500 ret_val = EOB_ACT_CONTINUE_SCAN;
1502 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1503 /* Extend the array by 50%, plus the number we really need. */
1504 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1505 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) ssl_expr_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1506 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1507 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1510 yyg->yy_n_chars += number_to_move;
1511 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1512 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1514 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1519 /* yy_get_previous_state - get the state just before the EOB char was reached */
1521 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1523 register yy_state_type yy_current_state;
1524 register char *yy_cp;
1525 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1527 yy_current_state = yyg->yy_start;
1529 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1531 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1532 if ( yy_accept[yy_current_state] )
1534 yyg->yy_last_accepting_state = yy_current_state;
1535 yyg->yy_last_accepting_cpos = yy_cp;
1537 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1539 yy_current_state = (int) yy_def[yy_current_state];
1540 if ( yy_current_state >= 97 )
1541 yy_c = yy_meta[(unsigned int) yy_c];
1543 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1546 return yy_current_state;
1549 /* yy_try_NUL_trans - try to make a transition on the NUL character
1552 * next_state = yy_try_NUL_trans( current_state );
1554 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1556 register int yy_is_jam;
1557 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1558 register char *yy_cp = yyg->yy_c_buf_p;
1560 register YY_CHAR yy_c = 1;
1561 if ( yy_accept[yy_current_state] )
1563 yyg->yy_last_accepting_state = yy_current_state;
1564 yyg->yy_last_accepting_cpos = yy_cp;
1566 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1568 yy_current_state = (int) yy_def[yy_current_state];
1569 if ( yy_current_state >= 97 )
1570 yy_c = yy_meta[(unsigned int) yy_c];
1572 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1573 yy_is_jam = (yy_current_state == 96);
1575 return yy_is_jam ? 0 : yy_current_state;
1580 static int yyinput (yyscan_t yyscanner)
1582 static int input (yyscan_t yyscanner)
1587 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1589 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1591 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1593 /* yy_c_buf_p now points to the character we want to return.
1594 * If this occurs *before* the EOB characters, then it's a
1595 * valid NUL; if not, then we've hit the end of the buffer.
1597 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1598 /* This was really a NUL. */
1599 *yyg->yy_c_buf_p = '\0';
1602 { /* need more input */
1603 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
1606 switch ( yy_get_next_buffer( yyscanner ) )
1608 case EOB_ACT_LAST_MATCH:
1609 /* This happens because yy_g_n_b()
1610 * sees that we've accumulated a
1611 * token and flags that we need to
1612 * try matching the token before
1613 * proceeding. But for input(),
1614 * there's no matching to consider.
1615 * So convert the EOB_ACT_LAST_MATCH
1616 * to EOB_ACT_END_OF_FILE.
1619 /* Reset buffer status. */
1620 ssl_expr_yyrestart(yyin ,yyscanner);
1624 case EOB_ACT_END_OF_FILE:
1626 if ( ssl_expr_yywrap(yyscanner ) )
1629 if ( ! yyg->yy_did_buffer_switch_on_eof )
1632 return yyinput(yyscanner);
1634 return input(yyscanner);
1638 case EOB_ACT_CONTINUE_SCAN:
1639 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
1645 c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
1646 *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
1647 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
1651 #endif /* ifndef YY_NO_INPUT */
1653 /** Immediately switch to a different input stream.
1654 * @param input_file A readable stream.
1655 * @param yyscanner The scanner object.
1656 * @note This function does not reset the start condition to @c INITIAL .
1658 void ssl_expr_yyrestart (FILE * input_file , yyscan_t yyscanner)
1660 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1662 if ( ! YY_CURRENT_BUFFER ){
1663 ssl_expr_yyensure_buffer_stack (yyscanner);
1664 YY_CURRENT_BUFFER_LVALUE =
1665 ssl_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1668 ssl_expr_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1669 ssl_expr_yy_load_buffer_state(yyscanner );
1672 /** Switch to a different input buffer.
1673 * @param new_buffer The new input buffer.
1674 * @param yyscanner The scanner object.
1676 void ssl_expr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1678 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1680 /* TODO. We should be able to replace this entire function body
1682 * ssl_expr_yypop_buffer_state();
1683 * ssl_expr_yypush_buffer_state(new_buffer);
1685 ssl_expr_yyensure_buffer_stack (yyscanner);
1686 if ( YY_CURRENT_BUFFER == new_buffer )
1689 if ( YY_CURRENT_BUFFER )
1691 /* Flush out information for old buffer. */
1692 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1693 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1694 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1697 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1698 ssl_expr_yy_load_buffer_state(yyscanner );
1700 /* We don't actually know whether we did this switch during
1701 * EOF (ssl_expr_yywrap()) processing, but the only time this flag
1702 * is looked at is after ssl_expr_yywrap() is called, so it's safe
1703 * to go ahead and always set it.
1705 yyg->yy_did_buffer_switch_on_eof = 1;
1708 static void ssl_expr_yy_load_buffer_state (yyscan_t yyscanner)
1710 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1711 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1712 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1713 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1714 yyg->yy_hold_char = *yyg->yy_c_buf_p;
1717 /** Allocate and initialize an input buffer state.
1718 * @param file A readable stream.
1719 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1720 * @param yyscanner The scanner object.
1721 * @return the allocated buffer state.
1723 YY_BUFFER_STATE ssl_expr_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
1727 b = (YY_BUFFER_STATE) ssl_expr_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
1729 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yy_create_buffer()" );
1731 b->yy_buf_size = size;
1733 /* yy_ch_buf has to be 2 characters longer than the size given because
1734 * we need to put in 2 end-of-buffer characters.
1736 b->yy_ch_buf = (char *) ssl_expr_yyalloc(b->yy_buf_size + 2 ,yyscanner );
1737 if ( ! b->yy_ch_buf )
1738 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yy_create_buffer()" );
1740 b->yy_is_our_buffer = 1;
1742 ssl_expr_yy_init_buffer(b,file ,yyscanner);
1747 /** Destroy the buffer.
1748 * @param b a buffer created with ssl_expr_yy_create_buffer()
1749 * @param yyscanner The scanner object.
1751 void ssl_expr_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1753 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1758 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1759 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1761 if ( b->yy_is_our_buffer )
1762 ssl_expr_yyfree((void *) b->yy_ch_buf ,yyscanner );
1764 ssl_expr_yyfree((void *) b ,yyscanner );
1767 /* Initializes or reinitializes a buffer.
1768 * This function is sometimes called more than once on the same buffer,
1769 * such as during a ssl_expr_yyrestart() or at EOF.
1771 static void ssl_expr_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
1775 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1777 ssl_expr_yy_flush_buffer(b ,yyscanner);
1779 b->yy_input_file = file;
1780 b->yy_fill_buffer = 1;
1782 /* If b is the current buffer, then ssl_expr_yy_init_buffer was _probably_
1783 * called from ssl_expr_yyrestart() or through yy_get_next_buffer.
1784 * In that case, we don't want to reset the lineno or column.
1786 if (b != YY_CURRENT_BUFFER){
1787 b->yy_bs_lineno = 1;
1788 b->yy_bs_column = 0;
1791 b->yy_is_interactive = 0;
1796 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1797 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1798 * @param yyscanner The scanner object.
1800 void ssl_expr_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
1802 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1808 /* We always need two end-of-buffer characters. The first causes
1809 * a transition to the end-of-buffer state. The second causes
1810 * a jam in that state.
1812 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1813 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1815 b->yy_buf_pos = &b->yy_ch_buf[0];
1818 b->yy_buffer_status = YY_BUFFER_NEW;
1820 if ( b == YY_CURRENT_BUFFER )
1821 ssl_expr_yy_load_buffer_state(yyscanner );
1824 /** Pushes the new state onto the stack. The new state becomes
1825 * the current state. This function will allocate the stack
1827 * @param new_buffer The new state.
1828 * @param yyscanner The scanner object.
1830 void ssl_expr_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
1832 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1833 if (new_buffer == NULL)
1836 ssl_expr_yyensure_buffer_stack(yyscanner);
1838 /* This block is copied from ssl_expr_yy_switch_to_buffer. */
1839 if ( YY_CURRENT_BUFFER )
1841 /* Flush out information for old buffer. */
1842 *yyg->yy_c_buf_p = yyg->yy_hold_char;
1843 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
1844 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1847 /* Only push if top exists. Otherwise, replace top. */
1848 if (YY_CURRENT_BUFFER)
1849 yyg->yy_buffer_stack_top++;
1850 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1852 /* copied from ssl_expr_yy_switch_to_buffer. */
1853 ssl_expr_yy_load_buffer_state(yyscanner );
1854 yyg->yy_did_buffer_switch_on_eof = 1;
1857 /** Removes and deletes the top of the stack, if present.
1858 * The next element becomes the new top.
1859 * @param yyscanner The scanner object.
1861 void ssl_expr_yypop_buffer_state (yyscan_t yyscanner)
1863 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1864 if (!YY_CURRENT_BUFFER)
1867 ssl_expr_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
1868 YY_CURRENT_BUFFER_LVALUE = NULL;
1869 if (yyg->yy_buffer_stack_top > 0)
1870 --yyg->yy_buffer_stack_top;
1872 if (YY_CURRENT_BUFFER) {
1873 ssl_expr_yy_load_buffer_state(yyscanner );
1874 yyg->yy_did_buffer_switch_on_eof = 1;
1878 /* Allocates the stack if it does not exist.
1879 * Guarantees space for at least one push.
1881 static void ssl_expr_yyensure_buffer_stack (yyscan_t yyscanner)
1884 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1886 if (!yyg->yy_buffer_stack) {
1888 /* First allocation is just for 2 elements, since we don't know if this
1889 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1890 * immediate realloc on the next call.
1893 yyg->yy_buffer_stack = (struct yy_buffer_state**)ssl_expr_yyalloc
1894 (num_to_alloc * sizeof(struct yy_buffer_state*)
1896 if ( ! yyg->yy_buffer_stack )
1897 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yyensure_buffer_stack()" );
1899 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1901 yyg->yy_buffer_stack_max = num_to_alloc;
1902 yyg->yy_buffer_stack_top = 0;
1906 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
1908 /* Increase the buffer to prepare for a possible push. */
1909 int grow_size = 8 /* arbitrary grow size */;
1911 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
1912 yyg->yy_buffer_stack = (struct yy_buffer_state**)ssl_expr_yyrealloc
1913 (yyg->yy_buffer_stack,
1914 num_to_alloc * sizeof(struct yy_buffer_state*)
1916 if ( ! yyg->yy_buffer_stack )
1917 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yyensure_buffer_stack()" );
1919 /* zero only the new slots.*/
1920 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
1921 yyg->yy_buffer_stack_max = num_to_alloc;
1925 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1926 * @param base the character buffer
1927 * @param size the size in bytes of the character buffer
1928 * @param yyscanner The scanner object.
1929 * @return the newly allocated buffer state object.
1931 YY_BUFFER_STATE ssl_expr_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
1936 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1937 base[size-1] != YY_END_OF_BUFFER_CHAR )
1938 /* They forgot to leave room for the EOB's. */
1941 b = (YY_BUFFER_STATE) ssl_expr_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
1943 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yy_scan_buffer()" );
1945 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1946 b->yy_buf_pos = b->yy_ch_buf = base;
1947 b->yy_is_our_buffer = 0;
1948 b->yy_input_file = 0;
1949 b->yy_n_chars = b->yy_buf_size;
1950 b->yy_is_interactive = 0;
1952 b->yy_fill_buffer = 0;
1953 b->yy_buffer_status = YY_BUFFER_NEW;
1955 ssl_expr_yy_switch_to_buffer(b ,yyscanner );
1960 /** Setup the input buffer state to scan a string. The next call to ssl_expr_yylex() will
1961 * scan from a @e copy of @a str.
1962 * @param yystr a NUL-terminated string to scan
1963 * @param yyscanner The scanner object.
1964 * @return the newly allocated buffer state object.
1965 * @note If you want to scan bytes that may contain NUL values, then use
1966 * ssl_expr_yy_scan_bytes() instead.
1968 YY_BUFFER_STATE ssl_expr_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
1971 return ssl_expr_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
1974 /** Setup the input buffer state to scan the given bytes. The next call to ssl_expr_yylex() will
1975 * scan from a @e copy of @a bytes.
1976 * @param yybytes the byte buffer to scan
1977 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1978 * @param yyscanner The scanner object.
1979 * @return the newly allocated buffer state object.
1981 YY_BUFFER_STATE ssl_expr_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
1988 /* Get memory for full buffer, including space for trailing EOB's. */
1989 n = _yybytes_len + 2;
1990 buf = (char *) ssl_expr_yyalloc(n ,yyscanner );
1992 YY_FATAL_ERROR( "out of dynamic memory in ssl_expr_yy_scan_bytes()" );
1994 for ( i = 0; i < _yybytes_len; ++i )
1995 buf[i] = yybytes[i];
1997 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1999 b = ssl_expr_yy_scan_buffer(buf,n ,yyscanner);
2001 YY_FATAL_ERROR( "bad buffer in ssl_expr_yy_scan_bytes()" );
2003 /* It's okay to grow etc. this buffer, and we should throw it
2004 * away when we're done.
2006 b->yy_is_our_buffer = 1;
2011 #ifndef YY_EXIT_FAILURE
2012 #define YY_EXIT_FAILURE 2
2015 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2017 (void) fprintf( stderr, "%s\n", msg );
2018 exit( YY_EXIT_FAILURE );
2021 /* Redefine yyless() so it works in section 3 code. */
2027 /* Undo effects of setting up yytext. */ \
2028 int yyless_macro_arg = (n); \
2029 YY_LESS_LINENO(yyless_macro_arg);\
2030 yytext[yyleng] = yyg->yy_hold_char; \
2031 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2032 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2033 *yyg->yy_c_buf_p = '\0'; \
2034 yyleng = yyless_macro_arg; \
2038 /* Accessor methods (get/set functions) to struct members. */
2040 /** Get the user-defined data for this scanner.
2041 * @param yyscanner The scanner object.
2043 YY_EXTRA_TYPE ssl_expr_yyget_extra (yyscan_t yyscanner)
2045 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2049 /** Get the current line number.
2050 * @param yyscanner The scanner object.
2052 int ssl_expr_yyget_lineno (yyscan_t yyscanner)
2054 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2056 if (! YY_CURRENT_BUFFER)
2062 /** Get the current column number.
2063 * @param yyscanner The scanner object.
2065 int ssl_expr_yyget_column (yyscan_t yyscanner)
2067 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2069 if (! YY_CURRENT_BUFFER)
2075 /** Get the input stream.
2076 * @param yyscanner The scanner object.
2078 FILE *ssl_expr_yyget_in (yyscan_t yyscanner)
2080 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2084 /** Get the output stream.
2085 * @param yyscanner The scanner object.
2087 FILE *ssl_expr_yyget_out (yyscan_t yyscanner)
2089 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2093 /** Get the length of the current token.
2094 * @param yyscanner The scanner object.
2096 int ssl_expr_yyget_leng (yyscan_t yyscanner)
2098 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2102 /** Get the current token.
2103 * @param yyscanner The scanner object.
2106 char *ssl_expr_yyget_text (yyscan_t yyscanner)
2108 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2112 /** Set the user-defined data. This data is never touched by the scanner.
2113 * @param user_defined The data to be associated with this scanner.
2114 * @param yyscanner The scanner object.
2116 void ssl_expr_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2118 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2119 yyextra = user_defined ;
2122 /** Set the current line number.
2123 * @param line_number
2124 * @param yyscanner The scanner object.
2126 void ssl_expr_yyset_lineno (int line_number , yyscan_t yyscanner)
2128 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2130 /* lineno is only valid if an input buffer exists. */
2131 if (! YY_CURRENT_BUFFER )
2132 yy_fatal_error( "ssl_expr_yyset_lineno called with no buffer" , yyscanner);
2134 yylineno = line_number;
2137 /** Set the current column.
2138 * @param line_number
2139 * @param yyscanner The scanner object.
2141 void ssl_expr_yyset_column (int column_no , yyscan_t yyscanner)
2143 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2145 /* column is only valid if an input buffer exists. */
2146 if (! YY_CURRENT_BUFFER )
2147 yy_fatal_error( "ssl_expr_yyset_column called with no buffer" , yyscanner);
2149 yycolumn = column_no;
2152 /** Set the input stream. This does not discard the current
2154 * @param in_str A readable stream.
2155 * @param yyscanner The scanner object.
2156 * @see ssl_expr_yy_switch_to_buffer
2158 void ssl_expr_yyset_in (FILE * in_str , yyscan_t yyscanner)
2160 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2164 void ssl_expr_yyset_out (FILE * out_str , yyscan_t yyscanner)
2166 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2170 int ssl_expr_yyget_debug (yyscan_t yyscanner)
2172 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2173 return yy_flex_debug;
2176 void ssl_expr_yyset_debug (int bdebug , yyscan_t yyscanner)
2178 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2179 yy_flex_debug = bdebug ;
2182 /* Accessor methods for yylval and yylloc */
2184 YYSTYPE * ssl_expr_yyget_lval (yyscan_t yyscanner)
2186 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2190 void ssl_expr_yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner)
2192 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2193 yylval = yylval_param;
2196 /* User-visible API */
2198 /* ssl_expr_yylex_init is special because it creates the scanner itself, so it is
2199 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2200 * That's why we explicitly handle the declaration, instead of using our macros.
2203 int ssl_expr_yylex_init(yyscan_t* ptr_yy_globals)
2206 if (ptr_yy_globals == NULL){
2211 *ptr_yy_globals = (yyscan_t) ssl_expr_yyalloc ( sizeof( struct yyguts_t ), NULL );
2213 if (*ptr_yy_globals == NULL){
2218 /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2219 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2221 return yy_init_globals ( *ptr_yy_globals );
2224 /* ssl_expr_yylex_init_extra has the same functionality as ssl_expr_yylex_init, but follows the
2225 * convention of taking the scanner as the last argument. Note however, that
2226 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2227 * is the reason, too, why this function also must handle its own declaration).
2228 * The user defined value in the first argument will be available to ssl_expr_yyalloc in
2229 * the yyextra field.
2232 int ssl_expr_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
2235 struct yyguts_t dummy_yyguts;
2237 ssl_expr_yyset_extra (yy_user_defined, &dummy_yyguts);
2239 if (ptr_yy_globals == NULL){
2244 *ptr_yy_globals = (yyscan_t) ssl_expr_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2246 if (*ptr_yy_globals == NULL){
2251 /* By setting to 0xAA, we expose bugs in
2252 yy_init_globals. Leave at 0x00 for releases. */
2253 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2255 ssl_expr_yyset_extra (yy_user_defined, *ptr_yy_globals);
2257 return yy_init_globals ( *ptr_yy_globals );
2260 static int yy_init_globals (yyscan_t yyscanner)
2262 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2263 /* Initialization is the same as for the non-reentrant scanner.
2264 * This function is called from ssl_expr_yylex_destroy(), so don't allocate here.
2267 yyg->yy_buffer_stack = 0;
2268 yyg->yy_buffer_stack_top = 0;
2269 yyg->yy_buffer_stack_max = 0;
2270 yyg->yy_c_buf_p = (char *) 0;
2274 yyg->yy_start_stack_ptr = 0;
2275 yyg->yy_start_stack_depth = 0;
2276 yyg->yy_start_stack = NULL;
2278 /* Defined in main.c */
2287 /* For future reference: Set errno on error, since we are called by
2288 * ssl_expr_yylex_init()
2293 /* ssl_expr_yylex_destroy is for both reentrant and non-reentrant scanners. */
2294 int ssl_expr_yylex_destroy (yyscan_t yyscanner)
2296 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2298 /* Pop the buffer stack, destroying each element. */
2299 while(YY_CURRENT_BUFFER){
2300 ssl_expr_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
2301 YY_CURRENT_BUFFER_LVALUE = NULL;
2302 ssl_expr_yypop_buffer_state(yyscanner);
2305 /* Destroy the stack itself. */
2306 ssl_expr_yyfree(yyg->yy_buffer_stack ,yyscanner);
2307 yyg->yy_buffer_stack = NULL;
2309 /* Destroy the start condition stack. */
2310 ssl_expr_yyfree(yyg->yy_start_stack ,yyscanner );
2311 yyg->yy_start_stack = NULL;
2313 /* Reset the globals. This is important in a non-reentrant scanner so the next time
2314 * ssl_expr_yylex() is called, initialization will occur. */
2315 yy_init_globals( yyscanner);
2317 /* Destroy the main struct (reentrant only). */
2318 ssl_expr_yyfree ( yyscanner , yyscanner );
2324 * Internal utility routines.
2328 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2331 for ( i = 0; i < n; ++i )
2336 #ifdef YY_NEED_STRLEN
2337 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2340 for ( n = 0; s[n]; ++n )
2347 void *ssl_expr_yyalloc (yy_size_t size , yyscan_t yyscanner)
2349 return (void *) malloc( size );
2352 void *ssl_expr_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2354 /* The cast to (char *) in the following accommodates both
2355 * implementations that use char* generic pointers, and those
2356 * that use void* generic pointers. It works with the latter
2357 * because both ANSI C and C++ allow castless assignment from
2358 * any pointer type to void*, and deal with argument conversions
2359 * as though doing an assignment.
2361 return (void *) realloc( (char *) ptr, size );
2364 void ssl_expr_yyfree (void * ptr , yyscan_t yyscanner)
2366 free( (char *) ptr ); /* see ssl_expr_yyrealloc() for (char *) cast */
2369 #define YYTABLES_NAME "yytables"
2371 #line 228 "ssl_expr_scan.l"