ReactOS  0.4.15-dev-494-g1d8c567
parser.yy.h File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for parser.yy.h:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 

Macros

#define parser_IN_HEADER   1
 
#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   37
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#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_BUF_SIZE   16384
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define yytext_ptr   parser_text
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_START_STACK_INCR   25
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int parser_lex (void)
 

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_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 

Functions

void parser_restart (FILE *input_file)
 
void parser__switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE parser__create_buffer (FILE *file, int size)
 
void parser__delete_buffer (YY_BUFFER_STATE b)
 
void parser__flush_buffer (YY_BUFFER_STATE b)
 
void parser_push_buffer_state (YY_BUFFER_STATE new_buffer)
 
void parser_pop_buffer_state (void)
 
YY_BUFFER_STATE parser__scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE parser__scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE parser__scan_bytes (yyconst char *bytes, yy_size_t len)
 
voidparser_alloc (yy_size_t)
 
voidparser_realloc (void *, yy_size_t)
 
void parser_free (void *)
 
int parser_lex_destroy (void)
 
int parser_get_debug (void)
 
void parser_set_debug (int debug_flag)
 
YY_EXTRA_TYPE parser_get_extra (void)
 
void parser_set_extra (YY_EXTRA_TYPE user_defined)
 
FILEparser_get_in (void)
 
void parser_set_in (FILE *in_str)
 
FILEparser_get_out (void)
 
void parser_set_out (FILE *out_str)
 
yy_size_t parser_get_leng (void)
 
charparser_get_text (void)
 
int parser_get_lineno (void)
 
void parser_set_lineno (int line_number)
 
int parser_wrap (void)
 
int parser_lex (void)
 

Variables

yy_size_t parser_leng
 
FILEparser_in
 
FILEparser_out
 
int parser_lineno
 
charparser_text
 

Macro Definition Documentation

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 18 of file parser.yy.h.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 13 of file parser.yy.h.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 34 of file parser.yy.h.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 76 of file parser.yy.h.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 67 of file parser.yy.h.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 79 of file parser.yy.h.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 70 of file parser.yy.h.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 73 of file parser.yy.h.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 64 of file parser.yy.h.

◆ parser_IN_HEADER

#define parser_IN_HEADER   1

Definition at line 3 of file parser.yy.h.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 85 of file parser.yy.h.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 88 of file parser.yy.h.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 82 of file parser.yy.h.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 118 of file parser.yy.h.

◆ YY_DECL

#define YY_DECL   int parser_lex (void)

Definition at line 303 of file parser.yy.h.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 299 of file parser.yy.h.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 229 of file parser.yy.h.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 14 of file parser.yy.h.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 15 of file parser.yy.h.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   37

Definition at line 16 of file parser.yy.h.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 9 of file parser.yy.h.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 287 of file parser.yy.h.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 292 of file parser.yy.h.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 136 of file parser.yy.h.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 122 of file parser.yy.h.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 127 of file parser.yy.h.

◆ yyconst

#define yyconst

Definition at line 113 of file parser.yy.h.

◆ yytext_ptr

#define yytext_ptr   parser_text

Definition at line 207 of file parser.yy.h.

Typedef Documentation

◆ flex_int16_t

Definition at line 56 of file parser.yy.h.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 57 of file parser.yy.h.

◆ flex_int8_t

Definition at line 55 of file parser.yy.h.

◆ flex_uint16_t

Definition at line 59 of file parser.yy.h.

◆ flex_uint32_t

Definition at line 60 of file parser.yy.h.

◆ flex_uint8_t

Definition at line 58 of file parser.yy.h.

◆ YY_BUFFER_STATE

Definition at line 123 of file parser.yy.h.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 128 of file parser.yy.h.

Function Documentation

◆ parser__create_buffer()

