Crossfire Server, Trunk
reader.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <global.h>
#include <loader.h>
#include <newserver.h>
#include <random_map.h>
#include <unistd.h>
+ Include dependency graph for reader.c:

Go to the source code of this file.

Data Structures

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define BEGIN   (yy_start) = 1 + 2 *
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, 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 FVAL   atof(rmap_yval())
 
#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 IVAL   atoi(rmap_yval())
 
#define MESSAGE   1
 
#define REJECT   reject_used_but_not_detected
 
#define rmap_create_buffer_ALREADY_DEFINED
 
#define rmap_delete_buffer_ALREADY_DEFINED
 
#define rmap_flex_debug_ALREADY_DEFINED
 
#define rmap_flush_buffer_ALREADY_DEFINED
 
#define rmap_init_buffer_ALREADY_DEFINED
 
#define rmap_load_buffer_state_ALREADY_DEFINED
 
#define rmap_scan_buffer_ALREADY_DEFINED
 
#define rmap_scan_bytes_ALREADY_DEFINED
 
#define rmap_scan_string_ALREADY_DEFINED
 
#define rmap_switch_to_buffer_ALREADY_DEFINED
 
#define rmapalloc_ALREADY_DEFINED
 
#define rmapensure_buffer_stack_ALREADY_DEFINED
 
#define rmapfree_ALREADY_DEFINED
 
#define rmapin_ALREADY_DEFINED
 
#define rmapleng_ALREADY_DEFINED
 
#define rmaplex_ALREADY_DEFINED
 
#define rmaplineno_ALREADY_DEFINED
 
#define rmapout_ALREADY_DEFINED
 
#define rmappop_buffer_state_ALREADY_DEFINED
 
#define rmappush_buffer_state_ALREADY_DEFINED
 
#define rmaprealloc_ALREADY_DEFINED
 
#define rmaprestart_ALREADY_DEFINED
 
#define rmaptext_ALREADY_DEFINED
 
#define rmapwrap()   (/*CONSTCOND*/1)
 
#define rmapwrap_ALREADY_DEFINED
 
#define SIZE_MAX   (~(size_t)0)
 
#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   /*LINTED*/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   rmap_create_buffer
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_DECL   int rmap_lex_read(RMParms *RP)
 
#define yy_delete_buffer   rmap_delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   38
 
#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   rmap_flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define yy_flush_buffer   rmap_flush_buffer
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_init_buffer   rmap_init_buffer
 
#define YY_INPUT(buf, result, max_size)
 
#define YY_INT_ALIGNED   short int
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yy_load_buffer_state   rmap_load_buffer_state
 
#define YY_MORE_ADJ   0
 
#define yy_new_buffer   yy_create_buffer
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_NO_INPUT   1
 
#define YY_NULL   0
 
#define YY_NUM_RULES   37
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_RULE_SETUP
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define yy_scan_buffer   rmap_scan_buffer
 
#define yy_scan_bytes   rmap_scan_bytes
 
#define yy_scan_string   rmap_scan_string
 
#define yy_set_bol(at_bol)
 
#define yy_set_interactive(is_interactive)
 
#define YY_SKIP_YYWRAP
 
#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   rmap_switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   rmapalloc
 
#define yyconst   const
 
#define yyensure_buffer_stack   rmapensure_buffer_stack
 
#define yyfree   rmapfree
 
#define yyget_debug   rmapget_debug
 
#define yyget_extra   rmapget_extra
 
#define yyget_in   rmapget_in
 
#define yyget_leng   rmapget_leng
 
#define yyget_lineno   rmapget_lineno
 
#define yyget_out   rmapget_out
 
#define yyget_text   rmapget_text
 
#define yyin   rmapin
 
#define yyleng   rmapleng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   rmaplex
 
#define yylex_destroy   rmaplex_destroy
 
#define yylex_init   rmaplex_init
 
#define yylex_init_extra   rmaplex_init_extra
 
#define yylineno   rmaplineno
 
#define yymore()   yymore_used_but_not_detected
 
#define yynoreturn
 
#define yyout   rmapout
 
#define yypop_buffer_state   rmappop_buffer_state
 
#define yypush_buffer_state   rmappush_buffer_state
 
#define yyrealloc   rmaprealloc
 
#define yyrestart   rmaprestart
 
#define yyset_debug   rmapset_debug
 
#define yyset_extra   rmapset_extra
 
#define yyset_in   rmapset_in
 
#define yyset_lineno   rmapset_lineno
 
