Lines Matching +full:15 +full:- +full:input
17 /* First, we deal with platform-specific or compiler-specific issues. */
32 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
61 #define INT8_MIN (-128)
64 #define INT16_MIN (-32767-1)
67 #define INT32_MIN (-2147483647-1)
107 /* Returned upon end-of-file. */
116 * but we do it the disgusting crufty way forced on us by the ()-less
124 #define YY_START (((yy_start) - 1) / 2)
132 /* Size of default input buffer. */
135 /* On IA-64, the buffer size is 16k, not 8k.
170 /* Return all but the first "n" matched characters back to the input stream. */
179 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
191 char *yy_ch_buf; /* input buffer */
192 char *yy_buf_pos; /* current position in input buffer */
194 /* Size of input buffer in bytes, not including room for EOB
204 /* Whether we "own" the buffer - i.e., we know we created it,
210 /* Whether this is an "interactive" input source; if so, and
211 * if we're using stdio for input, then we want to use getc()
212 * instead of fread(), to make sure we stop fetching input after
226 /* Whether to try to fill the input buffer when we reach the
237 * shouldn't try reading from the input source any more. We might
239 * possible backing-up.
243 * just pointing yyin at a new input file.
250 /* Stack of input buffers. */
314 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
323 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
325 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
352 * corresponding action - sets up yytext.
356 yyleng = (int) (yy_cp - yy_bp); \
361 #define YY_END_OF_BUFFER 15
371 0, 0, 15, 13, 1, 1, 13, 13, 13, 2,
386 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
387 15, 16, 15, 15, 15, 15, 15, 17, 15, 15,
390 14, 14, 15, 15, 15, 15, 15, 15, 15, 15,
391 15, 15, 15, 16, 15, 15, 15, 15, 15, 17,
392 15, 15, 1, 18, 1, 1, 1, 1, 1, 1,
418 0, 14, 32, 15, 25, 27, 49, 49, 49, 27,
434 12, 13, 14, 4, 4, 4, 4, 15, 16, 16,
448 35, 30, 15, 13, 9, 8, 7, 3, 34, 34,
470 /* $OpenBSD: tokenizer.l,v 1.9 2017/06/15 13:48:42 bcallah Exp $ */
508 /* Special case for "unistd.h", since it is non-ANSI. We include it way
522 These are made visible to non-reentrant scanners for convenience. */
578 static int input ( void );
586 /* On IA-64, the buffer size is 16k, not 8k */
601 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
606 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
616 YY_FATAL_ERROR( "input in flex scanner failed" ); \
626 YY_FATAL_ERROR( "input in flex scanner failed" ); \
637 /* No semi-colon after return; correct usage is to write "yyterminate();" -
645 /* Number of entries by which start-condition stack grows. */
657 /* Default declaration of generated scanner - a define so the user can
722 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
860 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
866 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
868 /* We're scanning a new file or input source. It's
875 * back-up) that will match for the new input source.
877 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
878 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
879 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
886 * end-of-buffer state). Contrast this with the test
887 * in input().
889 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
939 * YY_NULL, it'll still work - another
968 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
981 "fatal flex scanner internal error--no action found" );
987 /* yy_get_next_buffer - try to read in a new buffer
990 * EOB_ACT_LAST_MATCH -
991 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
992 * EOB_ACT_END_OF_FILE - end of file
996 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; in yy_get_next_buffer()
1001 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) in yy_get_next_buffer()
1003 "fatal flex scanner internal error--end of buffer missed" ); in yy_get_next_buffer()
1005 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) in yy_get_next_buffer()
1007 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) in yy_get_next_buffer()
1027 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); in yy_get_next_buffer()
1032 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) in yy_get_next_buffer()
1036 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; in yy_get_next_buffer()
1041 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; in yy_get_next_buffer()
1044 { /* Not enough room in the buffer - grow it. */ in yy_get_next_buffer()
1050 (int) ((yy_c_buf_p) - b->yy_ch_buf); in yy_get_next_buffer()
1052 if ( b->yy_is_our_buffer ) in yy_get_next_buffer()
1054 int new_size = b->yy_buf_size * 2; in yy_get_next_buffer()
1057 b->yy_buf_size += b->yy_buf_size / 8; in yy_get_next_buffer()
1059 b->yy_buf_size *= 2; in yy_get_next_buffer()
1061 b->yy_ch_buf = (char *) in yy_get_next_buffer()
1063 yyrealloc( (void *) b->yy_ch_buf, in yy_get_next_buffer()
1064 (yy_size_t) (b->yy_buf_size + 2) ); in yy_get_next_buffer()
1068 b->yy_ch_buf = NULL; in yy_get_next_buffer()
1070 if ( ! b->yy_ch_buf ) in yy_get_next_buffer()
1072 "fatal error - scanner input buffer overflow" ); in yy_get_next_buffer()
1074 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; in yy_get_next_buffer()
1076 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - in yy_get_next_buffer()
1077 number_to_move - 1; in yy_get_next_buffer()
1085 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), in yy_get_next_buffer()
1088 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); in yy_get_next_buffer()
1102 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = in yy_get_next_buffer()
1110 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { in yy_get_next_buffer()
1113 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( in yy_get_next_buffer()
1114 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); in yy_get_next_buffer()
1115 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) in yy_get_next_buffer()
1117 /* "- 2" to take care of EOB's */ in yy_get_next_buffer()
1118 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); in yy_get_next_buffer()
1122 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; in yy_get_next_buffer()
1123 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; in yy_get_next_buffer()
1125 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; in yy_get_next_buffer()
1130 /* yy_get_previous_state - get the state just before the EOB char was reached */
1159 /* yy_try_NUL_trans - try to make a transition on the NUL character
1195 static int input (void) in yyinput()
1209 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) in yyinput()
1214 { /* need more input */ in yyinput()
1215 int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); in yyinput()
1225 * proceeding. But for input(), in yyinput()
1246 return input(); in yyinput()
1257 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ in yyinput()
1265 /** Immediately switch to a different input stream.
1283 /** Switch to a different input buffer.
1284 * @param new_buffer The new input buffer.
1303 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); in yy_switch_to_buffer()
1304 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); in yy_switch_to_buffer()
1320 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; in yy_load_buffer_state()
1321 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; in yy_load_buffer_state()
1322 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; in yy_load_buffer_state()
1326 /** Allocate and initialize an input buffer state.
1340 b->yy_buf_size = size; in yy_create_buffer()
1343 * we need to put in 2 end-of-buffer characters. in yy_create_buffer()
1345 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); in yy_create_buffer()
1346 if ( ! b->yy_ch_buf ) in yy_create_buffer()
1349 b->yy_is_our_buffer = 1; in yy_create_buffer()
1369 if ( b->yy_is_our_buffer ) in yy_delete_buffer()
1370 yyfree( (void *) b->yy_ch_buf ); in yy_delete_buffer()
1386 b->yy_input_file = file; in yy_init_buffer()
1387 b->yy_fill_buffer = 1; in yy_init_buffer()
1394 b->yy_bs_lineno = 1; in yy_init_buffer()
1395 b->yy_bs_column = 0; in yy_init_buffer()
1398 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; in yy_init_buffer()
1412 b->yy_n_chars = 0; in yy_flush_buffer()
1414 /* We always need two end-of-buffer characters. The first causes in yy_flush_buffer()
1415 * a transition to the end-of-buffer state. The second causes in yy_flush_buffer()
1418 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; in yy_flush_buffer()
1419 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; in yy_flush_buffer()
1421 b->yy_buf_pos = &b->yy_ch_buf[0]; in yy_flush_buffer()
1423 b->yy_at_bol = 1; in yy_flush_buffer()
1424 b->yy_buffer_status = YY_BUFFER_NEW; in yy_flush_buffer()
1448 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); in yypush_buffer_state()
1449 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); in yypush_buffer_state()
1474 --(yy_buffer_stack_top); in yypop_buffer_state()
1509 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ in yyensure_buffer_stack()
1528 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1539 base[size-2] != YY_END_OF_BUFFER_CHAR || in yy_scan_buffer()
1540 base[size-1] != YY_END_OF_BUFFER_CHAR ) in yy_scan_buffer()
1548 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ in yy_scan_buffer()
1549 b->yy_buf_pos = b->yy_ch_buf = base; in yy_scan_buffer()
1550 b->yy_is_our_buffer = 0; in yy_scan_buffer()
1551 b->yy_input_file = NULL; in yy_scan_buffer()
1552 b->yy_n_chars = b->yy_buf_size; in yy_scan_buffer()
1553 b->yy_is_interactive = 0; in yy_scan_buffer()
1554 b->yy_at_bol = 1; in yy_scan_buffer()
1555 b->yy_fill_buffer = 0; in yy_scan_buffer()
1556 b->yy_buffer_status = YY_BUFFER_NEW; in yy_scan_buffer()
1563 /** Setup the input buffer state to scan a string. The next call to yylex() will
1565 * @param yystr a NUL-terminated string to scan
1577 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1609 b->yy_is_our_buffer = 1; in yy_scan_bytes()
1652 /** Get the input stream.
1695 /** Set the input stream. This does not discard the current
1696 * input buffer.
1723 /* Initialization is the same as for the non-reentrant scanner. in yy_init_globals()
1749 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
1764 /* Reset the globals. This is important in a non-reentrant scanner so the next time in yylex_destroy()
1854 d = *next - '0'; in parse_radix()
1856 d = *next - 'a' + 10; in parse_radix()
1859 d = *next - 'A' + 10; in parse_radix()