
#include <stdio.h>#include <string.h>#include <errno.h>#include <stdlib.h>#include "path_data_parser.h"#include <cstring>#include <papyrus/path.h>#include <unistd.h>
Defines | |
| #define | YY_INT_ALIGNED short int |
| #define | yy_create_buffer path_data__create_buffer |
| #define | yy_delete_buffer path_data__delete_buffer |
| #define | yy_flex_debug path_data__flex_debug |
| #define | yy_init_buffer path_data__init_buffer |
| #define | yy_flush_buffer path_data__flush_buffer |
| #define | yy_load_buffer_state path_data__load_buffer_state |
| #define | yy_switch_to_buffer path_data__switch_to_buffer |
| #define | yyin path_data_in |
| #define | yyleng path_data_leng |
| #define | yylex path_data_lex |
| #define | yylineno path_data_lineno |
| #define | yyout path_data_out |
| #define | yyrestart path_data_restart |
| #define | yytext path_data_text |
| #define | yywrap path_data_wrap |
| #define | yyalloc path_data_alloc |
| #define | yyrealloc path_data_realloc |
| #define | yyfree path_data_free |
| #define | FLEX_SCANNER |
| #define | YY_FLEX_MAJOR_VERSION 2 |
| #define | YY_FLEX_MINOR_VERSION 5 |
| #define | YY_FLEX_SUBMINOR_VERSION 35 |
| #define | FLEX_BETA |
| #define | INT8_MIN (-128) |
| #define | INT16_MIN (-32767-1) |
| #define | INT32_MIN (-2147483647-1) |
| #define | INT8_MAX (127) |
| #define | INT16_MAX (32767) |
| #define | INT32_MAX (2147483647) |
| #define | UINT8_MAX (255U) |
| #define | UINT16_MAX (65535U) |
| #define | UINT32_MAX (4294967295U) |
| #define | yyconst |
| #define | YY_NULL 0 |
| #define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
| #define | BEGIN (yy_start) = 1 + 2 * |
| #define | YY_START (((yy_start) - 1) / 2) |
| #define | YYSTATE YY_START |
| #define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| #define | YY_NEW_FILE path_data_restart(path_data_in ) |
| #define | YY_END_OF_BUFFER_CHAR 0 |
| #define | YY_BUF_SIZE 16384 |
| #define | YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define | EOB_ACT_CONTINUE_SCAN 0 |
| #define | EOB_ACT_END_OF_FILE 1 |
| #define | EOB_ACT_LAST_MATCH 2 |
| #define | YY_LESS_LINENO(n) |
| #define | yyless(n) |
| #define | unput(c) yyunput( c, (yytext_ptr) ) |
| #define | YY_BUFFER_NEW 0 |
| #define | YY_BUFFER_NORMAL 1 |
| #define | YY_BUFFER_EOF_PENDING 2 |
| #define | YY_CURRENT_BUFFER |
| #define | YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define | YY_FLUSH_BUFFER path_data__flush_buffer(YY_CURRENT_BUFFER ) |
| #define | yy_new_buffer path_data__create_buffer |
| #define | yy_set_interactive(is_interactive) |
| #define | yy_set_bol(at_bol) |
| #define | YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define | path_data_wrap(n) 1 |
| #define | YY_SKIP_YYWRAP |
| #define | yytext_ptr path_data_text |
| #define | YY_DO_BEFORE_ACTION |
| #define | YY_NUM_RULES 22 |
| #define | YY_END_OF_BUFFER 23 |
| #define | REJECT reject_used_but_not_detected |
| #define | yymore() yymore_used_but_not_detected |
| #define | YY_MORE_ADJ 0 |
| #define | YY_RESTORE_YY_MORE_OFFSET |
| #define | INITIAL 0 |
| #define | YY_EXTRA_TYPE void * |
| #define | YY_READ_BUF_SIZE 8192 |
| #define | ECHO do { if (fwrite( path_data_text, path_data_leng, 1, path_data_out )) {} } while (0) |
| #define | YY_INPUT(buf, result, max_size) |
| #define | yyterminate() return YY_NULL |
| #define | YY_START_STACK_INCR 25 |
| #define | YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
| #define | YY_DECL_IS_OURS 1 |
| #define | YY_DECL int path_data_lex (void) |
| #define | YY_BREAK break; |
| #define | YY_RULE_SETUP YY_USER_ACTION |
| #define | YY_EXIT_FAILURE 2 |
| #define | yyless(n) |
| #define | YYTABLES_NAME "yytables" |
Typedefs | |
| typedef signed char | flex_int8_t |
| typedef short int | flex_int16_t |
| typedef int | flex_int32_t |
| typedef unsigned char | flex_uint8_t |
| typedef unsigned short int | flex_uint16_t |
| typedef unsigned int | flex_uint32_t |
| typedef struct yy_buffer_state * | YY_BUFFER_STATE |
| typedef size_t | yy_size_t |
| typedef unsigned char | YY_CHAR |
| typedef int | yy_state_type |
Functions | |
| void | path_data_restart (FILE *input_file) |
| Immediately switch to a different input stream. | |
| void | path_data__switch_to_buffer (YY_BUFFER_STATE new_buffer) |
| Switch to a different input buffer. | |
| YY_BUFFER_STATE | path_data__create_buffer (FILE *file, int size) |
| Allocate and initialize an input buffer state. | |
| void | path_data__delete_buffer (YY_BUFFER_STATE b) |
| Destroy the buffer. | |
| void | path_data__flush_buffer (YY_BUFFER_STATE b) |
| Discard all buffered characters. | |
| void | path_data_push_buffer_state (YY_BUFFER_STATE new_buffer) |
| Pushes the new state onto the stack. | |
| void | path_data_pop_buffer_state (void) |
| Removes and deletes the top of the stack, if present. | |
| static void | path_data_ensure_buffer_stack (void) |
| static void | path_data__load_buffer_state (void) |
| static void | path_data__init_buffer (YY_BUFFER_STATE b, FILE *file) |
| YY_BUFFER_STATE | path_data__scan_buffer (char *base, yy_size_t size) |
| Setup the input buffer state to scan directly from a user-specified character buffer. | |
| YY_BUFFER_STATE | path_data__scan_string (yyconst char *yystr) |
| Setup the input buffer state to scan a string. | |
| YY_BUFFER_STATE | path_data__scan_bytes (yyconst char *yybytes, int _yybytes_len) |
| Setup the input buffer state to scan the given bytes. | |
| void * | path_data_alloc (yy_size_t) |
| void * | path_data_realloc (void *, yy_size_t) |
| void | path_data_free (void *) |
| static yy_state_type | yy_get_previous_state (void) |
| static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
| static int | yy_get_next_buffer (void) |
| static void | yy_fatal_error (yyconst char msg[]) |
| int | path_data_lex (void) |
| void | init_path_data_lexer (const char *src) |
| void | finalize_path_data_lexer () |
| static int | yy_init_globals (void) |
| int | path_data_lex_destroy (void) |
| int | path_data_get_debug (void) |
| void | path_data_set_debug (int debug_flag) |
| YY_EXTRA_TYPE | path_data_get_extra (void) |
| void | path_data_set_extra (YY_EXTRA_TYPE user_defined) |
| FILE * | path_data_get_in (void) |
| Get the input stream. | |
| void | path_data_set_in (FILE *in_str) |
| Set the input stream. | |
| FILE * | path_data_get_out (void) |
| Get the output stream. | |
| void | path_data_set_out (FILE *out_str) |
| int | path_data_get_leng (void) |
| Get the length of the current token. | |
| char * | path_data_get_text (void) |
| Get the current token. | |
| int | path_data_get_lineno (void) |
| Get the current line number. | |
| void | path_data_set_lineno (int line_number) |
| Set the current line number. | |
| static void | yyunput (int c, char *buf_ptr) |
| static int | input (void) |
| if (!(yy_init)) | |
| while (1) | |
| static void | yyunput (int c, register char *yy_bp) |
| int | isatty (int) |
| static void | yy_fatal_error (yyconst char *msg) |
Variables | |
| int | path_data_leng |
| FILE * | path_data_in = (FILE *) 0 |
| FILE * | path_data_out = (FILE *) 0 |
| static size_t | yy_buffer_stack_top = 0 |
| index of top of stack. | |
| static size_t | yy_buffer_stack_max = 0 |
| capacity of stack. | |
| static YY_BUFFER_STATE * | yy_buffer_stack = 0 |
| Stack as an array. | |
| static char | yy_hold_char |
| static int | yy_n_chars |
| static char * | yy_c_buf_p = (char *) 0 |
| static int | yy_init = 0 |
| static int | yy_start = 0 |
| static int | yy_did_buffer_switch_on_eof |
| int | path_data_lineno = 1 |
| char * | path_data_text |
| static yyconst flex_int16_t | yy_accept [31] |
| static yyconst flex_int32_t | yy_ec [256] |
| static yyconst flex_int32_t | yy_meta [23] |
| static yyconst flex_int16_t | yy_base [31] |
| static yyconst flex_int16_t | yy_def [31] |
| static yyconst flex_int16_t | yy_nxt [56] |
| static yyconst flex_int16_t | yy_chk [56] |
| static yy_state_type | yy_last_accepting_state |
| static char * | yy_last_accepting_cpos |
| int | path_data__flex_debug = 0 |
| static YY_BUFFER_STATE | buffer_state |
| YY_DECL register yy_state_type | yy_current_state |
| The main scanner function which does all the work. | |
| register char * | yy_cp |
| register char * | yy_bp |
| register int | yy_act |
| #define BEGIN (yy_start) = 1 + 2 * |
| #define ECHO do { if (fwrite( path_data_text, path_data_leng, 1, path_data_out )) {} } while (0) |
Referenced by while().
| #define EOB_ACT_CONTINUE_SCAN 0 |
Referenced by input(), while(), and yy_get_next_buffer().
| #define EOB_ACT_END_OF_FILE 1 |
Referenced by input(), while(), and yy_get_next_buffer().
| #define EOB_ACT_LAST_MATCH 2 |
Referenced by input(), while(), and yy_get_next_buffer().
| #define FLEX_BETA |
| #define FLEX_SCANNER |
| #define INITIAL 0 |
Referenced by while().
| #define INT16_MAX (32767) |
| #define INT16_MIN (-32767-1) |
| #define INT32_MAX (2147483647) |
| #define INT32_MIN (-2147483647-1) |
| #define INT8_MAX (127) |
| #define INT8_MIN (-128) |
| #define REJECT reject_used_but_not_detected |
| #define UINT16_MAX (65535U) |
| #define UINT32_MAX (4294967295U) |
| #define UINT8_MAX (255U) |
| #define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
| #define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| #define YY_BREAK break; |
Referenced by while().
| #define YY_BUF_SIZE 16384 |
Referenced by if(), and path_data_restart().
| #define YY_BUFFER_EOF_PENDING 2 |
Referenced by yy_get_next_buffer().
| #define YY_BUFFER_NEW 0 |
Referenced by path_data__flush_buffer(), path_data__scan_buffer(), and while().
| #define YY_BUFFER_NORMAL 1 |
Referenced by while().
| #define yy_create_buffer path_data__create_buffer |
| #define YY_CURRENT_BUFFER |
( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL)
Referenced by if(), path_data__delete_buffer(), path_data__flush_buffer(), path_data__init_buffer(), path_data__switch_to_buffer(), path_data_lex_destroy(), path_data_pop_buffer_state(), path_data_push_buffer_state(), path_data_restart(), and yy_get_next_buffer().
| #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
| #define YY_DECL int path_data_lex (void) |
| #define YY_DECL_IS_OURS 1 |
| #define yy_delete_buffer path_data__delete_buffer |
| #define YY_DO_BEFORE_ACTION |
(yytext_ptr) = yy_bp; \ path_data_leng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp;
Referenced by while().
| #define YY_END_OF_BUFFER 23 |
Referenced by while().
| #define YY_END_OF_BUFFER_CHAR 0 |
Referenced by input(), path_data__flush_buffer(), path_data__scan_buffer(), path_data__scan_bytes(), and yy_get_next_buffer().
| #define YY_EXIT_FAILURE 2 |
Referenced by yy_fatal_error().
| #define YY_EXTRA_TYPE void * |
| #define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
| #define yy_flex_debug path_data__flex_debug |
| #define YY_FLEX_MAJOR_VERSION 2 |
| #define YY_FLEX_MINOR_VERSION 5 |
| #define YY_FLEX_SUBMINOR_VERSION 35 |
| #define YY_FLUSH_BUFFER path_data__flush_buffer(YY_CURRENT_BUFFER ) |
| #define yy_flush_buffer path_data__flush_buffer |
| #define yy_init_buffer path_data__init_buffer |
| #define YY_INPUT | ( | buf, | |||
| result, | |||||
| max_size | ) |
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ unsigned n; \ for ( n = 0; n < max_size && \ (c = getc( path_data_in )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( path_data_in ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, path_data_in))==0 && ferror(path_data_in)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(path_data_in); \ } \ }\ \
Referenced by yy_get_next_buffer().
| #define YY_INT_ALIGNED short int |
| #define YY_LESS_LINENO | ( | n | ) |
| #define yy_load_buffer_state path_data__load_buffer_state |
| #define YY_MORE_ADJ 0 |
Referenced by while(), yy_get_next_buffer(), and yy_get_previous_state().
| #define yy_new_buffer path_data__create_buffer |
| #define YY_NEW_FILE path_data_restart(path_data_in ) |
| #define YY_NULL 0 |
| #define YY_NUM_RULES 22 |
| #define YY_READ_BUF_SIZE 8192 |
Referenced by yy_get_next_buffer().
| #define YY_RESTORE_YY_MORE_OFFSET |
Referenced by while().
| #define YY_RULE_SETUP YY_USER_ACTION |
Referenced by while().
| #define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Referenced by while(), and yy_get_previous_state().
| #define yy_set_bol | ( | at_bol | ) |
{ \
if ( ! YY_CURRENT_BUFFER ){\
path_data_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
path_data__create_buffer(path_data_in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
| #define yy_set_interactive | ( | is_interactive | ) |
{ \
if ( ! YY_CURRENT_BUFFER ){ \
path_data_ensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
path_data__create_buffer(path_data_in,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
| #define YY_SKIP_YYWRAP |
| #define YY_START_STACK_INCR 25 |
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| #define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Referenced by while().
| #define yy_switch_to_buffer path_data__switch_to_buffer |
| #define yyalloc path_data_alloc |
Referenced by yyparse().
| #define yyconst |
| #define yyfree path_data_free |
| #define yyin path_data_in |
| #define yyleng path_data_leng |
| #define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up path_data_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ path_data_text[path_data_leng] = (yy_hold_char); \ (yy_c_buf_p) = path_data_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ path_data_leng = yyless_macro_arg; \ } \ while ( 0 )
| #define yyless | ( | n | ) |
do \ { \ /* Undo effects of setting up path_data_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up path_data_text again */ \ } \ while ( 0 )
| #define yylex path_data_lex |
| #define yylineno path_data_lineno |
| #define yymore | ( | ) | yymore_used_but_not_detected |
| #define yyout path_data_out |
| #define yyrealloc path_data_realloc |
| #define yyrestart path_data_restart |
| #define YYSTATE YY_START |
| #define YYTABLES_NAME "yytables" |
| #define yyterminate | ( | ) | return YY_NULL |
Referenced by while().
| #define yytext path_data_text |
| #define yytext_ptr path_data_text |
Referenced by input(), path_data__load_buffer_state(), while(), yy_get_next_buffer(), yy_get_previous_state(), and yyunput().
| #define yywrap path_data_wrap |
| typedef short int flex_int16_t |
| typedef int flex_int32_t |
| typedef signed char flex_int8_t |
| typedef unsigned short int flex_uint16_t |
| typedef unsigned int flex_uint32_t |
| typedef unsigned char flex_uint8_t |
| typedef struct yy_buffer_state* YY_BUFFER_STATE |
| typedef unsigned char YY_CHAR |
| typedef size_t yy_size_t |
| typedef int yy_state_type |
| void finalize_path_data_lexer | ( | ) |
References path_data__delete_buffer().
Referenced by Papyrus::path_data_parser().
| if | ( | ! | yy_init | ) |
References path_data__create_buffer(), path_data__load_buffer_state(), path_data_ensure_buffer_stack(), path_data_in, path_data_out, YY_BUF_SIZE, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init, and yy_start.
Referenced by Papyrus::Group::lookup_paint(), and yyunput().
| void init_path_data_lexer | ( | const char * | src | ) |
References path_data__scan_string().
Referenced by Papyrus::path_data_parser().
| static int input | ( | void | ) | [static] |
| int isatty | ( | int | ) |
Referenced by path_data__init_buffer().
| YY_BUFFER_STATE path_data__create_buffer | ( | FILE * | file, | |
| int | size | |||
| ) |
Allocate and initialize an input buffer state.
| file | A readable stream. | |
| size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE. |
References path_data__init_buffer(), path_data_alloc(), and YY_FATAL_ERROR.
Referenced by if(), and path_data_restart().
| void path_data__delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
| b | a buffer created with path_data__create_buffer() |
References path_data_free(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by finalize_path_data_lexer(), path_data_lex_destroy(), and path_data_pop_buffer_state().
| void path_data__flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters.
On the next scan, YY_INPUT will be called.
| b | the buffer state to be flushed, usually YY_CURRENT_BUFFER. |
References path_data__load_buffer_state(), YY_BUFFER_NEW, YY_CURRENT_BUFFER, and YY_END_OF_BUFFER_CHAR.
Referenced by path_data__init_buffer().
| static void path_data__init_buffer | ( | YY_BUFFER_STATE | b, | |
| FILE * | file | |||
| ) | [static] |
References isatty(), path_data__flush_buffer(), and YY_CURRENT_BUFFER.
Referenced by path_data__create_buffer(), and path_data_restart().
| static void path_data__load_buffer_state | ( | void | ) | [static] |
References path_data_in, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, and yytext_ptr.
Referenced by if(), path_data__flush_buffer(), path_data__switch_to_buffer(), path_data_pop_buffer_state(), path_data_push_buffer_state(), and path_data_restart().
| YY_BUFFER_STATE path_data__scan_buffer | ( | char * | base, | |
| yy_size_t | size | |||
| ) |
Setup the input buffer state to scan directly from a user-specified character buffer.
| base | the character buffer | |
| size | the size in bytes of the character buffer |
References path_data__switch_to_buffer(), path_data_alloc(), YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.
Referenced by path_data__scan_bytes().
| YY_BUFFER_STATE path_data__scan_bytes | ( | yyconst char * | yybytes, | |
| int | _yybytes_len | |||
| ) |
Setup the input buffer state to scan the given bytes.
The next call to path_data_lex() will scan from a copy of bytes.
| bytes | the byte buffer to scan | |
| len | the number of bytes in the buffer pointed to by bytes. |
References path_data__scan_buffer(), path_data_alloc(), YY_END_OF_BUFFER_CHAR, and YY_FATAL_ERROR.
Referenced by path_data__scan_string().
| YY_BUFFER_STATE path_data__scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string.
The next call to path_data_lex() will scan from a copy of str.
| yystr | a NUL-terminated string to scan |
References path_data__scan_bytes().
Referenced by init_path_data_lexer().
| void path_data__switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
| new_buffer | The new input buffer. |
References path_data__load_buffer_state(), path_data_ensure_buffer_stack(), yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.
Referenced by path_data__scan_buffer().
| void * path_data_alloc | ( | yy_size_t | size | ) |
| static void path_data_ensure_buffer_stack | ( | void | ) | [static] |
References path_data_alloc(), path_data_realloc(), yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, and YY_FATAL_ERROR.
Referenced by if(), path_data__switch_to_buffer(), path_data_push_buffer_state(), and path_data_restart().
| void path_data_free | ( | void * | ptr | ) |
Referenced by path_data__delete_buffer(), and path_data_lex_destroy().
| int path_data_get_debug | ( | void | ) |
| YY_EXTRA_TYPE path_data_get_extra | ( | void | ) |
| FILE * path_data_get_in | ( | void | ) |
Get the input stream.
References path_data_in.
| int path_data_get_leng | ( | void | ) |
Get the length of the current token.
References path_data_leng.
| int path_data_get_lineno | ( | void | ) |
Get the current line number.
| FILE * path_data_get_out | ( | void | ) |
Get the output stream.
References path_data_out.
| char * path_data_get_text | ( | void | ) |
Get the current token.
| int path_data_lex | ( | void | ) |
| int path_data_lex_destroy | ( | void | ) |
| void path_data_pop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present.
The next element becomes the new top.
References path_data__delete_buffer(), path_data__load_buffer_state(), yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_did_buffer_switch_on_eof.
Referenced by path_data_lex_destroy().
| void path_data_push_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
Pushes the new state onto the stack.
The new state becomes the current state. This function will allocate the stack if necessary.
| new_buffer | The new state. |
References path_data__load_buffer_state(), path_data_ensure_buffer_stack(), yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.
| void * path_data_realloc | ( | void * | ptr, | |
| yy_size_t | size | |||
| ) |
Referenced by path_data_ensure_buffer_stack(), and yy_get_next_buffer().
| void path_data_restart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
| input_file | A readable stream. |
INITIAL . References path_data__create_buffer(), path_data__init_buffer(), path_data__load_buffer_state(), path_data_ensure_buffer_stack(), path_data_in, YY_BUF_SIZE, YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.
Referenced by input(), and yy_get_next_buffer().
| void path_data_set_debug | ( | int | debug_flag | ) |
| void path_data_set_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
| void path_data_set_in | ( | FILE * | in_str | ) |
Set the input stream.
This does not discard the current input buffer.
| in_str | A readable stream. |
References path_data_in.
| void path_data_set_lineno | ( | int | line_number | ) |
Set the current line number.
| line_number |
| void path_data_set_out | ( | FILE * | out_str | ) |
References path_data_out.
| while | ( | 1 | ) |
trim whitespace
References CLOSEPATH, CURVETO, DIGIT_SEQUENCE, ECHO, ELLIPTICAL_ARC, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EXPONENT, FRACTIONAL_CONSTANT, HORIZONTAL_LINETO, INITIAL, LINETO, MOVETO, path_data_in, path_data_lval, path_data_wrap, QUADRATIC_BEZIER_CURVETO, REL_CURVETO, REL_HORIZONTAL_LINETO, REL_LINETO, REL_MOVETO, REL_SMOOTH_CURVETO, REL_VERTICAL_LINETO, SIGN, SMOOTH_CURVETO, SMOOTH_QUADRATIC_BEZIER_CURVETO, VERTICAL_LINETO, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyterminate, and yytext_ptr.
| static void yy_fatal_error | ( | yyconst char * | msg | ) | [static] |
References YY_EXIT_FAILURE.
| static void yy_fatal_error | ( | yyconst char | msg[] | ) | [static] |
| static int yy_get_next_buffer | ( | void | ) | [static] |
References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, path_data_in, path_data_realloc(), path_data_restart(), YY_BUFFER_EOF_PENDING, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, and yytext_ptr.
| static yy_state_type yy_get_previous_state | ( | void | ) | [static] |
References yy_c_buf_p, YY_MORE_ADJ, YY_SC_TO_UI, yy_start, and yytext_ptr.
Referenced by while().
| static int yy_init_globals | ( | void | ) | [static] |
References path_data_in, path_data_out, yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, and yy_start.
Referenced by path_data_lex_destroy().
| static yy_state_type yy_try_NUL_trans | ( | yy_state_type | current_state | ) | [static] |
References yy_c_buf_p.
Referenced by while().
| static void yyunput | ( | int | c, | |
| register char * | yy_bp | |||
| ) | [static] |
References if(), yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, and yytext_ptr.
| static void yyunput | ( | int | c, | |
| char * | buf_ptr | |||
| ) | [static] |
YY_BUFFER_STATE buffer_state [static] |
| int path_data__flex_debug = 0 |
| FILE * path_data_in = (FILE *) 0 |
Referenced by if(), input(), path_data__load_buffer_state(), path_data_get_in(), path_data_restart(), path_data_set_in(), while(), yy_get_next_buffer(), and yy_init_globals().
| int path_data_leng |
Referenced by path_data_get_leng().
| int path_data_lineno = 1 |
| FILE * path_data_out = (FILE *) 0 |
Referenced by if(), path_data_get_out(), path_data_set_out(), and yy_init_globals().
| char * path_data_text |
yyconst flex_int16_t yy_accept[31] [static] |
{ 0,
21, 21, 23, 22, 21, 18, 19, 20, 16, 10,
17, 6, 4, 1, 14, 12, 15, 8, 3, 11,
7, 5, 2, 13, 9, 21, 19, 19, 20, 0
}
| register int yy_act |
yyconst flex_int16_t yy_base[31] [static] |
{ 0,
0, 0, 32, 33, 29, 33, 25, 19, 33, 33,
33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
33, 33, 33, 33, 33, 27, 23, 22, 21, 33
}
| register char * yy_bp |
YY_BUFFER_STATE* yy_buffer_stack = 0 [static] |
Stack as an array.
Referenced by path_data_ensure_buffer_stack(), path_data_lex_destroy(), and yy_init_globals().
size_t yy_buffer_stack_max = 0 [static] |
capacity of stack.
Referenced by path_data_ensure_buffer_stack(), and yy_init_globals().
size_t yy_buffer_stack_top = 0 [static] |
index of top of stack.
Referenced by path_data_ensure_buffer_stack(), path_data_pop_buffer_state(), path_data_push_buffer_state(), and yy_init_globals().
char* yy_c_buf_p = (char *) 0 [static] |
yyconst flex_int16_t yy_chk[56] [static] |
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 8, 8, 29, 29, 28, 27, 26, 7,
5, 3, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30
}
| register char* yy_cp |
| YY_DECL register yy_state_type yy_current_state |
The main scanner function which does all the work.
yyconst flex_int16_t yy_def[31] [static] |
{ 0,
30, 1, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 0
}
int yy_did_buffer_switch_on_eof [static] |
Referenced by input(), path_data__switch_to_buffer(), path_data_pop_buffer_state(), path_data_push_buffer_state(), and while().
yyconst flex_int32_t yy_ec[256] [static] |
char yy_hold_char [static] |
Referenced by input(), path_data__load_buffer_state(), path_data__switch_to_buffer(), path_data_push_buffer_state(), while(), and yyunput().
int yy_init = 0 [static] |
Referenced by if(), and yy_init_globals().
char* yy_last_accepting_cpos [static] |
yy_state_type yy_last_accepting_state [static] |
yyconst flex_int32_t yy_meta[23] [static] |
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1
}
int yy_n_chars [static] |
yyconst flex_int16_t yy_nxt[56] [static] |
{ 0,
4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 28, 29, 28, 29, 27, 27, 26, 27,
26, 30, 3, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 30
}
int yy_start = 0 [static] |
Referenced by if(), while(), yy_get_previous_state(), and yy_init_globals().
1.6.1