QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
qp-lex.c File Reference

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define COMMENT   3
 
#define ECHO   do { if (fwrite( qp_yytext, qp_yyleng, 1, qp_yyout )) {} } while (0)
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define FLEX_BETA
 
#define FLEX_SCANNER
 
#define FLEXINT_H
 
#define GRAB_FRAME   1
 
#define GRAB_OTHER   2
 
#define INITIAL   0
 
#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;
 
#define YY_BUF_SIZE   16384
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define yy_create_buffer   qp_yy_create_buffer
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int qp_yylex YY_PROTO(( void ))
 
#define yy_delete_buffer   qp_yy_delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   32
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_EXIT_FAILURE   2
 
#define YY_EXTRA_TYPE   void *
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define yy_flex_debug   qp_yy_flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define yy_flush_buffer   qp_yy_flush_buffer
 
#define YY_FLUSH_BUFFER   qp_yy_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_init_buffer   qp_yy_init_buffer
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#define yy_load_buffer_state   qp_yy_load_buffer_state
 
#define YY_MORE_ADJ   0
 
#define yy_new_buffer   qp_yy_create_buffer
 
#define YY_NEW_FILE   qp_yyrestart(qp_yyin )
 
#define YY_NO_UNPUT
 
#define YY_NULL   0
 
#define YY_NUM_RULES   31
 
#define YY_PROTO(x)   x
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_RULE_SETUP
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define yy_set_bol(at_bol)
 
#define yy_set_interactive(is_interactive)
 
#define YY_START   (((yy_start) - 1) / 2)
 
#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)
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define yy_switch_to_buffer   qp_yy_switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   qp_yyalloc
 
#define yyconst
 
#define yyfree   qp_yyfree
 
#define yyin   qp_yyin
 
#define yyleng   qp_yyleng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   qp_yylex
 
#define yylineno   qp_yylineno
 
#define yymore()   yymore_used_but_not_detected
 
#define yyout   qp_yyout
 
#define yyrealloc   qp_yyrealloc
 
#define yyrestart   qp_yyrestart
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   qp_yytext
 
#define yytext_ptr   qp_yytext
 
#define yywrap   qp_yywrap
 

Typedefs

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
 

Functions

 if (!(yy_init))
 
int isatty (int)
 
YY_BUFFER_STATE qp_yy_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void qp_yy_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void qp_yy_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
YY_BUFFER_STATE qp_yy_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer. More...
 
