Crossfire Server, Trunk
reader.cpp 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.cpp:

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 rm_create_buffer_ALREADY_DEFINED
 
#define rm_delete_buffer_ALREADY_DEFINED
 
#define rm_flex_debug_ALREADY_DEFINED
 
#define rm_flush_buffer_ALREADY_DEFINED
 
#define rm_init_buffer_ALREADY_DEFINED
 
#define rm_load_buffer_state_ALREADY_DEFINED
 
#define rm_scan_buffer_ALREADY_DEFINED
 
#define rm_scan_bytes_ALREADY_DEFINED
 
#define rm_scan_string_ALREADY_DEFINED
 
#define rm_switch_to_buffer_ALREADY_DEFINED
 
#define rmalloc_ALREADY_DEFINED
 
#define rmensure_buffer_stack_ALREADY_DEFINED
 
#define rmfree_ALREADY_DEFINED
 
#define rmin_ALREADY_DEFINED
 
#define rmleng_ALREADY_DEFINED
 
#define rmlex_ALREADY_DEFINED
 
#define rmlineno_ALREADY_DEFINED
 
#define rmout_ALREADY_DEFINED
 
#define rmpop_buffer_state_ALREADY_DEFINED
 
#define rmpush_buffer_state_ALREADY_DEFINED
 
#define rmrealloc_ALREADY_DEFINED
 
#define rmrestart_ALREADY_DEFINED
 
#define rmtext_ALREADY_DEFINED
 
#define rmwrap()   (/*CONSTCOND*/1)
 
#define rmwrap_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   rm_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   rm_delete_buffer
 
#define YY_DO_BEFORE_ACTION
 
#define YY_END_OF_BUFFER   39
 
#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   rm_flex_debug
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define yy_flush_buffer   rm_flush_buffer
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_init_buffer   rm_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   rm_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   38
 
#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   rm_scan_buffer
 
#define yy_scan_bytes   rm_scan_bytes
 
#define yy_scan_string   rm_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   rm_switch_to_buffer
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_USER_ACTION
 
#define yyalloc   rmalloc
 
#define yyconst   const
 
#define yyensure_buffer_stack   rmensure_buffer_stack
 
#define yyfree   rmfree
 
#define yyget_debug   rmget_debug
 
#define yyget_extra   rmget_extra
 
#define yyget_in   rmget_in
 
#define yyget_leng   rmget_leng
 
#define yyget_lineno   rmget_lineno
 
#define yyget_out   rmget_out
 
#define yyget_text   rmget_text
 
#define yyin   rmin
 
#define yyleng   rmleng
 
#define yyless(n)
 
#define yyless(n)
 
#define yylex   rmlex
 
#define yylex_destroy   rmlex_destroy
 
#define yylex_init   rmlex_init
 
#define yylex_init_extra   rmlex_init_extra
 
#define yylineno   rmlineno
 
#define yymore()   yymore_used_but_not_detected
 
#define yynoreturn
 
#define yyout   rmout
 
#define yypop_buffer_state   rmpop_buffer_state
 
#define yypush_buffer_state   rmpush_buffer_state
 
#define yyrealloc   rmrealloc
 
#define yyrestart   rmrestart
 
#define yyset_debug   rmset_debug
 
#define yyset_extra   rmset_extra
 
#define yyset_in   rmset_in
 
#define yyset_lineno   rmset_lineno
 
#define yyset_out   rmset_out
 
#define YYSTATE   YY_START
 
#define YYTABLES_NAME   "yytables"
 
#define yyterminate()   return YY_NULL
 
#define yytext   rmtext
 
#define yytext_ptr   yytext
 
#define yywrap   rmwrap
 

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 [407]
 
int yy_act
 
static const flex_int16_t yy_base [445]
 
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 [483]
 
char * yy_cp
 
 YY_DECL
 
static const flex_int16_t yy_def [445]
 
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 [33]
 
static int yy_n_chars
 
static const flex_int16_t yy_nxt [483]
 
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 377 of file reader.cpp.

◆ ECHO

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

Definition at line 1107 of file reader.cpp.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 421 of file reader.cpp.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 422 of file reader.cpp.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 423 of file reader.cpp.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 39 of file reader.cpp.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 34 of file reader.cpp.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 289 of file reader.cpp.

◆ FVAL

#define FVAL   atof(rmap_yval())

Definition at line 992 of file reader.cpp.

◆ INITIAL

#define INITIAL   0

