1
#define yy_create_buffer ssl_expr_yy_create_buffer
2
#define yy_delete_buffer ssl_expr_yy_delete_buffer
3
#define yy_scan_buffer ssl_expr_yy_scan_buffer
4
#define yy_scan_string ssl_expr_yy_scan_string
5
#define yy_scan_bytes ssl_expr_yy_scan_bytes
6
#define yy_flex_debug ssl_expr_yy_flex_debug
7
#define yy_init_buffer ssl_expr_yy_init_buffer
8
#define yy_flush_buffer ssl_expr_yy_flush_buffer
9
#define yy_load_buffer_state ssl_expr_yy_load_buffer_state
10
#define yy_switch_to_buffer ssl_expr_yy_switch_to_buffer
11
#define yyin ssl_expr_yyin
12
#define yyleng ssl_expr_yyleng
13
#define yylex ssl_expr_yylex
14
#define yyout ssl_expr_yyout
15
#define yyrestart ssl_expr_yyrestart
16
#define yytext ssl_expr_yytext
18
/* A lexical scanner generated by flex */
20
/* Scanner skeleton version:
21
* $FreeBSD: src/usr.bin/lex/flex.skl,v 1.4 1999/10/27 07:56:44 obrien Exp $
25
#define YY_FLEX_MAJOR_VERSION 2
26
#define YY_FLEX_MINOR_VERSION 5
31
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
44
/* Use prototypes in function declarations. */
47
/* The "const" storage-class-modifier is valid. */
50
#else /* ! __cplusplus */
58
#endif /* ! __cplusplus */
77
#define YY_PROTO(proto) proto
79
#define YY_PROTO(proto) ()
82
/* Returned upon end-of-file. */
85
/* Promotes a possibly negative, possibly signed char to an unsigned
86
* integer for use as an array index. If the signed char is negative,
87
* we want to instead treat it as an 8-bit unsigned char, hence the
90
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
92
/* Enter a start condition. This macro really ought to take a parameter,
93
* but we do it the disgusting crufty way forced on us by the ()-less
94
* definition of BEGIN.
96
#define BEGIN yy_start = 1 + 2 *
98
/* Translate the current start state into a value that can be later handed
99
* to BEGIN to return to the state. The YYSTATE alias is for lex
102
#define YY_START ((yy_start - 1) / 2)
103
#define YYSTATE YY_START
105
/* Action number for EOF rule of a given start state. */
106
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
108
/* Special action meaning "start processing a new file". */
109
#define YY_NEW_FILE yyrestart( yyin )
111
#define YY_END_OF_BUFFER_CHAR 0
113
/* Size of default input buffer. */
114
#define YY_BUF_SIZE 16384
116
typedef struct yy_buffer_state *YY_BUFFER_STATE;
119
extern FILE *yyin, *yyout;
121
#define EOB_ACT_CONTINUE_SCAN 0
122
#define EOB_ACT_END_OF_FILE 1
123
#define EOB_ACT_LAST_MATCH 2
125
/* The funky do-while in the following #define is used to turn the definition
126
* int a single C statement (which needs a semi-colon terminator). This
127
* avoids problems with code like:
129
* if ( condition_holds )
132
* do_something_else();
134
* Prior to using the do-while the compiler would get upset at the
135
* "else" because it interpreted the "if" statement as being all
136
* done when it reached the ';' after the yyless() call.
139
/* Return all but the first 'n' matched characters back to the input stream. */
144
/* Undo effects of setting up yytext. */ \
145
*yy_cp = yy_hold_char; \
146
YY_RESTORE_YY_MORE_OFFSET \
147
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
148
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
152
#define unput(c) yyunput( c, yytext_ptr )
154
/* The following is because we cannot portably get our hands on size_t
155
* (without autoconf's help, which isn't available because we want
156
* flex-generated scanners to compile on their own).
158
typedef unsigned int yy_size_t;
161
struct yy_buffer_state
165
char *yy_ch_buf; /* input buffer */
166
char *yy_buf_pos; /* current position in input buffer */
168
/* Size of input buffer in bytes, not including room for EOB
171
yy_size_t yy_buf_size;
173
/* Number of characters read into yy_ch_buf, not including EOB
178
/* Whether we "own" the buffer - i.e., we know we created it,
179
* and can realloc() it to grow it, and should free() it to
182
int yy_is_our_buffer;
184
/* Whether this is an "interactive" input source; if so, and
185
* if we're using stdio for input, then we want to use getc()
186
* instead of fread(), to make sure we stop fetching input after
189
int yy_is_interactive;
191
/* Whether we're considered to be at the beginning of a line.
192
* If so, '^' rules will be active on the next match, otherwise
197
/* Whether to try to fill the input buffer when we reach the
202
int yy_buffer_status;
203
#define YY_BUFFER_NEW 0
204
#define YY_BUFFER_NORMAL 1
205
/* When an EOF's been seen but there's still some text to process
206
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
207
* shouldn't try reading from the input source any more. We might
208
* still have a bunch of tokens to match, though, because of
209
* possible backing-up.
211
* When we actually see the EOF, we change the status to "new"
212
* (via yyrestart()), so that the user can continue scanning by
213
* just pointing yyin at a new input file.
215
#define YY_BUFFER_EOF_PENDING 2
218
static YY_BUFFER_STATE yy_current_buffer = 0;
220
/* We provide macros for accessing buffer states in case in the
221
* future we want to put the buffer states in a more general
224
#define YY_CURRENT_BUFFER yy_current_buffer
227
/* yy_hold_char holds the character lost when yytext is formed. */
228
static char yy_hold_char;
230
static int yy_n_chars; /* number of characters read into yy_ch_buf */
235
/* Points to current character in buffer. */
236
static char *yy_c_buf_p = (char *) 0;
237
static int yy_init = 1; /* whether we need to initialize */
238
static int yy_start = 0; /* start state number */
240
/* Flag which is used to allow yywrap()'s to do buffer switches
241
* instead of setting up a fresh yyin. A bit of a hack ...
243
static int yy_did_buffer_switch_on_eof;
245
void yyrestart YY_PROTO(( FILE *input_file ));
247
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
248
void yy_load_buffer_state YY_PROTO(( void ));
249
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
250
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
251
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
252
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
253
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
255
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
256
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
257
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
259
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
260
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
261
static void yy_flex_free YY_PROTO(( void * ));
263
#define yy_new_buffer yy_create_buffer
265
#define yy_set_interactive(is_interactive) \
267
if ( ! yy_current_buffer ) \
268
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
269
yy_current_buffer->yy_is_interactive = is_interactive; \
272
#define yy_set_bol(at_bol) \
274
if ( ! yy_current_buffer ) \
275
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
276
yy_current_buffer->yy_at_bol = at_bol; \
279
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
283
#define YY_SKIP_YYWRAP
284
typedef unsigned char YY_CHAR;
285
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
286
typedef int yy_state_type;
288
#define yytext_ptr yytext
290
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
291
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
292
static int yy_get_next_buffer YY_PROTO(( void ));
293
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
295
/* Done after the current pattern has been matched and before the
296
* corresponding action - sets up yytext.
298
#define YY_DO_BEFORE_ACTION \
299
yytext_ptr = yy_bp; \
300
yyleng = (int) (yy_cp - yy_bp); \
301
yy_hold_char = *yy_cp; \
305
#define YY_NUM_RULES 47
306
#define YY_END_OF_BUFFER 48
307
static yyconst short int yy_accept[89] =
309
0, 0, 0, 0, 0, 0, 0, 0, 48, 46,
310
1, 38, 2, 46, 44, 24, 46, 28, 45, 45,
311
45, 45, 45, 45, 45, 45, 45, 45, 45, 45,
312
46, 13, 4, 3, 14, 16, 18, 17, 1, 22,
313
32, 34, 44, 26, 20, 31, 30, 45, 45, 45,
314
19, 45, 45, 29, 27, 39, 25, 23, 15, 15,
315
21, 45, 35, 45, 36, 13, 12, 5, 6, 10,
316
11, 7, 8, 9, 40, 33, 45, 45, 37, 45,
317
5, 6, 45, 41, 42, 5, 43, 0
320
static yyconst int yy_ec[256] =
322
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
323
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
324
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
325
1, 2, 4, 5, 1, 1, 1, 6, 1, 1,
326
1, 1, 1, 1, 7, 1, 1, 8, 8, 8,
327
8, 8, 8, 8, 8, 9, 9, 7, 1, 10,
328
11, 12, 1, 1, 13, 13, 13, 14, 13, 13,
329
13, 13, 15, 13, 13, 13, 13, 13, 16, 13,
330
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
331
1, 17, 1, 1, 7, 1, 18, 19, 13, 20,
333
21, 22, 23, 13, 24, 13, 13, 25, 26, 27,
334
28, 13, 29, 30, 31, 32, 33, 13, 13, 13,
335
13, 13, 1, 34, 1, 35, 1, 1, 1, 1,
336
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
337
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
338
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
339
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
340
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
341
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
342
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
344
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
345
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
346
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
347
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
348
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
352
static yyconst int yy_meta[36] =
354
1, 1, 2, 1, 3, 1, 4, 4, 4, 1,
355
1, 1, 4, 4, 4, 4, 3, 4, 4, 4,
356
4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
360
static yyconst short int yy_base[96] =
362
0, 0, 33, 34, 0, 0, 88, 87, 110, 154,
363
38, 31, 154, 103, 35, 97, 34, 96, 0, 31,
364
75, 72, 29, 27, 73, 28, 69, 33, 48, 69,
365
64, 0, 154, 154, 97, 154, 154, 154, 54, 154,
366
154, 154, 56, 154, 154, 154, 154, 0, 38, 77,
367
0, 71, 70, 0, 0, 0, 0, 0, 154, 0,
368
0, 62, 0, 60, 154, 0, 154, 59, 68, 154,
369
154, 154, 154, 154, 0, 0, 61, 70, 0, 69,
370
74, 76, 68, 0, 0, 79, 0, 154, 129, 133,
371
137, 58, 141, 145, 149
375
static yyconst short int yy_def[96] =
377
88, 1, 89, 89, 90, 90, 91, 91, 88, 88,
378
88, 88, 88, 88, 88, 88, 88, 88, 92, 92,
379
92, 92, 92, 92, 92, 92, 93, 92, 92, 92,
380
88, 94, 88, 88, 95, 88, 88, 88, 88, 88,
381
88, 88, 88, 88, 88, 88, 88, 92, 92, 92,
382
92, 92, 92, 92, 92, 92, 92, 92, 88, 92,
383
92, 92, 92, 92, 88, 94, 88, 88, 88, 88,
384
88, 88, 88, 88, 92, 92, 92, 92, 92, 92,
385
88, 88, 92, 92, 92, 88, 92, 0, 88, 88,
390
static yyconst short int yy_nxt[190] =
392
10, 11, 11, 12, 13, 14, 10, 15, 15, 16,
393
17, 18, 19, 19, 19, 20, 10, 21, 19, 19,
394
22, 23, 24, 25, 26, 27, 28, 29, 19, 19,
395
19, 30, 19, 31, 10, 33, 33, 34, 34, 39,
396
39, 40, 43, 43, 45, 49, 52, 54, 57, 35,
397
35, 75, 53, 61, 49, 39, 39, 75, 55, 58,
398
62, 48, 49, 43, 43, 41, 81, 82, 46, 59,
399
59, 49, 59, 59, 59, 82, 82, 63, 59, 59,
400
59, 86, 82, 82, 82, 59, 82, 82, 87, 85,
401
84, 83, 80, 79, 78, 77, 76, 65, 64, 56,
403
51, 50, 59, 59, 68, 69, 47, 44, 42, 88,
404
38, 38, 88, 88, 88, 70, 88, 88, 71, 88,
405
88, 88, 88, 72, 88, 88, 73, 88, 74, 32,
406
32, 32, 32, 36, 36, 36, 36, 37, 37, 37,
407
37, 60, 88, 60, 60, 66, 88, 88, 66, 67,
408
67, 67, 67, 9, 88, 88, 88, 88, 88, 88,
409
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
410
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
411
88, 88, 88, 88, 88, 88, 88, 88, 88
414
static yyconst short int yy_chk[190] =
416
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
417
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
418
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
419
1, 1, 1, 1, 1, 3, 4, 3, 4, 11,
420
11, 12, 15, 15, 17, 20, 23, 24, 26, 3,
421
4, 49, 23, 28, 20, 39, 39, 49, 24, 26,
422
28, 92, 29, 43, 43, 12, 68, 68, 17, 27,
423
27, 29, 27, 27, 27, 69, 69, 29, 27, 27,
424
27, 81, 81, 82, 82, 27, 86, 86, 83, 80,
425
78, 77, 64, 62, 53, 52, 50, 31, 30, 25,
427
22, 21, 27, 27, 35, 35, 18, 16, 14, 9,
428
8, 7, 0, 0, 0, 35, 0, 0, 35, 0,
429
0, 0, 0, 35, 0, 0, 35, 0, 35, 89,
430
89, 89, 89, 90, 90, 90, 90, 91, 91, 91,
431
91, 93, 0, 93, 93, 94, 0, 0, 94, 95,
432
95, 95, 95, 88, 88, 88, 88, 88, 88, 88,
433
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
434
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
435
88, 88, 88, 88, 88, 88, 88, 88, 88
438
static yy_state_type yy_last_accepting_state;
439
static char *yy_last_accepting_cpos;
441
/* The intent behind this definition is that it'll catch
442
* any uses of REJECT which flex missed.
444
#define REJECT reject_used_but_not_detected
445
#define yymore() yymore_used_but_not_detected
446
#define YY_MORE_ADJ 0
447
#define YY_RESTORE_YY_MORE_OFFSET
449
#line 1 "ssl_expr_scan.l"
451
/* Licensed to the Apache Software Foundation (ASF) under one or more
452
* contributor license agreements. See the NOTICE file distributed with
453
* this work for additional information regarding copyright ownership.
454
* The ASF licenses this file to You under the Apache License, Version 2.0
455
* (the "License"); you may not use this file except in compliance with
456
* the License. You may obtain a copy of the License at
458
* http://www.apache.org/licenses/LICENSE-2.0
460
* Unless required by applicable law or agreed to in writing, software
461
* distributed under the License is distributed on an "AS IS" BASIS,
462
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
463
* See the License for the specific language governing permissions and
464
* limitations under the License.
467
* _ __ ___ ___ __| | ___ ___| |
468
* | '_ ` _ \ / _ \ / _` | / __/ __| |
469
* | | | | | | (_) | (_| | \__ \__ \ | mod_ssl - Apache Interface to OpenSSL
470
* |_| |_| |_|\___/ \__,_|___|___/___/_| http://www.modssl.org/
475
/* ``Killing for peace is
476
like fucking for virginity.''
478
/* _________________________________________________________________
480
** Expression Scanner
481
** _________________________________________________________________
483
#line 37 "ssl_expr_scan.l"
484
#include "ssl_private.h"
486
#include "ssl_expr_parse.h"
488
#define YY_NO_UNPUT 1
489
int yyinput(char *buf, int max_size);
492
#define YY_INPUT(buf,result,max_size) \
493
(result = yyinput(buf, max_size))
495
#define MAX_STR_LEN 2048
497
#define YY_NEVER_INTERACTIVE 1
501
#define regex_flags 3
503
#line 505 "lex.ssl_expr_yy.c"
505
/* Macros after this point can all be overridden by user definitions in
509
#ifndef YY_SKIP_YYWRAP
511
extern "C" int yywrap YY_PROTO(( void ));
513
extern int yywrap YY_PROTO(( void ));
518
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
522
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
525
#ifdef YY_NEED_STRLEN
526
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
531
static int yyinput YY_PROTO(( void ));
533
static int input YY_PROTO(( void ));
538
static int yy_start_stack_ptr = 0;
539
static int yy_start_stack_depth = 0;
540
static int *yy_start_stack = 0;
541
#ifndef YY_NO_PUSH_STATE
542
static void yy_push_state YY_PROTO(( int new_state ));
544
#ifndef YY_NO_POP_STATE
545
static void yy_pop_state YY_PROTO(( void ));
547
#ifndef YY_NO_TOP_STATE
548
static int yy_top_state YY_PROTO(( void ));
552
#define YY_NO_PUSH_STATE 1
553
#define YY_NO_POP_STATE 1
554
#define YY_NO_TOP_STATE 1
557
#ifdef YY_MALLOC_DECL
565
/* Just try to get by without declaring the routines. This will fail
566
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
567
* or sizeof(void*) != sizeof(int).
572
/* Amount of stuff to slurp up with each read. */
573
#ifndef YY_READ_BUF_SIZE
574
#define YY_READ_BUF_SIZE 8192
577
/* Copy whatever the last rule matched to the standard output. */
580
/* This used to be an fputs(), but since the string might contain NUL's,
581
* we now use fwrite().
583
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
586
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
587
* is returned in "result".
590
#define YY_INPUT(buf,result,max_size) \
591
if ( yy_current_buffer->yy_is_interactive ) \
594
for ( n = 0; n < max_size && \
595
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
598
buf[n++] = (char) c; \
599
if ( c == EOF && ferror( yyin ) ) \
600
YY_FATAL_ERROR( "input in flex scanner failed" ); \
603
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
604
&& ferror( yyin ) ) \
605
YY_FATAL_ERROR( "input in flex scanner failed" );
608
/* No semi-colon after return; correct usage is to write "yyterminate();" -
609
* we don't want an extra ';' after the "return" because that will cause
610
* some compilers to complain about unreachable statements.
613
#define yyterminate() return YY_NULL
616
/* Number of entries by which start-condition stack grows. */
617
#ifndef YY_START_STACK_INCR
618
#define YY_START_STACK_INCR 25
621
/* Report a fatal error. */
622
#ifndef YY_FATAL_ERROR
623
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
626
/* Default declaration of generated scanner - a define so the user can
627
* easily add parameters.
630
#define YY_DECL int yylex YY_PROTO(( void ))
633
/* Code executed at the beginning of each rule, after yytext and yyleng
636
#ifndef YY_USER_ACTION
637
#define YY_USER_ACTION
640
/* Code executed at the end of each rule. */
642
#define YY_BREAK break;
645
#define YY_RULE_SETUP \
650
register yy_state_type yy_current_state;
651
register char *yy_cp, *yy_bp;
654
#line 58 "ssl_expr_scan.l"
657
char caStr[MAX_STR_LEN];
659
char caRegex[MAX_STR_LEN];
660
char *cpRegex = NULL;
661
char cRegexDel = NUL;
666
#line 668 "lex.ssl_expr_yy.c"
677
yy_start = 1; /* first start state */
685
if ( ! yy_current_buffer )
687
yy_create_buffer( yyin, YY_BUF_SIZE );
689
yy_load_buffer_state();
692
while ( 1 ) /* loops until end-of-file is reached */
696
/* Support of yytext. */
697
*yy_cp = yy_hold_char;
699
/* yy_bp points to the position in yy_ch_buf of the start of
704
yy_current_state = yy_start;
708
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
709
if ( yy_accept[yy_current_state] )
711
yy_last_accepting_state = yy_current_state;
712
yy_last_accepting_cpos = yy_cp;
714
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
716
yy_current_state = (int) yy_def[yy_current_state];
717
if ( yy_current_state >= 89 )
718
yy_c = yy_meta[(unsigned int) yy_c];
720
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
723
while ( yy_current_state != 88 );
724
yy_cp = yy_last_accepting_cpos;
725
yy_current_state = yy_last_accepting_state;
728
yy_act = yy_accept[yy_current_state];
733
do_action: /* This label is used only to access EOF actions. */
737
{ /* beginning of action switch */
738
case 0: /* must back up */
739
/* undo the effects of YY_DO_BEFORE_ACTION */
740
*yy_cp = yy_hold_char;
741
yy_cp = yy_last_accepting_cpos;
742
yy_current_state = yy_last_accepting_state;
747
#line 69 "ssl_expr_scan.l"
753
* C-style strings ("...")
757
#line 76 "ssl_expr_scan.l"
765
#line 80 "ssl_expr_scan.l"
769
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, caStr);
775
#line 86 "ssl_expr_scan.l"
777
yyerror("Unterminated string");
782
#line 89 "ssl_expr_scan.l"
786
(void)sscanf(yytext+1, "%o", &result);
788
yyerror("Escape sequence out of bound");
795
#line 98 "ssl_expr_scan.l"
797
yyerror("Bad escape sequence");
802
#line 101 "ssl_expr_scan.l"
807
#line 102 "ssl_expr_scan.l"
812
#line 103 "ssl_expr_scan.l"
817
#line 104 "ssl_expr_scan.l"
822
#line 105 "ssl_expr_scan.l"
827
#line 106 "ssl_expr_scan.l"
829
*cpStr++ = yytext[1];
834
#line 109 "ssl_expr_scan.l"
843
#line 114 "ssl_expr_scan.l"
845
*cpStr++ = yytext[1];
853
#line 121 "ssl_expr_scan.l"
855
cRegexDel = yytext[1];
862
#line 126 "ssl_expr_scan.l"
864
if (yytext[0] == cRegexDel) {
869
*cpRegex++ = yytext[0];
875
#line 135 "ssl_expr_scan.l"
877
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, caRegex);
884
#line 140 "ssl_expr_scan.l"
886
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, caRegex);
892
case YY_STATE_EOF(regex_flags):
893
#line 146 "ssl_expr_scan.l"
895
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, caRegex);
905
#line 155 "ssl_expr_scan.l"
910
#line 156 "ssl_expr_scan.l"
915
#line 157 "ssl_expr_scan.l"
920
#line 158 "ssl_expr_scan.l"
925
#line 159 "ssl_expr_scan.l"
930
#line 160 "ssl_expr_scan.l"
935
#line 161 "ssl_expr_scan.l"
940
#line 162 "ssl_expr_scan.l"
945
#line 163 "ssl_expr_scan.l"
950
#line 164 "ssl_expr_scan.l"
955
#line 165 "ssl_expr_scan.l"
960
#line 166 "ssl_expr_scan.l"
965
#line 167 "ssl_expr_scan.l"
970
#line 168 "ssl_expr_scan.l"
975
#line 169 "ssl_expr_scan.l"
980
#line 170 "ssl_expr_scan.l"
985
#line 171 "ssl_expr_scan.l"
990
#line 172 "ssl_expr_scan.l"
995
#line 173 "ssl_expr_scan.l"
1000
#line 174 "ssl_expr_scan.l"
1001
{ return T_OP_NOT; }
1005
#line 175 "ssl_expr_scan.l"
1010
#line 176 "ssl_expr_scan.l"
1011
{ return T_OP_OID; }
1018
#line 181 "ssl_expr_scan.l"
1019
{ return T_FUNC_FILE; }
1026
#line 186 "ssl_expr_scan.l"
1031
#line 187 "ssl_expr_scan.l"
1039
#line 192 "ssl_expr_scan.l"
1041
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, yytext);
1050
#line 200 "ssl_expr_scan.l"
1052
yylval.cpVal = apr_pstrdup(ssl_expr_info.pool, yytext);
1057
* Anything else is returned as is...
1061
#line 208 "ssl_expr_scan.l"
1068
#line 212 "ssl_expr_scan.l"
1069
YY_FATAL_ERROR( "flex scanner jammed" );
1071
#line 1073 "lex.ssl_expr_yy.c"
1072
case YY_STATE_EOF(INITIAL):
1073
case YY_STATE_EOF(str):
1074
case YY_STATE_EOF(regex):
1077
case YY_END_OF_BUFFER:
1079
/* Amount of text matched not including the EOB char. */
1080
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1082
/* Undo the effects of YY_DO_BEFORE_ACTION. */
1083
*yy_cp = yy_hold_char;
1084
YY_RESTORE_YY_MORE_OFFSET
1086
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1088
/* We're scanning a new file or input source. It's
1089
* possible that this happened because the user
1090
* just pointed yyin at a new source and called
1091
* yylex(). If so, then we have to assure
1092
* consistency between yy_current_buffer and our
1093
* globals. Here is the right place to do so, because
1094
* this is the first action (other than possibly a
1095
* back-up) that will match for the new input source.
1097
yy_n_chars = yy_current_buffer->yy_n_chars;
1098
yy_current_buffer->yy_input_file = yyin;
1099
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1102
/* Note that here we test for yy_c_buf_p "<=" to the position
1103
* of the first EOB in the buffer, since yy_c_buf_p will
1104
* already have been incremented past the NUL character
1105
* (since all states make transitions on EOB to the
1106
* end-of-buffer state). Contrast this with the test
1109
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1110
{ /* This was really a NUL. */
1111
yy_state_type yy_next_state;
1113
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1115
yy_current_state = yy_get_previous_state();
1117
/* Okay, we're now positioned to make the NUL
1118
* transition. We couldn't have
1119
* yy_get_previous_state() go ahead and do it
1120
* for us because it doesn't know how to deal
1121
* with the possibility of jamming (and we don't
1122
* want to build jamming into it because then it
1123
* will run more slowly).
1126
yy_next_state = yy_try_NUL_trans( yy_current_state );
1128
yy_bp = yytext_ptr + YY_MORE_ADJ;
1130
if ( yy_next_state )
1132
/* Consume the NUL. */
1133
yy_cp = ++yy_c_buf_p;
1134
yy_current_state = yy_next_state;
1140
yy_cp = yy_last_accepting_cpos;
1141
yy_current_state = yy_last_accepting_state;
1142
goto yy_find_action;
1146
else switch ( yy_get_next_buffer() )
1148
case EOB_ACT_END_OF_FILE:
1150
yy_did_buffer_switch_on_eof = 0;
1154
/* Note: because we've taken care in
1155
* yy_get_next_buffer() to have set up
1156
* yytext, we can now set up
1157
* yy_c_buf_p so that if some total
1158
* hoser (like flex itself) wants to
1159
* call the scanner after we return the
1160
* YY_NULL, it'll still work - another
1161
* YY_NULL will get returned.
1163
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1165
yy_act = YY_STATE_EOF(YY_START);
1171
if ( ! yy_did_buffer_switch_on_eof )
1177
case EOB_ACT_CONTINUE_SCAN:
1179
yytext_ptr + yy_amount_of_matched_text;
1181
yy_current_state = yy_get_previous_state();
1184
yy_bp = yytext_ptr + YY_MORE_ADJ;
1187
case EOB_ACT_LAST_MATCH:
1189
&yy_current_buffer->yy_ch_buf[yy_n_chars];
1191
yy_current_state = yy_get_previous_state();
1194
yy_bp = yytext_ptr + YY_MORE_ADJ;
1195
goto yy_find_action;
1202
"fatal flex scanner internal error--no action found" );
1203
} /* end of action switch */
1204
} /* end of scanning one token */
1205
} /* end of yylex */
1208
/* yy_get_next_buffer - try to read in a new buffer
1210
* Returns a code representing an action:
1211
* EOB_ACT_LAST_MATCH -
1212
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1213
* EOB_ACT_END_OF_FILE - end of file
1216
static int yy_get_next_buffer()
1218
register char *dest = yy_current_buffer->yy_ch_buf;
1219
register char *source = yytext_ptr;
1220
register int number_to_move, i;
1223
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1225
"fatal flex scanner internal error--end of buffer missed" );
1227
if ( yy_current_buffer->yy_fill_buffer == 0 )
1228
{ /* Don't try to fill the buffer, so this is an EOF. */
1229
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
1231
/* We matched a single character, the EOB, so
1232
* treat this as a final EOF.
1234
return EOB_ACT_END_OF_FILE;
1239
/* We matched some text prior to the EOB, first
1242
return EOB_ACT_LAST_MATCH;
1246
/* Try to read more data. */
1248
/* First move last chars to start of buffer. */
1249
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
1251
for ( i = 0; i < number_to_move; ++i )
1252
*(dest++) = *(source++);
1254
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1255
/* don't do the read, it's not guaranteed to return an EOF,
1258
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
1263
yy_current_buffer->yy_buf_size - number_to_move - 1;
1265
while ( num_to_read <= 0 )
1266
{ /* Not enough room in the buffer - grow it. */
1267
#ifdef YY_USES_REJECT
1269
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1272
/* just a shorter name for the current buffer */
1273
YY_BUFFER_STATE b = yy_current_buffer;
1275
int yy_c_buf_p_offset =
1276
(int) (yy_c_buf_p - b->yy_ch_buf);
1278
if ( b->yy_is_our_buffer )
1280
int new_size = b->yy_buf_size * 2;
1282
if ( new_size <= 0 )
1283
b->yy_buf_size += b->yy_buf_size / 8;
1285
b->yy_buf_size *= 2;
1287
b->yy_ch_buf = (char *)
1288
/* Include room in for 2 EOB chars. */
1289
yy_flex_realloc( (void *) b->yy_ch_buf,
1290
b->yy_buf_size + 2 );
1293
/* Can't grow it, we don't own it. */
1296
if ( ! b->yy_ch_buf )
1298
"fatal error - scanner input buffer overflow" );
1300
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1302
num_to_read = yy_current_buffer->yy_buf_size -
1307
if ( num_to_read > YY_READ_BUF_SIZE )
1308
num_to_read = YY_READ_BUF_SIZE;
1310
/* Read in more data. */
1311
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
1312
yy_n_chars, num_to_read );
1314
yy_current_buffer->yy_n_chars = yy_n_chars;
1317
if ( yy_n_chars == 0 )
1319
if ( number_to_move == YY_MORE_ADJ )
1321
ret_val = EOB_ACT_END_OF_FILE;
1327
ret_val = EOB_ACT_LAST_MATCH;
1328
yy_current_buffer->yy_buffer_status =
1329
YY_BUFFER_EOF_PENDING;
1334
ret_val = EOB_ACT_CONTINUE_SCAN;
1336
yy_n_chars += number_to_move;
1337
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1338
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1340
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
1346
/* yy_get_previous_state - get the state just before the EOB char was reached */
1348
static yy_state_type yy_get_previous_state()
1350
register yy_state_type yy_current_state;
1351
register char *yy_cp;
1353
yy_current_state = yy_start;
1355
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
1357
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1358
if ( yy_accept[yy_current_state] )
1360
yy_last_accepting_state = yy_current_state;
1361
yy_last_accepting_cpos = yy_cp;
1363
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1365
yy_current_state = (int) yy_def[yy_current_state];
1366
if ( yy_current_state >= 89 )
1367
yy_c = yy_meta[(unsigned int) yy_c];
1369
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1372
return yy_current_state;
1376
/* yy_try_NUL_trans - try to make a transition on the NUL character
1379
* next_state = yy_try_NUL_trans( current_state );
1382
#ifdef YY_USE_PROTOS
1383
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
1385
static yy_state_type yy_try_NUL_trans( yy_current_state )
1386
yy_state_type yy_current_state;
1389
register int yy_is_jam;
1390
register char *yy_cp = yy_c_buf_p;
1392
register YY_CHAR yy_c = 1;
1393
if ( yy_accept[yy_current_state] )
1395
yy_last_accepting_state = yy_current_state;
1396
yy_last_accepting_cpos = yy_cp;
1398
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1400
yy_current_state = (int) yy_def[yy_current_state];
1401
if ( yy_current_state >= 89 )
1402
yy_c = yy_meta[(unsigned int) yy_c];
1404
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1405
yy_is_jam = (yy_current_state == 88);
1407
return yy_is_jam ? 0 : yy_current_state;
1412
#ifdef YY_USE_PROTOS
1413
static void yyunput( int c, register char *yy_bp )
1415
static void yyunput( c, yy_bp )
1417
register char *yy_bp;
1420
register char *yy_cp = yy_c_buf_p;
1422
/* undo effects of setting up yytext */
1423
*yy_cp = yy_hold_char;
1425
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1426
{ /* need to shift things up to make room */
1427
/* +2 for EOB chars. */
1428
register int number_to_move = yy_n_chars + 2;
1429
register char *dest = &yy_current_buffer->yy_ch_buf[
1430
yy_current_buffer->yy_buf_size + 2];
1431
register char *source =
1432
&yy_current_buffer->yy_ch_buf[number_to_move];
1434
while ( source > yy_current_buffer->yy_ch_buf )
1435
*--dest = *--source;
1437
yy_cp += (int) (dest - source);
1438
yy_bp += (int) (dest - source);
1439
yy_current_buffer->yy_n_chars =
1440
yy_n_chars = yy_current_buffer->yy_buf_size;
1442
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
1443
YY_FATAL_ERROR( "flex scanner push-back overflow" );
1446
*--yy_cp = (char) c;
1450
yy_hold_char = *yy_cp;
1453
#endif /* ifndef YY_NO_UNPUT */
1457
static int yyinput()
1464
*yy_c_buf_p = yy_hold_char;
1466
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
1468
/* yy_c_buf_p now points to the character we want to return.
1469
* If this occurs *before* the EOB characters, then it's a
1470
* valid NUL; if not, then we've hit the end of the buffer.
1472
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1473
/* This was really a NUL. */
1477
{ /* need more input */
1478
int offset = yy_c_buf_p - yytext_ptr;
1481
switch ( yy_get_next_buffer() )
1483
case EOB_ACT_LAST_MATCH:
1484
/* This happens because yy_g_n_b()
1485
* sees that we've accumulated a
1486
* token and flags that we need to
1487
* try matching the token before
1488
* proceeding. But for input(),
1489
* there's no matching to consider.
1490
* So convert the EOB_ACT_LAST_MATCH
1491
* to EOB_ACT_END_OF_FILE.
1494
/* Reset buffer status. */
1499
case EOB_ACT_END_OF_FILE:
1504
if ( ! yy_did_buffer_switch_on_eof )
1513
case EOB_ACT_CONTINUE_SCAN:
1514
yy_c_buf_p = yytext_ptr + offset;
1520
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
1521
*yy_c_buf_p = '\0'; /* preserve yytext */
1522
yy_hold_char = *++yy_c_buf_p;
1529
#ifdef YY_USE_PROTOS
1530
void yyrestart( FILE *input_file )
1532
void yyrestart( input_file )
1536
if ( ! yy_current_buffer )
1537
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
1539
yy_init_buffer( yy_current_buffer, input_file );
1540
yy_load_buffer_state();
1544
#ifdef YY_USE_PROTOS
1545
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
1547
void yy_switch_to_buffer( new_buffer )
1548
YY_BUFFER_STATE new_buffer;
1551
if ( yy_current_buffer == new_buffer )
1554
if ( yy_current_buffer )
1556
/* Flush out information for old buffer. */
1557
*yy_c_buf_p = yy_hold_char;
1558
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
1559
yy_current_buffer->yy_n_chars = yy_n_chars;
1562
yy_current_buffer = new_buffer;
1563
yy_load_buffer_state();
1565
/* We don't actually know whether we did this switch during
1566
* EOF (yywrap()) processing, but the only time this flag
1567
* is looked at is after yywrap() is called, so it's safe
1568
* to go ahead and always set it.
1570
yy_did_buffer_switch_on_eof = 1;
1574
#ifdef YY_USE_PROTOS
1575
void yy_load_buffer_state( void )
1577
void yy_load_buffer_state()
1580
yy_n_chars = yy_current_buffer->yy_n_chars;
1581
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
1582
yyin = yy_current_buffer->yy_input_file;
1583
yy_hold_char = *yy_c_buf_p;
1587
#ifdef YY_USE_PROTOS
1588
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
1590
YY_BUFFER_STATE yy_create_buffer( file, size )
1597
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1599
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1601
b->yy_buf_size = size;
1603
/* yy_ch_buf has to be 2 characters longer than the size given because
1604
* we need to put in 2 end-of-buffer characters.
1606
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
1607
if ( ! b->yy_ch_buf )
1608
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1610
b->yy_is_our_buffer = 1;
1612
yy_init_buffer( b, file );
1618
#ifdef YY_USE_PROTOS
1619
void yy_delete_buffer( YY_BUFFER_STATE b )
1621
void yy_delete_buffer( b )
1628
if ( b == yy_current_buffer )
1629
yy_current_buffer = (YY_BUFFER_STATE) 0;
1631
if ( b->yy_is_our_buffer )
1632
yy_flex_free( (void *) b->yy_ch_buf );
1634
yy_flex_free( (void *) b );
1638
#ifndef YY_ALWAYS_INTERACTIVE
1639
#ifndef YY_NEVER_INTERACTIVE
1640
extern int isatty YY_PROTO(( int ));
1644
#ifdef YY_USE_PROTOS
1645
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
1647
void yy_init_buffer( b, file )
1654
yy_flush_buffer( b );
1656
b->yy_input_file = file;
1657
b->yy_fill_buffer = 1;
1659
#if YY_ALWAYS_INTERACTIVE
1660
b->yy_is_interactive = 1;
1662
#if YY_NEVER_INTERACTIVE
1663
b->yy_is_interactive = 0;
1665
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1671
#ifdef YY_USE_PROTOS
1672
void yy_flush_buffer( YY_BUFFER_STATE b )
1674
void yy_flush_buffer( b )
1684
/* We always need two end-of-buffer characters. The first causes
1685
* a transition to the end-of-buffer state. The second causes
1686
* a jam in that state.
1688
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1689
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1691
b->yy_buf_pos = &b->yy_ch_buf[0];
1694
b->yy_buffer_status = YY_BUFFER_NEW;
1696
if ( b == yy_current_buffer )
1697
yy_load_buffer_state();
1701
#ifndef YY_NO_SCAN_BUFFER
1702
#ifdef YY_USE_PROTOS
1703
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
1705
YY_BUFFER_STATE yy_scan_buffer( base, size )
1713
base[size-2] != YY_END_OF_BUFFER_CHAR ||
1714
base[size-1] != YY_END_OF_BUFFER_CHAR )
1715
/* They forgot to leave room for the EOB's. */
1718
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
1720
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1722
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1723
b->yy_buf_pos = b->yy_ch_buf = base;
1724
b->yy_is_our_buffer = 0;
1725
b->yy_input_file = 0;
1726
b->yy_n_chars = b->yy_buf_size;
1727
b->yy_is_interactive = 0;
1729
b->yy_fill_buffer = 0;
1730
b->yy_buffer_status = YY_BUFFER_NEW;
1732
yy_switch_to_buffer( b );
1739
#ifndef YY_NO_SCAN_STRING
1740
#ifdef YY_USE_PROTOS
1741
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
1743
YY_BUFFER_STATE yy_scan_string( yy_str )
1744
yyconst char *yy_str;
1748
for ( len = 0; yy_str[len]; ++len )
1751
return yy_scan_bytes( yy_str, len );
1756
#ifndef YY_NO_SCAN_BYTES
1757
#ifdef YY_USE_PROTOS
1758
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
1760
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
1761
yyconst char *bytes;
1770
/* Get memory for full buffer, including space for trailing EOB's. */
1772
buf = (char *) yy_flex_alloc( n );
1774
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1776
for ( i = 0; i < len; ++i )
1779
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
1781
b = yy_scan_buffer( buf, n );
1783
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1785
/* It's okay to grow etc. this buffer, and we should throw it
1786
* away when we're done.
1788
b->yy_is_our_buffer = 1;
1795
#ifndef YY_NO_PUSH_STATE
1796
#ifdef YY_USE_PROTOS
1797
static void yy_push_state( int new_state )
1799
static void yy_push_state( new_state )
1803
if ( yy_start_stack_ptr >= yy_start_stack_depth )
1807
yy_start_stack_depth += YY_START_STACK_INCR;
1808
new_size = yy_start_stack_depth * sizeof( int );
1810
if ( ! yy_start_stack )
1811
yy_start_stack = (int *) yy_flex_alloc( new_size );
1814
yy_start_stack = (int *) yy_flex_realloc(
1815
(void *) yy_start_stack, new_size );
1817
if ( ! yy_start_stack )
1819
"out of memory expanding start-condition stack" );
1822
yy_start_stack[yy_start_stack_ptr++] = YY_START;
1829
#ifndef YY_NO_POP_STATE
1830
static void yy_pop_state()
1832
if ( --yy_start_stack_ptr < 0 )
1833
YY_FATAL_ERROR( "start-condition stack underflow" );
1835
BEGIN(yy_start_stack[yy_start_stack_ptr]);
1840
#ifndef YY_NO_TOP_STATE
1841
static int yy_top_state()
1843
return yy_start_stack[yy_start_stack_ptr - 1];
1847
#ifndef YY_EXIT_FAILURE
1848
#define YY_EXIT_FAILURE 2
1851
#ifdef YY_USE_PROTOS
1852
static void yy_fatal_error( yyconst char msg[] )
1854
static void yy_fatal_error( msg )
1858
(void) fprintf( stderr, "%s\n", msg );
1859
exit( YY_EXIT_FAILURE );
1864
/* Redefine yyless() so it works in section 3 code. */
1870
/* Undo effects of setting up yytext. */ \
1871
yytext[yyleng] = yy_hold_char; \
1872
yy_c_buf_p = yytext + n; \
1873
yy_hold_char = *yy_c_buf_p; \
1874
*yy_c_buf_p = '\0'; \
1880
/* Internal utility routines. */
1883
#ifdef YY_USE_PROTOS
1884
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
1886
static void yy_flex_strncpy( s1, s2, n )
1893
for ( i = 0; i < n; ++i )
1898
#ifdef YY_NEED_STRLEN
1899
#ifdef YY_USE_PROTOS
1900
static int yy_flex_strlen( yyconst char *s )
1902
static int yy_flex_strlen( s )
1907
for ( n = 0; s[n]; ++n )
1915
#ifdef YY_USE_PROTOS
1916
static void *yy_flex_alloc( yy_size_t size )
1918
static void *yy_flex_alloc( size )
1922
return (void *) malloc( size );
1925
#ifdef YY_USE_PROTOS
1926
static void *yy_flex_realloc( void *ptr, yy_size_t size )
1928
static void *yy_flex_realloc( ptr, size )
1933
/* The cast to (char *) in the following accommodates both
1934
* implementations that use char* generic pointers, and those
1935
* that use void* generic pointers. It works with the latter
1936
* because both ANSI C and C++ allow castless assignment from
1937
* any pointer type to void*, and deal with argument conversions
1938
* as though doing an assignment.
1940
return (void *) realloc( (char *) ptr, size );
1943
#ifdef YY_USE_PROTOS
1944
static void yy_flex_free( void *ptr )
1946
static void yy_flex_free( ptr )
1960
#line 212 "ssl_expr_scan.l"
1963
int yyinput(char *buf, int max_size)
1967
if ((n = MIN(max_size, ssl_expr_info.inputbuf
1968
+ ssl_expr_info.inputlen
1969
- ssl_expr_info.inputptr)) <= 0)
1971
memcpy(buf, ssl_expr_info.inputptr, n);
1972
ssl_expr_info.inputptr += n;