#define yyset_out   rmapset_out
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   rmaptext
 
#define yytext_ptr   yytext
 
#define yywrap   rmapwrap
 

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_stateYY_BUFFER_STATE
 
typedef flex_uint8_t YY_CHAR
 
typedef size_t yy_size_t
 
typedef int yy_state_type
 

Functions

 if (!(yy_init))
 
int load_parameters (FILE *fp, int bufstate, RMParms *RP)
 
static int rmap_lex_read (RMParms *RP)
 
static char * rmap_yval (void)
 
int set_random_map_variable (RMParms *rp, const char *buf)
 
 while (1)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
static void yynoreturn yy_fatal_error (const char *msg)
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 
static int yy_get_next_buffer (void)
 
static yy_state_type yy_get_previous_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
static int yy_init_globals (void)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
void * yyalloc (yy_size_t)
 
static int yyerror (const char *s)
 
void yyfree (void *)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void * yyrealloc (void *, yy_size_t)
 
void yyrestart (FILE *input_file)
 
void yyset_debug (int debug_flag)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
void yyset_in (FILE *_in_str)
 
void yyset_lineno (int _line_number)
 
void yyset_out (FILE *_out_str)
 

Variables

static int rmap_lex_error
 
static const flex_int16_t yy_accept [390]
 
int yy_act
 
static const flex_int16_t yy_base [427]
 
char * yy_bp
 
static YY_BUFFER_STATEyy_buffer_stack = NULL
 
static size_t yy_buffer_stack_max = 0
 
static size_t yy_buffer_stack_top = 0
 
static char * yy_c_buf_p = NULL
 
static const flex_int16_t yy_chk [772]
 
char * yy_cp
 
 YY_DECL
 
static const flex_int16_t yy_def [427]
 
static int yy_did_buffer_switch_on_eof
 
static const YY_CHAR yy_ec [256]
 
int yy_flex_debug = 0
 
static char yy_hold_char
 
static int yy_init = 0
 
static char * yy_last_accepting_cpos
 
static yy_state_type yy_last_accepting_state
 
static const YY_CHAR yy_meta [56]
 
static int yy_n_chars
 
static const flex_int16_t yy_nxt [772]
 
static int yy_start = 0
 
FILE * yyin = NULL
 
int yyleng
 
int yylineno = 1
 
FILE * yyout = NULL
 
char * yytext
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 376 of file reader.c.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)

Definition at line 1165 of file reader.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 420 of file reader.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 421 of file reader.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 422 of file reader.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 38 of file reader.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 33 of file reader.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 288 of file reader.c.

◆ FVAL

#define FVAL   atof(rmap_yval())

Definition at line 1050 of file reader.c.

◆ INITIAL

#define INITIAL   0

Definition at line 1071 of file reader.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 330 of file reader.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 321 of file reader.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 333 of file reader.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 324 of file reader.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 327 of file reader.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 318 of file reader.c.

◆ IVAL

#define IVAL   atoi(rmap_yval())

Definition at line 1049 of file reader.c.

◆ MESSAGE

#define MESSAGE   1

Definition at line 1072 of file reader.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 1002 of file reader.c.

◆ rmap_create_buffer_ALREADY_DEFINED

#define rmap_create_buffer_ALREADY_DEFINED

Definition at line 42 of file reader.c.

◆ rmap_delete_buffer_ALREADY_DEFINED

#define rmap_delete_buffer_ALREADY_DEFINED

Definition at line 48 of file reader.c.

◆ rmap_flex_debug_ALREADY_DEFINED

#define rmap_flex_debug_ALREADY_DEFINED

Definition at line 264 of file reader.c.

◆ rmap_flush_buffer_ALREADY_DEFINED

#define rmap_flush_buffer_ALREADY_DEFINED

Definition at line 78 of file reader.c.

◆ rmap_init_buffer_ALREADY_DEFINED

#define rmap_init_buffer_ALREADY_DEFINED

Definition at line 72 of file reader.c.

◆ rmap_load_buffer_state_ALREADY_DEFINED

#define rmap_load_buffer_state_ALREADY_DEFINED

Definition at line 84 of file reader.c.

◆ rmap_scan_buffer_ALREADY_DEFINED

#define rmap_scan_buffer_ALREADY_DEFINED

Definition at line 54 of file reader.c.

◆ rmap_scan_bytes_ALREADY_DEFINED

#define rmap_scan_bytes_ALREADY_DEFINED

Definition at line 66 of file reader.c.