Definition at line 1013 of file reader.cpp.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 331 of file reader.cpp.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 322 of file reader.cpp.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 334 of file reader.cpp.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 325 of file reader.cpp.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 328 of file reader.cpp.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 319 of file reader.cpp.

◆ IVAL

#define IVAL   atoi(rmap_yval())

Definition at line 991 of file reader.cpp.

◆ MESSAGE

#define MESSAGE   1

Definition at line 1014 of file reader.cpp.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 944 of file reader.cpp.

◆ rm_create_buffer_ALREADY_DEFINED

#define rm_create_buffer_ALREADY_DEFINED

Definition at line 43 of file reader.cpp.

◆ rm_delete_buffer_ALREADY_DEFINED

#define rm_delete_buffer_ALREADY_DEFINED

Definition at line 49 of file reader.cpp.

◆ rm_flex_debug_ALREADY_DEFINED

#define rm_flex_debug_ALREADY_DEFINED

Definition at line 265 of file reader.cpp.

◆ rm_flush_buffer_ALREADY_DEFINED

#define rm_flush_buffer_ALREADY_DEFINED

Definition at line 79 of file reader.cpp.

◆ rm_init_buffer_ALREADY_DEFINED

#define rm_init_buffer_ALREADY_DEFINED

Definition at line 73 of file reader.cpp.

◆ rm_load_buffer_state_ALREADY_DEFINED

#define rm_load_buffer_state_ALREADY_DEFINED

Definition at line 85 of file reader.cpp.

◆ rm_scan_buffer_ALREADY_DEFINED

#define rm_scan_buffer_ALREADY_DEFINED

Definition at line 55 of file reader.cpp.

◆ rm_scan_bytes_ALREADY_DEFINED

#define rm_scan_bytes_ALREADY_DEFINED

Definition at line 67 of file reader.cpp.

◆ rm_scan_string_ALREADY_DEFINED

#define rm_scan_string_ALREADY_DEFINED

Definition at line 61 of file reader.cpp.

◆ rm_switch_to_buffer_ALREADY_DEFINED

#define rm_switch_to_buffer_ALREADY_DEFINED

Definition at line 91 of file reader.cpp.

◆ rmalloc_ALREADY_DEFINED

#define rmalloc_ALREADY_DEFINED

Definition at line 223 of file reader.cpp.

◆ rmensure_buffer_stack_ALREADY_DEFINED

#define rmensure_buffer_stack_ALREADY_DEFINED

Definition at line 109 of file reader.cpp.

◆ rmfree_ALREADY_DEFINED

#define rmfree_ALREADY_DEFINED

Definition at line 235 of file reader.cpp.

◆ rmin_ALREADY_DEFINED

#define rmin_ALREADY_DEFINED

Definition at line 253 of file reader.cpp.

◆ rmleng_ALREADY_DEFINED

#define rmleng_ALREADY_DEFINED

Definition at line 247 of file reader.cpp.

◆ rmlex_ALREADY_DEFINED

#define rmlex_ALREADY_DEFINED

Definition at line 115 of file reader.cpp.

◆ rmlineno_ALREADY_DEFINED

#define rmlineno_ALREADY_DEFINED

Definition at line 271 of file reader.cpp.

◆ rmout_ALREADY_DEFINED

#define rmout_ALREADY_DEFINED

Definition at line 259 of file reader.cpp.

◆ rmpop_buffer_state_ALREADY_DEFINED

#define rmpop_buffer_state_ALREADY_DEFINED

Definition at line 103 of file reader.cpp.

◆ rmpush_buffer_state_ALREADY_DEFINED

#define rmpush_buffer_state_ALREADY_DEFINED

Definition at line 97 of file reader.cpp.

◆ rmrealloc_ALREADY_DEFINED

#define rmrealloc_ALREADY_DEFINED

Definition at line 229 of file reader.cpp.

◆ rmrestart_ALREADY_DEFINED

#define rmrestart_ALREADY_DEFINED

Definition at line 121 of file reader.cpp.

◆ rmtext_ALREADY_DEFINED

#define rmtext_ALREADY_DEFINED

Definition at line 241 of file reader.cpp.

◆ rmwrap

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

Definition at line 586 of file reader.cpp.

◆ rmwrap_ALREADY_DEFINED

#define rmwrap_ALREADY_DEFINED

Definition at line 217 of file reader.cpp.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 347 of file reader.cpp.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 340 of file reader.cpp.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 343 of file reader.cpp.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 337 of file reader.cpp.

◆ unput

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

Definition at line 441 of file reader.cpp.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 582 of file reader.cpp.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1186 of file reader.cpp.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 399 of file reader.cpp.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 503 of file reader.cpp.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 491 of file reader.cpp.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 492 of file reader.cpp.