YY_BUFFER_STATE qp_yy_scan_bytes (yyconst char *yybytes, int _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
YY_BUFFER_STATE qp_yy_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
void qp_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
void * qp_yyalloc (yy_size_t)
 
void qp_yyfree (void *)
 
int qp_yyget_debug (void)
 
YY_EXTRA_TYPE qp_yyget_extra (void)
 
FILE * qp_yyget_in (void)
 Get the input stream. More...
 
int qp_yyget_leng (void)
 Get the length of the current token. More...
 
int qp_yyget_lineno (void)
 Get the current line number. More...
 
FILE * qp_yyget_out (void)
 Get the output stream. More...
 
char * qp_yyget_text (void)
 Get the current token. More...
 
int qp_yylex_destroy (void)
 
void qp_yypop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
void qp_yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void * qp_yyrealloc (void *, yy_size_t)
 
void qp_yyrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void qp_yyset_debug (int debug_flag)
 
void qp_yyset_extra (YY_EXTRA_TYPE user_defined)
 
void qp_yyset_in (FILE *in_str)
 Set the input stream. More...
 
void qp_yyset_lineno (int line_number)
 Set the current line number. More...
 
void qp_yyset_out (FILE *out_str)
 
int qp_yywrap (void)
 
 while (1)
 

Variables

 grab_frame = GRAB_FRAME
 
 grab_other = GRAB_OTHER
 
int qp_yy_flex_debug = 0
 
FILE * qp_yyin = (FILE *) 0
 
int qp_yyleng
 
int qp_yylineno = 1
 
FILE * qp_yyout = (FILE *) 0
 
char * qp_yytext
 
register int yy_act
 
register char * yy_bp
 
register char * yy_cp
 
 YY_DECL
 The main scanner function which does all the work. More...
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *
#define COMMENT   3
#define ECHO   do { if (fwrite( qp_yytext, qp_yyleng, 1, qp_yyout )) {} } while (0)
#define EOB_ACT_CONTINUE_SCAN   0
#define EOB_ACT_END_OF_FILE   1
#define EOB_ACT_LAST_MATCH   2
#define FLEX_BETA
#define FLEX_SCANNER
#define FLEXINT_H
#define GRAB_FRAME   1
#define GRAB_OTHER   2
#define INITIAL   0
#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;
#define YY_BUF_SIZE   16384
#define YY_BUFFER_EOF_PENDING   2
#define YY_BUFFER_NEW   0
#define YY_BUFFER_NORMAL   1
#define yy_create_buffer   qp_yy_create_buffer
#define YY_CURRENT_BUFFER
Value:
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
#define NULL
Definition: qendian.h:41
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_DECL   int qp_yylex YY_PROTO(( void ))
#define yy_delete_buffer   qp_yy_delete_buffer
#define YY_DO_BEFORE_ACTION
Value:
qp_yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
register char * yy_cp
Definition: qp-lex.c:883
#define yytext_ptr
Definition: qp-lex.c:374
register char * yy_bp
Definition: qp-lex.c:883
int qp_yyleng
Definition: qp-lex.c:303
#define YY_END_OF_BUFFER   32
#define YY_END_OF_BUFFER_CHAR   0
#define YY_EXIT_FAILURE   2
#define YY_EXTRA_TYPE   void *
#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )
#define yy_flex_debug   qp_yy_flex_debug
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   35
#define yy_flush_buffer   qp_yy_flush_buffer
#define YY_FLUSH_BUFFER   qp_yy_flush_buffer(YY_CURRENT_BUFFER )
#define yy_init_buffer   qp_yy_init_buffer
#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
size_t n; \
for ( n = 0; n < max_size && \
(c = getc( qp_yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( qp_yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, qp_yyin))==0 && ferror(qp_yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(qp_yyin); \
} \
}\
\
#define YY_CURRENT_BUFFER_LVALUE
Definition: qp-lex.c:298
int(PASCAL FAR *pWSAStartup)(WORD wVersionRequired
char FAR * buf
Definition: net_wins.c:89
if(!(yy_init))
Definition: qp-lex.c:893
#define YY_FATAL_ERROR(msg)
Definition: qp-lex.c:844
#define n(x, y)
FILE * qp_yyin
Definition: qp-lex.c:365
while(1)
Definition: qp-lex.c:919
#define YY_INT_ALIGNED   short int
#define YY_LESS_LINENO (   n)
#define yy_load_buffer_state   qp_yy_load_buffer_state
#define YY_MORE_ADJ   0
#define yy_new_buffer   qp_yy_create_buffer
#define YY_NEW_FILE   qp_yyrestart(qp_yyin )
#define YY_NO_UNPUT
#define YY_NULL   0
#define YY_NUM_RULES   31
#define YY_PROTO (   x)    x
#define YY_READ_BUF_SIZE   8192
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_RULE_SETUP
Value:
if ( qp_yyleng > 0 ) \
(qp_yytext[qp_yyleng - 1] == '\n'); \
#define YY_USER_ACTION
Definition: qp-lex.c:864
#define YY_CURRENT_BUFFER_LVALUE
Definition: qp-lex.c:298
char * qp_yytext
Definition: qp-lex.c:627
int qp_yyleng
Definition: qp-lex.c:303
#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)
#define yy_set_bol (   at_bol)
Value:
{ \
qp_yyensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
Definition: qp-lex.c:171
#define YY_CURRENT_BUFFER_LVALUE
Definition: qp-lex.c:298
#define YY_CURRENT_BUFFER
Definition: qp-lex.c:291
if(!(yy_init))
Definition: qp-lex.c:893
YY_BUFFER_STATE qp_yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: qp-lex.c:1704
FILE * qp_yyin
Definition: qp-lex.c:365
#define yy_set_interactive (   is_interactive)
Value:
{ \
qp_yyensure_buffer_stack (); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
Definition: qp-lex.c:171
#define YY_CURRENT_BUFFER_LVALUE
Definition: qp-lex.c:298
#define YY_CURRENT_BUFFER
Definition: qp-lex.c:291
if(!(yy_init))
Definition: qp-lex.c:893
YY_BUFFER_STATE qp_yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
Definition: qp-lex.c:1704
FILE * qp_yyin
Definition: qp-lex.c:365
#define YY_START   (((yy_start) - 1) / 2)
#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)
#define YY_STRUCT_YY_BUFFER_STATE
#define yy_switch_to_buffer   qp_yy_switch_to_buffer
#define YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_SIZE_T
#define YY_USER_ACTION
#define yyalloc   qp_yyalloc
#define yyconst
#define yyfree   qp_yyfree
#define yyin   qp_yyin
#define yyleng   qp_yyleng
#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up qp_yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up qp_yytext again */ \
} \
while ( 0 )
register char * yy_cp
Definition: qp-lex.c:883
int(PASCAL FAR *pWSAStartup)(WORD wVersionRequired
#define n(x, y)
#define YY_LESS_LINENO(n)
Definition: qp-lex.c:192
while(1)
Definition: qp-lex.c:919
register char * yy_bp
Definition: qp-lex.c:883
#define YY_MORE_ADJ
Definition: qp-lex.c:625
#define YY_DO_BEFORE_ACTION
Definition: qp-lex.c:384
#define YY_RESTORE_YY_MORE_OFFSET
Definition: qp-lex.c:626
#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up qp_yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
qp_yytext[qp_yyleng] = (yy_hold_char); \
(yy_c_buf_p) = qp_yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
qp_yyleng = yyless_macro_arg; \
} \
while ( 0 )
int(PASCAL FAR *pWSAStartup)(WORD wVersionRequired
char * qp_yytext
Definition: qp-lex.c:627
#define n(x, y)
#define YY_LESS_LINENO(n)
Definition: qp-lex.c:192
while(1)
Definition: qp-lex.c:919
int qp_yyleng
Definition: qp-lex.c:303
#define yylex   qp_yylex
#define yylineno   qp_yylineno
#define yymore ( )    yymore_used_but_not_detected
#define yyout   qp_yyout
#define yyrealloc   qp_yyrealloc
#define yyrestart   qp_yyrestart
#define YYSTATE   YY_START
#define YYTABLES_NAME   "yytables"
#define yyterminate ( )    return YY_NULL
#define yytext   qp_yytext
#define yytext_ptr   qp_yytext
#define yywrap   qp_yywrap

Typedef Documentation

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

Function Documentation

if ( yy_init)
int isatty ( int  )
YY_BUFFER_STATE qp_yy_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.
void qp_yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with qp_yy_create_buffer()
void qp_yy_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.
YY_BUFFER_STATE qp_yy_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.
YY_BUFFER_STATE qp_yy_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to qp_yylex() 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.
YY_BUFFER_STATE qp_yy_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

The next call to qp_yylex() 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 qp_yy_scan_bytes() instead.
void qp_yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.
void * qp_yyalloc ( yy_size_t  size)
void qp_yyfree ( void *  ptr)
int qp_yyget_debug ( void  )
YY_EXTRA_TYPE qp_yyget_extra ( void  )
FILE * qp_yyget_in ( void  )

Get the input stream.

int qp_yyget_leng ( void  )

Get the length of the current token.

int qp_yyget_lineno ( void  )

Get the current line number.

FILE * qp_yyget_out ( void  )

Get the output stream.

char * qp_yyget_text ( void  )

Get the current token.

int qp_yylex_destroy ( void  )
void qp_yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

void qp_yypush_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.
void * qp_yyrealloc ( void *  ptr,
yy_size_t  size 
)
void qp_yyrestart ( 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 .
void qp_yyset_debug ( int  debug_flag)
void qp_yyset_extra ( YY_EXTRA_TYPE  user_defined)
void qp_yyset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
qp_yy_switch_to_buffer
void qp_yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number
void qp_yyset_out ( FILE *  out_str)
int qp_yywrap ( void  )
while ( )

Variable Documentation

grab_frame = GRAB_FRAME
grab_other = GRAB_OTHER
int qp_yy_flex_debug = 0
FILE* qp_yyin = (FILE *) 0
int qp_yyleng
int qp_yylineno = 1
FILE * qp_yyout = (FILE *) 0
char * qp_yytext
register int yy_act
register char * yy_bp
register char* yy_cp
YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: qp-lex.c:367

The main scanner function which does all the work.