◆ rmap_scan_string_ALREADY_DEFINED

#define rmap_scan_string_ALREADY_DEFINED

Definition at line 60 of file reader.c.

◆ rmap_switch_to_buffer_ALREADY_DEFINED

#define rmap_switch_to_buffer_ALREADY_DEFINED

Definition at line 90 of file reader.c.

◆ rmapalloc_ALREADY_DEFINED

#define rmapalloc_ALREADY_DEFINED

Definition at line 222 of file reader.c.

◆ rmapensure_buffer_stack_ALREADY_DEFINED

#define rmapensure_buffer_stack_ALREADY_DEFINED

Definition at line 108 of file reader.c.

◆ rmapfree_ALREADY_DEFINED

#define rmapfree_ALREADY_DEFINED

Definition at line 234 of file reader.c.

◆ rmapin_ALREADY_DEFINED

#define rmapin_ALREADY_DEFINED

Definition at line 252 of file reader.c.

◆ rmapleng_ALREADY_DEFINED

#define rmapleng_ALREADY_DEFINED

Definition at line 246 of file reader.c.

◆ rmaplex_ALREADY_DEFINED

#define rmaplex_ALREADY_DEFINED

Definition at line 114 of file reader.c.

◆ rmaplineno_ALREADY_DEFINED

#define rmaplineno_ALREADY_DEFINED

Definition at line 270 of file reader.c.

◆ rmapout_ALREADY_DEFINED

#define rmapout_ALREADY_DEFINED

Definition at line 258 of file reader.c.

◆ rmappop_buffer_state_ALREADY_DEFINED

#define rmappop_buffer_state_ALREADY_DEFINED

Definition at line 102 of file reader.c.

◆ rmappush_buffer_state_ALREADY_DEFINED

#define rmappush_buffer_state_ALREADY_DEFINED

Definition at line 96 of file reader.c.

◆ rmaprealloc_ALREADY_DEFINED

#define rmaprealloc_ALREADY_DEFINED

Definition at line 228 of file reader.c.

◆ rmaprestart_ALREADY_DEFINED

#define rmaprestart_ALREADY_DEFINED

Definition at line 120 of file reader.c.

◆ rmaptext_ALREADY_DEFINED

#define rmaptext_ALREADY_DEFINED

Definition at line 240 of file reader.c.

◆ rmapwrap

#define rmapwrap ( )    (/*CONSTCOND*/1)

Definition at line 585 of file reader.c.

◆ rmapwrap_ALREADY_DEFINED

#define rmapwrap_ALREADY_DEFINED

Definition at line 216 of file reader.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 346 of file reader.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 339 of file reader.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 342 of file reader.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 336 of file reader.c.

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 440 of file reader.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 581 of file reader.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1244 of file reader.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 398 of file reader.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 502 of file reader.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 490 of file reader.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 491 of file reader.c.

◆ yy_create_buffer

#define yy_create_buffer   rmap_create_buffer

Definition at line 8 of file reader.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:

Definition at line 518 of file reader.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 524 of file reader.c.

◆ YY_DECL

#define YY_DECL   int rmap_lex_read(RMParms *RP)

Definition at line 1042 of file reader.c.

◆ yy_delete_buffer

#define yy_delete_buffer   rmap_delete_buffer

Definition at line 9 of file reader.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \

Definition at line 610 of file reader.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   38

Definition at line 617 of file reader.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 387 of file reader.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 2320 of file reader.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1083 of file reader.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1219 of file reader.c.

◆ yy_flex_debug

int yy_flex_debug   rmap_flex_debug

Definition at line 20 of file reader.c.

Referenced by yyset_debug().

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 34 of file reader.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 35 of file reader.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 36 of file reader.c.

◆ yy_flush_buffer

#define yy_flush_buffer   rmap_flush_buffer

Definition at line 14 of file reader.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 552 of file reader.c.

◆ yy_init_buffer

#define yy_init_buffer   rmap_init_buffer

Definition at line 13 of file reader.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\

Definition at line 1172 of file reader.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 4 of file reader.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 424 of file reader.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 425 of file reader.c.

◆ yy_load_buffer_state

static void yy_load_buffer_state   rmap_load_buffer_state

Definition at line 15 of file reader.c.

Referenced by if(), yy_flush_buffer(), yy_switch_to_buffer(), yypush_buffer_state(), and yyrestart().

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 1004 of file reader.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 562 of file reader.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 386 of file reader.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 1068 of file reader.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 365 of file reader.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   37