◆ yy_create_buffer

#define yy_create_buffer   rm_create_buffer

Definition at line 9 of file reader.cpp.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:

Definition at line 519 of file reader.cpp.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 525 of file reader.cpp.

◆ YY_DECL

#define YY_DECL   int rmap_lex_read(RMParms *RP)

Definition at line 984 of file reader.cpp.

◆ yy_delete_buffer

#define yy_delete_buffer   rm_delete_buffer

Definition at line 10 of file reader.cpp.

◆ YY_DO_BEFORE_ACTION

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

Definition at line 611 of file reader.cpp.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   39

Definition at line 618 of file reader.cpp.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 388 of file reader.cpp.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 2267 of file reader.cpp.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1025 of file reader.cpp.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1161 of file reader.cpp.

◆ yy_flex_debug

int yy_flex_debug   rm_flex_debug

Definition at line 21 of file reader.cpp.

Referenced by yyset_debug().

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 35 of file reader.cpp.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 36 of file reader.cpp.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 37 of file reader.cpp.

◆ yy_flush_buffer

#define yy_flush_buffer   rm_flush_buffer

Definition at line 15 of file reader.cpp.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 553 of file reader.cpp.

◆ yy_init_buffer

#define yy_init_buffer   rm_init_buffer

Definition at line 14 of file reader.cpp.

◆ 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 1114 of file reader.cpp.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file reader.cpp.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 425 of file reader.cpp.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 426 of file reader.cpp.

◆ yy_load_buffer_state

static void yy_load_buffer_state   rm_load_buffer_state

Definition at line 16 of file reader.cpp.

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 946 of file reader.cpp.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 563 of file reader.cpp.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 387 of file reader.cpp.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 1010 of file reader.cpp.

◆ YY_NULL

#define YY_NULL   0

Definition at line 366 of file reader.cpp.

◆ YY_NUM_RULES

#define YY_NUM_RULES   38

Definition at line 617 of file reader.cpp.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1098 of file reader.cpp.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 947 of file reader.cpp.

◆ 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 1189 of file reader.cpp.

◆ YY_SC_TO_UI

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

Definition at line 371 of file reader.cpp.

◆ yy_scan_buffer

#define yy_scan_buffer   rm_scan_buffer

Definition at line 11 of file reader.cpp.

◆ yy_scan_bytes

#define yy_scan_bytes   rm_scan_bytes

Definition at line 13 of file reader.cpp.

◆ yy_scan_string

#define yy_scan_string   rm_scan_string

Definition at line 12 of file reader.cpp.

◆ 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 573 of file reader.cpp.

◆ 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 564 of file reader.cpp.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 587 of file reader.cpp.

◆ YY_START

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

Definition at line 382 of file reader.cpp.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1156 of file reader.cpp.

◆ YY_STATE_BUF_SIZE

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

Definition at line 405 of file reader.cpp.

◆ YY_STATE_EOF

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

Definition at line 385 of file reader.cpp.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 444 of file reader.cpp.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   rm_switch_to_buffer

Definition at line 17 of file reader.cpp.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 408 of file reader.cpp.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 413 of file reader.cpp.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1181 of file reader.cpp.

◆ yyalloc

#define yyalloc   rmalloc

Definition at line 30 of file reader.cpp.

◆ yyconst

#define yyconst   const

Definition at line 357 of file reader.cpp.

◆ yyensure_buffer_stack

static void yyensure_buffer_stack   rmensure_buffer_stack

Definition at line 20 of file reader.cpp.

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

◆ yyfree

#define yyfree   rmfree

Definition at line 32 of file reader.cpp.

◆ yyget_debug

int yyget_debug   rmget_debug

Definition at line 147 of file reader.cpp.

◆ yyget_extra

YY_EXTRA_TYPE yyget_extra   rmget_extra

Definition at line 159 of file reader.cpp.

◆ yyget_in

FILE * yyget_in (   void)    rmget_in

Get the input stream.

Definition at line 171 of file reader.cpp.

◆ yyget_leng

int yyget_leng (   void)    rmget_leng

Get the length of the current token.

Definition at line 195 of file reader.cpp.

◆ yyget_lineno

int yyget_lineno (   void)    rmget_lineno

Get the current line number.

Definition at line 207 of file reader.cpp.

◆ yyget_out

FILE * yyget_out (   void)    rmget_out

Get the output stream.

Definition at line 183 of file reader.cpp.

◆ yyget_text

char * yyget_text (   void)    rmget_text