YY_BUFFER_STATE parser__create_buffer ( FILE file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1850 of file parser.yy.c.

1851 {
1853 
1854  b = (YY_BUFFER_STATE) parser_alloc(sizeof( struct yy_buffer_state ) );
1855  if ( ! b )
1856  YY_FATAL_ERROR( "out of dynamic memory in parser__create_buffer()" );
1857 
1858  b->yy_buf_size = size;
1859 
1860  /* yy_ch_buf has to be 2 characters longer than the size given because
1861  * we need to put in 2 end-of-buffer characters.
1862  */
1863  b->yy_ch_buf = (char *) parser_alloc(b->yy_buf_size + 2 );
1864  if ( ! b->yy_ch_buf )
1865  YY_FATAL_ERROR( "out of dynamic memory in parser__create_buffer()" );
1866 
1867  b->yy_is_our_buffer = 1;
1868 
1870 
1871  return b;
1872 }
static void parser__init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: parser.yy.c:1897
struct yy_buffer_state * YY_BUFFER_STATE
Definition: parser.yy.c:173
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizeiptr size
Definition: glext.h:5919
void * parser_alloc(yy_size_t)
Definition: parser.yy.c:2353
#define YY_FATAL_ERROR(msg)
Definition: parser.yy.c:973
Definition: fci.c:126

Referenced by do_import(), if(), parser_restart(), and switch_to_acf().

◆ parser__delete_buffer()

void parser__delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with parser__create_buffer()

Definition at line 1878 of file parser.yy.c.

1879 {
1880 
1881  if ( ! b )
1882  return;
1883 
1884  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1886 
1887  if ( b->yy_is_our_buffer )
1888  parser_free((void *) b->yy_ch_buf );
1889 
1890  parser_free((void *) b );
1891 }
void parser_free(void *)
Definition: parser.yy.c:2370
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
struct yy_buffer_state * YY_BUFFER_STATE
Definition: parser.yy.c:173
GLboolean GLboolean GLboolean b
Definition: glext.h:6204

Referenced by parser_lex_destroy(), parser_pop_buffer_state(), and pop_import().

◆ parser__flush_buffer()

void parser__flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1925 of file parser.yy.c.

1926 {
1927  if ( ! b )
1928  return;
1929 
1930  b->yy_n_chars = 0;
1931 
1932  /* We always need two end-of-buffer characters. The first causes
1933  * a transition to the end-of-buffer state. The second causes
1934  * a jam in that state.
1935  */
1936  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1937  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1938 
1939  b->yy_buf_pos = &b->yy_ch_buf[0];
1940 
1941  b->yy_at_bol = 1;
1942  b->yy_buffer_status = YY_BUFFER_NEW;
1943 
1944  if ( b == YY_CURRENT_BUFFER )
1946 }
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_END_OF_BUFFER_CHAR
Definition: parser.yy.c:160
static void parser__load_buffer_state(void)
Definition: parser.yy.c:1836
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define YY_BUFFER_NEW
Definition: parser.yy.c:255

Referenced by parser__init_buffer().

◆ parser__scan_buffer()

YY_BUFFER_STATE parser__scan_buffer ( char base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 2052 of file parser.yy.c.

2053 {
2055 
2056  if ( size < 2 ||
2059  /* They forgot to leave room for the EOB's. */
2060  return 0;
2061 
2062  b = (YY_BUFFER_STATE) parser_alloc(sizeof( struct yy_buffer_state ) );
2063  if ( ! b )
2064  YY_FATAL_ERROR( "out of dynamic memory in parser__scan_buffer()" );
2065 
2066  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2067  b->yy_buf_pos = b->yy_ch_buf = base;
2068  b->yy_is_our_buffer = 0;
2069  b->yy_input_file = 0;
2070  b->yy_n_chars = b->yy_buf_size;
2071  b->yy_is_interactive = 0;
2072  b->yy_at_bol = 1;
2073  b->yy_fill_buffer = 0;
2074  b->yy_buffer_status = YY_BUFFER_NEW;
2075 
2077 
2078  return b;
2079 }
#define YY_END_OF_BUFFER_CHAR
Definition: parser.yy.c:160
void parser__switch_to_buffer(YY_BUFFER_STATE new_buffer)
Definition: parser.yy.c:1805
GLuint base
Definition: 3dtext.c:35
struct yy_buffer_state * YY_BUFFER_STATE
Definition: parser.yy.c:173
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizeiptr size
Definition: glext.h:5919
void * parser_alloc(yy_size_t)
Definition: parser.yy.c:2353
#define YY_BUFFER_NEW
Definition: parser.yy.c:255
#define YY_FATAL_ERROR(msg)
Definition: parser.yy.c:973

Referenced by parser__scan_bytes().

◆ parser__scan_bytes()

YY_BUFFER_STATE parser__scan_bytes ( yyconst char bytes,
yy_size_t  len 
)

Setup the input buffer state to scan the given bytes. The next call to parser_lex() will scan from a copy of bytes.

Parameters
yybytesthe byte buffer to scan
_yybytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 2102 of file parser.yy.c.

2103 {
2105  char *buf;
2106  yy_size_t n;
2107  yy_size_t i;
2108 
2109  /* Get memory for full buffer, including space for trailing EOB's. */
2110  n = _yybytes_len + 2;
2111  buf = (char *) parser_alloc(n );
2112  if ( ! buf )
2113  YY_FATAL_ERROR( "out of dynamic memory in parser__scan_bytes()" );
2114 
2115  for ( i = 0; i < _yybytes_len; ++i )
2116  buf[i] = yybytes[i];
2117 
2118  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2119 
2120  b = parser__scan_buffer(buf,n );
2121  if ( ! b )
2122  YY_FATAL_ERROR( "bad buffer in parser__scan_bytes()" );
2123 
2124  /* It's okay to grow etc. this buffer, and we should throw it
2125  * away when we're done.
2126  */
2127  b->yy_is_our_buffer = 1;
2128 
2129  return b;
2130 }
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLdouble n
Definition: glext.h:7729
size_t yy_size_t
Definition: macro.lex.yy.c:159
#define YY_END_OF_BUFFER_CHAR
Definition: parser.yy.c:160
YY_BUFFER_STATE parser__scan_buffer(char *base, yy_size_t size)
Definition: parser.yy.c:2052
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
void * parser_alloc(yy_size_t)
Definition: parser.yy.c:2353
#define YY_FATAL_ERROR(msg)
Definition: parser.yy.c:973

Referenced by parser__scan_string().

◆ parser__scan_string()

YY_BUFFER_STATE parser__scan_string ( yyconst char yy_str)

Setup the input buffer state to scan a string. The next call to parser_lex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use parser__scan_bytes() instead.

Definition at line 2089 of file parser.yy.c.

2090 {
2091 
2092  return parser__scan_bytes(yystr,strlen(yystr) );
2093 }
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
YY_BUFFER_STATE parser__scan_bytes(yyconst char *bytes, yy_size_t len)
Definition: parser.yy.c:2102

◆ parser__switch_to_buffer()

void parser__switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1805 of file parser.yy.c.

1806 {
1807 
1808  /* TODO. We should be able to replace this entire function body
1809  * with
1810  * parser_pop_buffer_state();
1811  * parser_push_buffer_state(new_buffer);
1812  */
1814  if ( YY_CURRENT_BUFFER == new_buffer )
1815  return;
1816 
1817  if ( YY_CURRENT_BUFFER )
1818  {
1819  /* Flush out information for old buffer. */
1820  *(yy_c_buf_p) = (yy_hold_char);
1821  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1822  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1823  }
1824 
1825  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1827 
1828  /* We don't actually know whether we did this switch during
1829  * EOF (parser_wrap()) processing, but the only time this flag
1830  * is looked at is after parser_wrap() is called, so it's safe
1831  * to go ahead and always set it.
1832  */
1834 }
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
static void parser__load_buffer_state(void)
Definition: parser.yy.c:1836
static int yy_did_buffer_switch_on_eof
Definition: parser.yy.c:305
static yy_size_t yy_n_chars
Definition: parser.yy.c:294
static void parser_ensure_buffer_stack(void)
Definition: parser.yy.c:2003
static char yy_hold_char
Definition: parser.yy.c:293
static char * yy_c_buf_p
Definition: parser.yy.c:298

Referenced by do_import(), parser__scan_buffer(), pop_import(), and switch_to_acf().

◆ parser_alloc()

void* parser_alloc ( yy_size_t  )

Definition at line 2353 of file parser.yy.c.

2354 {
2355  return (void *) malloc( size );
2356 }
GLsizeiptr size
Definition: glext.h:5919
#define malloc
Definition: debug_ros.c:4

Referenced by parser__create_buffer(), parser__scan_buffer(), parser__scan_bytes(), parser_ensure_buffer_stack(), and yy_push_state().

◆ parser_free()

void parser_free ( void )

Definition at line 2370 of file parser.yy.c.

2371 {
2372  free( (char *) ptr ); /* see parser_realloc() for (char *) cast */
2373 }
#define free
Definition: debug_ros.c:5
static PVOID ptr
Definition: dispmode.c:27

Referenced by parser__delete_buffer(), and parser_lex_destroy().

◆ parser_get_debug()

int parser_get_debug ( void  )

Definition at line 2261 of file parser.yy.c.

2262 {
2263  return parser__flex_debug;
2264 }
int parser__flex_debug
Definition: parser.yy.c:694

◆ parser_get_extra()

YY_EXTRA_TYPE parser_get_extra ( void  )

◆ parser_get_in()

FILE* parser_get_in ( void  )

Get the input stream.

Definition at line 2205 of file parser.yy.c.

2206 {
2207  return parser_in;
2208 }
FILE * parser_in
Definition: parser.yy.c:357

◆ parser_get_leng()

yy_size_t parser_get_leng ( void  )

Get the length of the current token.

Definition at line 2221 of file parser.yy.c.

2222 {
2223  return parser_leng;
2224 }
yy_size_t parser_leng
Definition: parser.yy.c:295

◆ parser_get_lineno()

int parser_get_lineno ( void  )

Get the current line number.

Definition at line 2196 of file parser.yy.c.

2197 {
2198 
2199  return parser_lineno;
2200 }
int parser_lineno
Definition: parser.yy.c:363

◆ parser_get_out()

FILE* parser_get_out ( void  )

Get the output stream.

Definition at line 2213 of file parser.yy.c.

2214 {
2215  return parser_out;
2216 }
FILE * parser_out
Definition: parser.yy.c:357

◆ parser_get_text()

char* parser_get_text ( void  )

Get the current token.

Definition at line 2230 of file parser.yy.c.

2231 {
2232  return parser_text;
2233 }
char * parser_text
Definition: parser.yy.c:703

◆ parser_lex()

int parser_lex ( void  )

◆ parser_lex_destroy()

int parser_lex_destroy ( void  )

Definition at line 2304 of file parser.yy.c.

2305 {
2306 
2307  /* Pop the buffer stack, destroying each element. */
2308  while(YY_CURRENT_BUFFER){
2312  }
2313 
2314  /* Destroy the stack itself. */
2316  (yy_buffer_stack) = NULL;
2317 
2318  /* Destroy the start condition stack. */
2320  (yy_start_stack) = NULL;
2321 
2322  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2323  * parser_lex() is called, initialization will occur. */
2324  yy_init_globals( );
2325 
2326  return 0;
2327 }
void parser_free(void *)
Definition: parser.yy.c:2370
void parser__delete_buffer(YY_BUFFER_STATE b)
Definition: parser.yy.c:1878
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
static int yy_init_globals(void)
Definition: parser.yy.c:2271
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
smooth NULL
Definition: ftsmooth.c:416
static YY_BUFFER_STATE * yy_buffer_stack
Definition: parser.yy.c:275
void parser_pop_buffer_state(void)
Definition: parser.yy.c:1984
static int * yy_start_stack
Definition: parser.yy.c:903

◆ parser_pop_buffer_state()

void parser_pop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1984 of file parser.yy.c.

1985 {
1986  if (!YY_CURRENT_BUFFER)
1987  return;
1988 
1991  if ((yy_buffer_stack_top) > 0)
1992  --(yy_buffer_stack_top);
1993 
1994  if (YY_CURRENT_BUFFER) {
1997  }
1998 }
void parser__delete_buffer(YY_BUFFER_STATE b)
Definition: parser.yy.c:1878
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
static void parser__load_buffer_state(void)
Definition: parser.yy.c:1836
static int yy_did_buffer_switch_on_eof
Definition: parser.yy.c:305
smooth NULL
Definition: ftsmooth.c:416
static size_t yy_buffer_stack_top
Definition: parser.yy.c:273

Referenced by parser_lex_destroy().

◆ parser_push_buffer_state()

void parser_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.

Parameters
new_bufferThe new state.

Definition at line 1954 of file parser.yy.c.

1955 {
1956  if (new_buffer == NULL)
1957  return;
1958 
1960 
1961  /* This block is copied from parser__switch_to_buffer. */
1962  if ( YY_CURRENT_BUFFER )
1963  {
1964  /* Flush out information for old buffer. */
1965  *(yy_c_buf_p) = (yy_hold_char);
1966  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1967  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1968  }
1969 
1970  /* Only push if top exists. Otherwise, replace top. */
1971  if (YY_CURRENT_BUFFER)
1972  (yy_buffer_stack_top)++;
1973  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1974 
1975  /* copied from parser__switch_to_buffer. */
1978 }
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
static void parser__load_buffer_state(void)
Definition: parser.yy.c:1836
static int yy_did_buffer_switch_on_eof
Definition: parser.yy.c:305
static yy_size_t yy_n_chars
Definition: parser.yy.c:294
smooth NULL
Definition: ftsmooth.c:416
static void parser_ensure_buffer_stack(void)
Definition: parser.yy.c:2003
static size_t yy_buffer_stack_top
Definition: parser.yy.c:273
static char yy_hold_char
Definition: parser.yy.c:293
static char * yy_c_buf_p
Definition: parser.yy.c:298

◆ parser_realloc()

void* parser_realloc ( void ,
yy_size_t   
)

Definition at line 2358 of file parser.yy.c.

2359 {
2360  /* The cast to (char *) in the following accommodates both
2361  * implementations that use char* generic pointers, and those
2362  * that use void* generic pointers. It works with the latter
2363  * because both ANSI C and C++ allow castless assignment from
2364  * any pointer type to void*, and deal with argument conversions
2365  * as though doing an assignment.
2366  */
2367  return (void *) realloc( (char *) ptr, size );
2368 }
#define realloc
Definition: debug_ros.c:6
static PVOID ptr
Definition: dispmode.c:27
GLsizeiptr size
Definition: glext.h:5919

Referenced by parser_ensure_buffer_stack(), yy_get_next_buffer(), and yy_push_state().

◆ parser_restart()

void parser_restart ( FILE input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1788 of file parser.yy.c.

1789 {
1790 
1791  if ( ! YY_CURRENT_BUFFER ){
1795  }
1796 
1799 }
static void parser__init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: parser.yy.c:1897
FILE * parser_in
Definition: parser.yy.c:357
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:283
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:290
static void parser__load_buffer_state(void)
Definition: parser.yy.c:1836
#define YY_BUF_SIZE
Definition: parser.yy.c:164
static void parser_ensure_buffer_stack(void)
Definition: parser.yy.c:2003
YY_BUFFER_STATE parser__create_buffer(FILE *file, int size)
Definition: parser.yy.c:1850

Referenced by yy_get_next_buffer().

◆ parser_set_debug()

void parser_set_debug ( int  debug_flag)

Definition at line 2266 of file parser.yy.c.

2267 {
2268  parser__flex_debug = bdebug ;
2269 }
int parser__flex_debug
Definition: parser.yy.c:694

◆ parser_set_extra()

void parser_set_extra ( YY_EXTRA_TYPE  user_defined)

◆ parser_set_in()

void parser_set_in ( FILE in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
parser__switch_to_buffer

Definition at line 2251 of file parser.yy.c.

2252 {
2253  parser_in = in_str ;
2254 }
FILE * parser_in
Definition: parser.yy.c:357

◆ parser_set_lineno()

void parser_set_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2239 of file parser.yy.c.

2240 {
2241 
2243 }
int line_number
Definition: parser.yy.c:775
int parser_lineno
Definition: parser.yy.c:363

◆ parser_set_out()

void parser_set_out ( FILE out_str)

Definition at line 2256 of file parser.yy.c.

2257 {
2258  parser_out = out_str ;
2259 }
FILE * parser_out
Definition: parser.yy.c:357

◆ parser_wrap()

int parser_wrap ( void  )

Definition at line 2382 of file parser.yy.c.

2383 {
2384  return 1;
2385 }

Referenced by while().

Variable Documentation

◆ parser_in

FILE* parser_in

◆ parser_leng

yy_size_t parser_leng

◆ parser_lineno

int parser_lineno

◆ parser_out

FILE * parser_out

◆ parser_text

char* parser_text