Definition at line 616 of file reader.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1156 of file reader.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1005 of file reader.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if ( yyleng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
YY_USER_ACTION

Definition at line 1247 of file reader.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

Definition at line 370 of file reader.c.

◆ yy_scan_buffer

#define yy_scan_buffer   rmap_scan_buffer

Definition at line 10 of file reader.c.

◆ yy_scan_bytes

#define yy_scan_bytes   rmap_scan_bytes

Definition at line 12 of file reader.c.

◆ yy_scan_string

#define yy_scan_string   rmap_scan_string

Definition at line 11 of file reader.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}

Definition at line 572 of file reader.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 563 of file reader.c.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 586 of file reader.c.

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 381 of file reader.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1214 of file reader.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 404 of file reader.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 384 of file reader.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 443 of file reader.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   rmap_switch_to_buffer

Definition at line 16 of file reader.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 407 of file reader.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 412 of file reader.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1239 of file reader.c.

◆ yyalloc

#define yyalloc   rmapalloc

Definition at line 29 of file reader.c.

◆ yyconst

#define yyconst   const

Definition at line 356 of file reader.c.

◆ yyensure_buffer_stack

static void yyensure_buffer_stack   rmapensure_buffer_stack

Definition at line 19 of file reader.c.

Referenced by if(), yy_switch_to_buffer(), yypush_buffer_state(), and yyrestart().

◆ yyfree

#define yyfree   rmapfree

Definition at line 31 of file reader.c.

◆ yyget_debug

int yyget_debug   rmapget_debug

Definition at line 146 of file reader.c.

◆ yyget_extra

YY_EXTRA_TYPE yyget_extra   rmapget_extra

Definition at line 158 of file reader.c.

◆ yyget_in

FILE * yyget_in (   void)    rmapget_in

Get the input stream.

Definition at line 170 of file reader.c.

◆ yyget_leng

int yyget_leng (   void)    rmapget_leng

Get the length of the current token.

Definition at line 194 of file reader.c.

◆ yyget_lineno

int yyget_lineno (   void)    rmapget_lineno

Get the current line number.

Definition at line 206 of file reader.c.

◆ yyget_out

FILE * yyget_out (   void)    rmapget_out

Get the output stream.

Definition at line 182 of file reader.c.

◆ yyget_text

char * yyget_text (   void)    rmapget_text

Get the current token.

Definition at line 200 of file reader.c.

◆ yyin

FILE * yyin   rmapin

Definition at line 21 of file reader.c.

Referenced by if(), while(), yy_get_next_buffer(), yy_init_globals(), yyrestart(), and yyset_in().

◆ yyleng

int yyleng   rmapleng

Definition at line 22 of file reader.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
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 yytext again */ \
} \
while ( 0 )

Definition at line 2332 of file reader.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )

Definition at line 2332 of file reader.c.

◆ yylex

#define yylex   rmaplex

Definition at line 23 of file reader.c.

◆ yylex_destroy

int yylex_destroy   rmaplex_destroy

Definition at line 140 of file reader.c.

◆ yylex_init

#define yylex_init   rmaplex_init

Definition at line 128 of file reader.c.

◆ yylex_init_extra

#define yylex_init_extra   rmaplex_init_extra

Definition at line 134 of file reader.c.

◆ yylineno

int yylineno   rmaplineno

Definition at line 24 of file reader.c.

Referenced by yyset_lineno().

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 1003 of file reader.c.

◆ yynoreturn

#define yynoreturn

Definition at line 361 of file reader.c.

◆ yyout

FILE * yyout   rmapout

Definition at line 25 of file reader.c.

Referenced by if(), yy_init_globals(), and yyset_out().

◆ yypop_buffer_state

void yypop_buffer_state (   void)    rmappop_buffer_state

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

Definition at line 18 of file reader.c.

◆ yypush_buffer_state

#define yypush_buffer_state   rmappush_buffer_state

Definition at line 17 of file reader.c.

◆ yyrealloc

#define yyrealloc   rmaprealloc

Definition at line 30 of file reader.c.

◆ yyrestart

#define yyrestart   rmaprestart

Definition at line 26 of file reader.c.

◆ yyset_debug

#define yyset_debug   rmapset_debug

Definition at line 152 of file reader.c.

◆ yyset_extra

#define yyset_extra   rmapset_extra

Definition at line 164 of file reader.c.

◆ yyset_in

#define yyset_in   rmapset_in

Definition at line 176 of file reader.c.