Get the current token.

Definition at line 201 of file reader.cpp.

◆ yyin

FILE * yyin   rmin

Definition at line 22 of file reader.cpp.

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

◆ yyleng

int yyleng   rmleng

Definition at line 23 of file reader.cpp.

◆ 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 2279 of file reader.cpp.

◆ 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 2279 of file reader.cpp.

◆ yylex

#define yylex   rmlex

Definition at line 24 of file reader.cpp.

◆ yylex_destroy

int yylex_destroy   rmlex_destroy

Definition at line 141 of file reader.cpp.

◆ yylex_init

#define yylex_init   rmlex_init

Definition at line 129 of file reader.cpp.

◆ yylex_init_extra

#define yylex_init_extra   rmlex_init_extra

Definition at line 135 of file reader.cpp.

◆ yylineno

int yylineno   rmlineno

Definition at line 25 of file reader.cpp.

Referenced by yyset_lineno().

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 945 of file reader.cpp.

◆ yynoreturn

#define yynoreturn

Definition at line 362 of file reader.cpp.

◆ yyout

FILE * yyout   rmout

Definition at line 26 of file reader.cpp.

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

◆ yypop_buffer_state

void yypop_buffer_state (   void)    rmpop_buffer_state

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

Definition at line 19 of file reader.cpp.

◆ yypush_buffer_state

#define yypush_buffer_state   rmpush_buffer_state

Definition at line 18 of file reader.cpp.

◆ yyrealloc

#define yyrealloc   rmrealloc

Definition at line 31 of file reader.cpp.

◆ yyrestart

#define yyrestart   rmrestart

Definition at line 27 of file reader.cpp.

◆ yyset_debug

#define yyset_debug   rmset_debug

Definition at line 153 of file reader.cpp.

◆ yyset_extra

#define yyset_extra   rmset_extra

Definition at line 165 of file reader.cpp.

◆ yyset_in

#define yyset_in   rmset_in

Definition at line 177 of file reader.cpp.

◆ yyset_lineno

#define yyset_lineno   rmset_lineno

Definition at line 213 of file reader.cpp.

◆ yyset_out

#define yyset_out   rmset_out

Definition at line 189 of file reader.cpp.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 383 of file reader.cpp.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2471 of file reader.cpp.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1151 of file reader.cpp.

◆ yytext

char * yytext   rmtext

Definition at line 28 of file reader.cpp.

Referenced by rmap_yval(), and yyerror().

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 601 of file reader.cpp.

◆ yywrap

#define yywrap   rmwrap

Definition at line 29 of file reader.cpp.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 311 of file reader.cpp.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 312 of file reader.cpp.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 310 of file reader.cpp.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 314 of file reader.cpp.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 315 of file reader.cpp.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 313 of file reader.cpp.

◆ YY_BUFFER_STATE

Definition at line 409 of file reader.cpp.

◆ YY_CHAR

Definition at line 588 of file reader.cpp.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 414 of file reader.cpp.

◆ yy_state_type

typedef int yy_state_type

Definition at line 592 of file reader.cpp.

Function Documentation

◆ if()

◆ load_parameters()

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

Definition at line 2492 of file reader.cpp.

References LL_EOF, LL_NORMAL, LO_LINEMODE, LO_NEWFILE, LO_NOREAD, MAX_BUF, rmap_lex_read(), YY_BUF_SIZE, yy_create_buffer, YY_CURRENT_BUFFER, yy_delete_buffer, yy_scan_string, and yy_switch_to_buffer.

Referenced by generate_map().

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

◆ 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 2481 of file reader.cpp.

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 2526 of file reader.cpp.

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

Referenced by cfapi_set_random_map_variable(), enter_random_map(), enter_random_template_map(), and RandomMap::RandomMap().

+ Here is the call graph for this function:
+ Here is the caller 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 1984 of file reader.cpp.

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 2012 of file reader.cpp.

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 2270 of file reader.cpp.

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 2059 of file reader.cpp.

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

◆ yy_get_next_buffer()

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1781 of file reader.cpp.

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 2031 of file reader.cpp.

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 2186 of file reader.cpp.

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 2236 of file reader.cpp.

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 2223 of file reader.cpp.

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 1939 of file reader.cpp.

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 1814 of file reader.cpp.

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 2448 of file reader.cpp.

◆ yyerror()

static int yyerror ( const char *  s)
static

Error handler.

Parameters
slex-generated error message.

Definition at line 1000 of file reader.cpp.

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 2466 of file reader.cpp.