◆ yyset_lineno

#define yyset_lineno   rmapset_lineno

Definition at line 212 of file reader.c.

◆ yyset_out

#define yyset_out   rmapset_out

Definition at line 188 of file reader.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 382 of file reader.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2524 of file reader.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1209 of file reader.c.

◆ yytext

char * yytext   rmaptext

Definition at line 27 of file reader.c.

Referenced by rmap_yval(), and yyerror().

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 600 of file reader.c.

◆ yywrap

#define yywrap   rmapwrap

Definition at line 28 of file reader.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 310 of file reader.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 311 of file reader.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 309 of file reader.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 313 of file reader.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 314 of file reader.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 312 of file reader.c.

◆ YY_BUFFER_STATE

Definition at line 408 of file reader.c.

◆ YY_CHAR

Definition at line 587 of file reader.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 413 of file reader.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 591 of file reader.c.

Function Documentation

◆ if()

◆ load_parameters()

int load_parameters ( FILE *  fp,
int  bufstate,
RMParms RP 
)

◆ rmap_lex_read()

static int rmap_lex_read ( RMParms RP)
static

Referenced by load_parameters(), and set_random_map_variable().

+ Here is the caller graph for this function:

◆ rmap_yval()

static char * rmap_yval ( void  )
static

Definition at line 2534 of file reader.c.

References yytext.

Referenced by while().

+ Here is the caller graph for this function:

◆ set_random_map_variable()

int set_random_map_variable ( RMParms rp,
const char *  buf 
)

Definition at line 2579 of file reader.c.

References buf, rmap_lex_read(), yy_delete_buffer, and yy_scan_string.

+ Here is the call graph for this function:

◆ while()

◆ yy_create_buffer()

YY_BUFFER_STATE 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.

Definition at line 2037 of file reader.c.

References Ice::b, mad_mage_user::file, YY_FATAL_ERROR, yy_init_buffer, and yyalloc.

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 2065 of file reader.c.

References Ice::b, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree.

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char *  msg)
static

Definition at line 2323 of file reader.c.

References navar-midane_pickup::msg, and YY_EXIT_FAILURE.

◆ yy_flush_buffer()

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

Definition at line 2112 of file reader.c.

References Ice::b, YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state.

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1834 of file reader.c.

References make_face_from_files::int, yy_accept, YY_AT_BOL, yy_base, yy_c_buf_p, yy_chk, yy_cp, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, YY_MORE_ADJ, yy_nxt, YY_SC_TO_UI, yy_start, and yytext_ptr.

Referenced by while().

+ Here is the caller graph for this function:

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 2084 of file reader.c.

References Ice::b, mad_mage_user::file, YY_CURRENT_BUFFER, and yy_flush_buffer.

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_scan_buffer()

YY_BUFFER_STATE 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.

Definition at line 2239 of file reader.c.

References Ice::b, make_face_from_files::int, YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer, and yyalloc.

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to 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.

Definition at line 2289 of file reader.c.

References Ice::b, buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer, and yyalloc.

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yystr)

Setup the input buffer state to scan a string. The next call to 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 yy_scan_bytes() instead.

Definition at line 2276 of file reader.c.

References yy_scan_bytes.

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1992 of file reader.c.

References yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state, yy_n_chars, and yyensure_buffer_stack.

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1867 of file reader.c.

References make_face_from_files::int, yy_accept, yy_base, yy_c_buf_p, yy_chk, yy_cp, yy_def, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, and yy_nxt.

Referenced by while().

+ Here is the caller graph for this function:

◆ yyalloc()

void* yyalloc ( yy_size_t  size)

Definition at line 2501 of file reader.c.

◆ yyerror()

static int yyerror ( const char *  s)
static

Error handler.

Parameters
slex-generated error message.

Definition at line 1058 of file reader.c.

References llevError, LOG(), and yytext.

Referenced by while().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ yyfree()

void yyfree ( void *  ptr)

Definition at line 2519 of file reader.c.

◆ yypush_buffer_state()

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

Definition at line 2141 of file reader.c.

References yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state, yy_n_chars, and yyensure_buffer_stack.

◆ yyrealloc()

void* yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2506 of file reader.c.

◆ yyrestart()

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

Definition at line 1975 of file reader.c.

References YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer, yy_load_buffer_state, yyensure_buffer_stack, and yyin.

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 2421 of file reader.c.

References yy_flex_debug.

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE *  _in_str)

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

Parameters
_in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 2406 of file reader.c.

References yyin.

◆ yyset_lineno()

void yyset_lineno ( int  _line_number)

Set the current line number.

Parameters
_line_numberline number

Definition at line 2394 of file reader.c.

References yylineno.

◆ yyset_out()

void yyset_out ( FILE *  _out_str)

Definition at line 2411 of file reader.c.

References yyout.

Variable Documentation

◆ rmap_lex_error

int rmap_lex_error
static

Definition at line 1047 of file reader.c.

Referenced by while().

◆ yy_accept

const flex_int16_t yy_accept[390]
static

Definition at line 625 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_act

int yy_act

Definition at line 1259 of file reader.c.

Referenced by while().

◆ yy_base

const flex_int16_t yy_base[427]
static

Definition at line 713 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_bp

char * yy_bp

Definition at line 1258 of file reader.c.

Referenced by while().

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 510 of file reader.c.

Referenced by yy_init_globals().

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 509 of file reader.c.

Referenced by yy_init_globals().

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 508 of file reader.c.

Referenced by yy_init_globals(), and yypush_buffer_state().

◆ yy_c_buf_p

char* yy_c_buf_p = NULL
static

◆ yy_chk

const flex_int16_t yy_chk[772]
static

Definition at line 904 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_cp

char* yy_cp

Definition at line 1258 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state

The main scanner function which does all the work.

Definition at line 1256 of file reader.c.

◆ yy_def

const flex_int16_t yy_def[427]
static

Definition at line 764 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 539 of file reader.c.

Referenced by while(), yy_switch_to_buffer(), and yypush_buffer_state().

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 671 of file reader.c.

Referenced by while(), and yy_get_previous_state().

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 997 of file reader.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 527 of file reader.c.

Referenced by while(), yy_switch_to_buffer(), and yypush_buffer_state().

◆ yy_init

int yy_init = 0
static

Definition at line 533 of file reader.c.

Referenced by if(), and yy_init_globals().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 994 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 993 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_meta

const YY_CHAR yy_meta[56]
static
Initial value:
=
{ 0,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
}

Definition at line 703 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_n_chars

int yy_n_chars
static

Definition at line 528 of file reader.c.

Referenced by while(), yy_get_next_buffer(), yy_switch_to_buffer(), and yypush_buffer_state().

◆ yy_nxt

const flex_int16_t yy_nxt[772]
static

Definition at line 815 of file reader.c.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

◆ yy_start

int yy_start = 0
static

Definition at line 534 of file reader.c.

Referenced by if(), while(), yy_get_previous_state(), and yy_init_globals().

◆ yyin

FILE* yyin = NULL

Definition at line 589 of file reader.c.

◆ yyleng

int yyleng

Definition at line 529 of file reader.c.

◆ yylineno

int yylineno = 1

Definition at line 594 of file reader.c.

◆ yyout

FILE * yyout = NULL

Definition at line 418 of file reader.c.

◆ yytext

char* yytext

Definition at line 1006 of file reader.c.

c
static event_registration c
Definition: citylife.cpp:425
yy_buffer_stack
static YY_BUFFER_STATE * yy_buffer_stack
Definition: reader.c:510
yy_size_t
size_t yy_size_t
Definition: loader.c:154
yy_state_type
int yy_state_type
Definition: loader.c:332
YY_BUF_SIZE
#define YY_BUF_SIZE
Definition: reader.c:398
buf
StringBuffer * buf
Definition: readable.cpp:1552
yyleng
#define yyleng
Definition: reader.c:22
yytext
#define yytext
Definition: reader.c:27
yyin
#define yyin
Definition: reader.c:21
rotate-tower.result
bool result
Definition: rotate-tower.py:13
yytext_ptr
#define yytext_ptr
Definition: reader.c:600
YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER
Definition: reader.c:518
yy_buffer_stack_top
static size_t yy_buffer_stack_top
Definition: reader.c:508
YY_CURRENT_BUFFER_LVALUE
#define YY_CURRENT_BUFFER_LVALUE
Definition: reader.c:524
YY_MORE_ADJ
#define YY_MORE_ADJ
Definition: reader.c:1004
make_face_from_files.int
int
Definition: make_face_from_files.py:32
yy_bp
char * yy_bp
Definition: reader.c:1258
yy_cp
char * yy_cp
Definition: reader.c:1258
yy_hold_char
static char yy_hold_char
Definition: reader.c:527
yy_c_buf_p
static char * yy_c_buf_p
Definition: reader.c:532