◆ 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 2088 of file reader.cpp.

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 2453 of file reader.cpp.

◆ 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 1922 of file reader.cpp.

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.

+ Here is the call graph for this function:

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 2368 of file reader.cpp.

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 2353 of file reader.cpp.

References yyin.

◆ yyset_lineno()

void yyset_lineno ( int  _line_number)

Set the current line number.

Parameters
_line_numberline number

Definition at line 2341 of file reader.cpp.

References yylineno.

◆ yyset_out()

void yyset_out ( FILE *  _out_str)

Definition at line 2358 of file reader.cpp.

References yyout.

Variable Documentation

◆ rmap_lex_error

int rmap_lex_error
static

Definition at line 989 of file reader.cpp.

Referenced by while().

◆ yy_accept

const flex_int16_t yy_accept[407]
static

Definition at line 626 of file reader.cpp.

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

◆ yy_act

int yy_act

Definition at line 1201 of file reader.cpp.

Referenced by while().

◆ yy_base

const flex_int16_t yy_base[445]
static

Definition at line 715 of file reader.cpp.

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

◆ yy_bp

char * yy_bp

Definition at line 1200 of file reader.cpp.

Referenced by while().

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 511 of file reader.cpp.

Referenced by yy_init_globals().

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 510 of file reader.cpp.

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 509 of file reader.cpp.

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[483]
static

Definition at line 878 of file reader.cpp.

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

◆ yy_cp

char* yy_cp

Definition at line 1200 of file reader.cpp.

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 1198 of file reader.cpp.

◆ yy_def

const flex_int16_t yy_def[445]
static

Definition at line 768 of file reader.cpp.

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 540 of file reader.cpp.

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

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 675 of file reader.cpp.

Referenced by while(), and yy_get_previous_state().

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 939 of file reader.cpp.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 528 of file reader.cpp.

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

◆ yy_init

int yy_init = 0
static

Definition at line 534 of file reader.cpp.

Referenced by if(), and yy_init_globals().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 936 of file reader.cpp.

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 935 of file reader.cpp.

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

◆ yy_meta

const YY_CHAR yy_meta[33]
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
}

Definition at line 707 of file reader.cpp.

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

◆ yy_n_chars

int yy_n_chars
static

Definition at line 529 of file reader.cpp.

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

◆ yy_nxt

const flex_int16_t yy_nxt[483]
static

Definition at line 821 of file reader.cpp.

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

◆ yy_start

int yy_start = 0
static

Definition at line 535 of file reader.cpp.

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

◆ yyin

FILE* yyin = NULL

Definition at line 590 of file reader.cpp.

◆ yyleng

int yyleng

Definition at line 530 of file reader.cpp.

◆ yylineno

int yylineno = 1

Definition at line 595 of file reader.cpp.

◆ yyout

FILE * yyout = NULL

Definition at line 419 of file reader.cpp.

◆ yytext

char* yytext

Definition at line 948 of file reader.cpp.

YY_MORE_ADJ
#define YY_MORE_ADJ
Definition: reader.cpp:946
c
static event_registration c
Definition: citylife.cpp:425
yyleng
#define yyleng
Definition: reader.cpp:23
yyin
#define yyin
Definition: reader.cpp:22
yy_size_t
size_t yy_size_t
Definition: loader.cpp:155
yy_bp
char * yy_bp
Definition: reader.cpp:1200
buf
StringBuffer * buf
Definition: readable.cpp:1565
yytext
#define yytext
Definition: reader.cpp:28
rotate-tower.result
bool result
Definition: rotate-tower.py:13
yy_state_type
int yy_state_type
Definition: loader.cpp:333
yy_cp
char * yy_cp
Definition: reader.cpp:1200
yy_hold_char
static char yy_hold_char
Definition: reader.cpp:528
YY_CURRENT_BUFFER
#define YY_CURRENT_BUFFER
Definition: reader.cpp:519
yy_buffer_stack
static YY_BUFFER_STATE * yy_buffer_stack
Definition: reader.cpp:511
yy_c_buf_p
static char * yy_c_buf_p
Definition: reader.cpp:533
yytext_ptr
#define yytext_ptr
Definition: reader.cpp:601
make_face_from_files.int
int
Definition: make_face_from_files.py:32
YY_CURRENT_BUFFER_LVALUE
#define YY_CURRENT_BUFFER_LVALUE
Definition: reader.cpp:525
yy_buffer_stack_top
static size_t yy_buffer_stack_top
Definition: reader.cpp:509
YY_BUF_SIZE
#define YY_BUF_SIZE
Definition: reader.cpp:399