Classes | Macros | Typedefs | Functions | Variables
constexp.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "constexp.h"
#include "cppvalue.h"
#include "ce_parse.h"
#include "message.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   constexpYY_create_buffer
 
#define yy_delete_buffer   constexpYY_delete_buffer
 
#define yy_flex_debug   constexpYY_flex_debug
 
#define yy_init_buffer   constexpYY_init_buffer
 
#define yy_flush_buffer   constexpYY_flush_buffer
 
#define yy_load_buffer_state   constexpYY_load_buffer_state
 
#define yy_switch_to_buffer   constexpYY_switch_to_buffer
 
#define yyin   constexpYYin
 
#define yyleng   constexpYYleng
 
#define yylex   constexpYYlex
 
#define yylineno   constexpYYlineno
 
#define yyout   constexpYYout
 
#define yyrestart   constexpYYrestart
 
#define yytext   constexpYYtext
 
#define yywrap   constexpYYwrap
 
#define yyalloc   constexpYYalloc
 
#define yyrealloc   constexpYYrealloc
 
#define yyfree   constexpYYfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   constexpYYrestart(constexpYYin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   constexpYY_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   constexpYY_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   constexpYYtext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   33
 
#define YY_END_OF_BUFFER   34
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NO_INPUT   1
 
#define YY_NO_UNISTD_H   1
 
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
 
#define INITIAL   0
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( constexpYYtext, constexpYYleng, 1, constexpYYout )) {} } while (0)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int constexpYYlex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void constexpYYrestart (FILE *input_file)
 
void constexpYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE constexpYY_create_buffer (FILE *file, int size)
 
void constexpYY_delete_buffer (YY_BUFFER_STATE b)
 
void constexpYY_flush_buffer (YY_BUFFER_STATE b)
 
void constexpYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void constexpYYpop_buffer_state (void)
 
static void constexpYYensure_buffer_stack (void)
 
static void constexpYY_load_buffer_state (void)
 
static void constexpYY_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE constexpYY_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE constexpYY_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE constexpYY_scan_bytes (yyconst char *bytes, int len)
 
void * constexpYYalloc (yy_size_t)
 
void * constexpYYrealloc (void *, yy_size_t)
 
void constexpYYfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
static int yyread (char *buf, int max_size)
 
static int yy_init_globals (void)
 
int constexpYYlex_destroy (void)
 
int constexpYYget_debug (void)
 
void constexpYYset_debug (int debug_flag)
 
YY_EXTRA_TYPE constexpYYget_extra (void)
 
void constexpYYset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * constexpYYget_in (void)
 
void constexpYYset_in (FILE *in_str)
 
FILE * constexpYYget_out (void)
 
void constexpYYset_out (FILE *out_str)
 
int constexpYYget_leng (void)
 
char * constexpYYget_text (void)
 
int constexpYYget_lineno (void)
 
void constexpYYset_lineno (int line_number)
 
int constexpYYwrap (void)
 
int constexpYYlex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yy_fatal_error (yyconst char *msg)
 
bool parseconstexp (const char *fileName, int lineNr, const QCString &s)
 

Variables

int constexpYYleng
 
FILE * constexpYYin = (FILE *) 0
 
FILE * constexpYYout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int constexpYYlineno = 1
 
char * constexpYYtext
 
static yyconst flex_int16_t yy_accept [77]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [37]
 
static yyconst flex_int16_t yy_base [80]
 
static yyconst flex_int16_t yy_def [80]
 
static yyconst flex_int16_t yy_nxt [200]
 
static yyconst flex_int16_t yy_chk [200]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int constexpYY_flex_debug = 0
 
QCString g_strToken
 
CPPValue g_resultValue
 
int g_constExpLineNr
 
QCString g_constExpFileName
 
static const char * g_inputString
 
static int g_inputPosition
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file constexp.cpp.

#define ECHO   do { if (fwrite( constexpYYtext, constexpYYleng, 1, constexpYYout )) {} } while (0)

Definition at line 670 of file constexp.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file constexp.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file constexp.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file constexp.cpp.

#define FLEX_BETA

Definition at line 33 of file constexp.cpp.

#define FLEX_SCANNER

Definition at line 28 of file constexp.cpp.

#define FLEXINT_H

Definition at line 49 of file constexp.cpp.

#define INITIAL   0

Definition at line 585 of file constexp.cpp.

#define INT16_MAX   (32767)

Definition at line 92 of file constexp.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 83 of file constexp.cpp.

#define INT32_MAX   (2147483647)

Definition at line 95 of file constexp.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file constexp.cpp.

#define INT8_MAX   (127)

Definition at line 89 of file constexp.cpp.

#define INT8_MIN   (-128)

Definition at line 80 of file constexp.cpp.

#define REJECT   reject_used_but_not_detected

Definition at line 528 of file constexp.cpp.

#define UINT16_MAX   (65535U)

Definition at line 101 of file constexp.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file constexp.cpp.

#define UINT8_MAX   (255U)

Definition at line 98 of file constexp.cpp.

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

Definition at line 199 of file constexp.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 350 of file constexp.cpp.

#define YY_BREAK   break;

Definition at line 749 of file constexp.cpp.

#define YY_BUF_SIZE   16384

Definition at line 163 of file constexp.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 266 of file constexp.cpp.

#define YY_BUFFER_NEW   0

Definition at line 254 of file constexp.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 255 of file constexp.cpp.

#define yy_create_buffer   constexpYY_create_buffer

Definition at line 9 of file constexp.cpp.

#define YY_CURRENT_BUFFER
Value:
: NULL)
static size_t yy_buffer_stack_top
Definition: constexp.cpp:272
static YY_BUFFER_STATE * yy_buffer_stack
Definition: constexp.cpp:274

Definition at line 282 of file constexp.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 289 of file constexp.cpp.

#define YY_DECL   int constexpYYlex (void)

Definition at line 737 of file constexp.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 733 of file constexp.cpp.

#define yy_delete_buffer   constexpYY_delete_buffer

Definition at line 10 of file constexp.cpp.

#define YY_DO_BEFORE_ACTION
Value:
constexpYYleng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
register char * yy_cp
Definition: constexp.cpp:760
#define yytext_ptr
Definition: constexp.cpp:365
int constexpYYleng
Definition: constexp.cpp:294
static char * yy_c_buf_p
Definition: constexp.cpp:297
register char * yy_bp
Definition: constexp.cpp:760
static char yy_hold_char
Definition: constexp.cpp:292

Definition at line 375 of file constexp.cpp.

#define YY_END_OF_BUFFER   34

Definition at line 383 of file constexp.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file constexp.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 1778 of file constexp.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 596 of file constexp.cpp.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 724 of file constexp.cpp.

#define yy_flex_debug   constexpYY_flex_debug

Definition at line 11 of file constexp.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file constexp.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file constexp.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file constexp.cpp.

#define yy_flush_buffer   constexpYY_flush_buffer

Definition at line 13 of file constexp.cpp.

#define YY_FLUSH_BUFFER   constexpYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 318 of file constexp.cpp.

#define yy_init_buffer   constexpYY_init_buffer

Definition at line 12 of file constexp.cpp.

#define YY_INPUT (   buf,
  result,
  max_size 
)    result=yyread(buf,max_size);

Definition at line 570 of file constexp.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file constexp.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 183 of file constexp.cpp.

#define yy_load_buffer_state   constexpYY_load_buffer_state

Definition at line 14 of file constexp.cpp.

#define YY_MORE_ADJ   0

Definition at line 530 of file constexp.cpp.

#define yy_new_buffer   constexpYY_create_buffer

Definition at line 328 of file constexp.cpp.

#define YY_NEW_FILE   constexpYYrestart(constexpYYin )

Definition at line 157 of file constexp.cpp.

#define YY_NO_INPUT   1

Definition at line 558 of file constexp.cpp.

#define YY_NO_UNISTD_H   1

Definition at line 559 of file constexp.cpp.

#define YY_NULL   0

Definition at line 131 of file constexp.cpp.

#define YY_NUM_RULES   33

Definition at line 382 of file constexp.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 662 of file constexp.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 531 of file constexp.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 752 of file constexp.cpp.

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 138 of file constexp.cpp.

#define yy_set_bol (   at_bol)
Value:
{ \
constexpYYensure_buffer_stack (); \
constexpYY_create_buffer(constexpYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
FILE * constexpYYin
Definition: constexp.cpp:356
#define YY_BUF_SIZE
Definition: constexp.cpp:163
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
if(!(yy_init))
Definition: constexp.cpp:768

Definition at line 340 of file constexp.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
constexpYYensure_buffer_stack (); \
constexpYY_create_buffer(constexpYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
FILE * constexpYYin
Definition: constexp.cpp:356
#define YY_BUF_SIZE
Definition: constexp.cpp:163
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
if(!(yy_init))
Definition: constexp.cpp:768

Definition at line 330 of file constexp.cpp.

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

Definition at line 150 of file constexp.cpp.

#define YY_START_STACK_INCR   25

Definition at line 719 of file constexp.cpp.

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

Definition at line 168 of file constexp.cpp.

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

Definition at line 154 of file constexp.cpp.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 207 of file constexp.cpp.

#define yy_switch_to_buffer   constexpYY_switch_to_buffer

Definition at line 15 of file constexp.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file constexp.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 202 of file constexp.cpp.

#define YY_USER_ACTION

Definition at line 744 of file constexp.cpp.

#define yyalloc   constexpYYalloc

Definition at line 24 of file constexp.cpp.

#define yyconst

Definition at line 127 of file constexp.cpp.

#define yyfree   constexpYYfree

Definition at line 26 of file constexp.cpp.

#define yyin   constexpYYin

Definition at line 16 of file constexp.cpp.

#define yyleng   constexpYYleng

Definition at line 17 of file constexp.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up constexpYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up constexpYYtext again */ \
} \
while ( 0 )
#define YY_RESTORE_YY_MORE_OFFSET
Definition: constexp.cpp:531
while(1)
Definition: constexp.cpp:794
register char * yy_cp
Definition: constexp.cpp:760
#define YY_MORE_ADJ
Definition: constexp.cpp:530
std::void_t< T > n
static char * yy_c_buf_p
Definition: constexp.cpp:297
register char * yy_bp
Definition: constexp.cpp:760
#define YY_DO_BEFORE_ACTION
Definition: constexp.cpp:375
static char yy_hold_char
Definition: constexp.cpp:292

Definition at line 1790 of file constexp.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up constexpYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = constexpYYtext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
constexpYYleng = yyless_macro_arg; \
} \
while ( 0 )
while(1)
Definition: constexp.cpp:794
std::void_t< T > n
int constexpYYleng
Definition: constexp.cpp:294
static char * yy_c_buf_p
Definition: constexp.cpp:297
char * constexpYYtext
Definition: constexp.cpp:532
static char yy_hold_char
Definition: constexp.cpp:292

Definition at line 1790 of file constexp.cpp.

#define yylex   constexpYYlex

Definition at line 18 of file constexp.cpp.

#define yylineno   constexpYYlineno

Definition at line 19 of file constexp.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 529 of file constexp.cpp.

#define yyout   constexpYYout

Definition at line 20 of file constexp.cpp.

#define yyrealloc   constexpYYrealloc

Definition at line 25 of file constexp.cpp.

#define yyrestart   constexpYYrestart

Definition at line 21 of file constexp.cpp.

#define YYSTATE   YY_START

Definition at line 151 of file constexp.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 1980 of file constexp.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 714 of file constexp.cpp.

#define yytext   constexpYYtext

Definition at line 22 of file constexp.cpp.

#define yytext_ptr   constexpYYtext

Definition at line 365 of file constexp.cpp.

#define yywrap   constexpYYwrap

Definition at line 23 of file constexp.cpp.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 71 of file constexp.cpp.

typedef int flex_int32_t

Definition at line 72 of file constexp.cpp.

typedef signed char flex_int8_t

Definition at line 70 of file constexp.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 74 of file constexp.cpp.

typedef unsigned int flex_uint32_t

Definition at line 75 of file constexp.cpp.

typedef unsigned char flex_uint8_t

Definition at line 73 of file constexp.cpp.

Definition at line 172 of file constexp.cpp.

typedef unsigned char YY_CHAR

Definition at line 354 of file constexp.cpp.

typedef size_t yy_size_t

Definition at line 203 of file constexp.cpp.

typedef int yy_state_type

Definition at line 358 of file constexp.cpp.

Function Documentation

YY_BUFFER_STATE constexpYY_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 1495 of file constexp.cpp.

1496 {
1498 
1499  b = (YY_BUFFER_STATE) constexpYYalloc(sizeof( struct yy_buffer_state ) );
1500  if ( ! b )
1501  YY_FATAL_ERROR( "out of dynamic memory in constexpYY_create_buffer()" );
1502 
1503  b->yy_buf_size = size;
1504 
1505  /* yy_ch_buf has to be 2 characters longer than the size given because
1506  * we need to put in 2 end-of-buffer characters.
1507  */
1508  b->yy_ch_buf = (char *) constexpYYalloc(b->yy_buf_size + 2 );
1509  if ( ! b->yy_ch_buf )
1510  YY_FATAL_ERROR( "out of dynamic memory in constexpYY_create_buffer()" );
1511 
1512  b->yy_is_our_buffer = 1;
1513 
1515 
1516  return b;
1517 }
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
yy_size_t yy_buf_size
Definition: code.cpp:218
void * constexpYYalloc(yy_size_t)
Definition: constexp.cpp:1958
struct yy_buffer_state * YY_BUFFER_STATE
Definition: constexp.cpp:172
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
static bool * b
Definition: config.cpp:1043
static void constexpYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: constexp.cpp:1542
void constexpYY_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with constexpYY_create_buffer()

Definition at line 1523 of file constexp.cpp.

1524 {
1525 
1526  if ( ! b )
1527  return;
1528 
1529  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1531 
1532  if ( b->yy_is_our_buffer )
1533  constexpYYfree((void *) b->yy_ch_buf );
1534 
1535  constexpYYfree((void *) b );
1536 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
struct yy_buffer_state * YY_BUFFER_STATE
Definition: constexp.cpp:172
void constexpYYfree(void *)
Definition: constexp.cpp:1975
char * yy_ch_buf
Definition: code.cpp:212
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
int yy_is_our_buffer
Definition: code.cpp:229
void constexpYY_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 1570 of file constexp.cpp.

1571 {
1572  if ( ! b )
1573  return;
1574 
1575  b->yy_n_chars = 0;
1576 
1577  /* We always need two end-of-buffer characters. The first causes
1578  * a transition to the end-of-buffer state. The second causes
1579  * a jam in that state.
1580  */
1583 
1584  b->yy_buf_pos = &b->yy_ch_buf[0];
1585 
1586  b->yy_at_bol = 1;
1588 
1589  if ( b == YY_CURRENT_BUFFER )
1591 }
char * yy_buf_pos
Definition: code.cpp:213
int yy_n_chars
Definition: code.cpp:223
char * yy_ch_buf
Definition: code.cpp:212
#define YY_END_OF_BUFFER_CHAR
Definition: constexp.cpp:159
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
#define YY_BUFFER_NEW
Definition: constexp.cpp:254
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
int yy_buffer_status
Definition: code.cpp:252
static void constexpYY_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 1542 of file constexp.cpp.

1544 {
1545  int oerrno = errno;
1546 
1548 
1549  b->yy_input_file = file;
1550  b->yy_fill_buffer = 1;
1551 
1552  /* If b is the current buffer, then constexpYY_init_buffer was _probably_
1553  * called from constexpYYrestart() or through yy_get_next_buffer.
1554  * In that case, we don't want to reset the lineno or column.
1555  */
1556  if (b != YY_CURRENT_BUFFER){
1557  b->yy_bs_lineno = 1;
1558  b->yy_bs_column = 0;
1559  }
1560 
1561  b->yy_is_interactive = 0;
1562 
1563  errno = oerrno;
1564 }
FILE * yy_input_file
Definition: code.cpp:210
int yy_fill_buffer
Definition: code.cpp:250
int yy_bs_lineno
Definition: code.cpp:244
int errno
Contains the last error code.
Definition: structcmd.h:53
void constexpYY_flush_buffer(YY_BUFFER_STATE b)
Definition: constexp.cpp:1570
int yy_bs_column
Definition: code.cpp:245
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
int yy_is_interactive
Definition: code.cpp:236
static void constexpYY_load_buffer_state ( void  )
static

Definition at line 1481 of file constexp.cpp.

1482 {
1483  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1484  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1485  constexpYYin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1486  (yy_hold_char) = *(yy_c_buf_p);
1487 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
FILE * constexpYYin
Definition: constexp.cpp:356
#define yytext_ptr
Definition: constexp.cpp:365
static int yy_n_chars
Definition: constexp.cpp:293
static char * yy_c_buf_p
Definition: constexp.cpp:297
static char yy_hold_char
Definition: constexp.cpp:292
YY_BUFFER_STATE constexpYY_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 1697 of file constexp.cpp.

1698 {
1700 
1701  if ( size < 2 ||
1704  /* They forgot to leave room for the EOB's. */
1705  return 0;
1706 
1707  b = (YY_BUFFER_STATE) constexpYYalloc(sizeof( struct yy_buffer_state ) );
1708  if ( ! b )
1709  YY_FATAL_ERROR( "out of dynamic memory in constexpYY_scan_buffer()" );
1710 
1711  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
1712  b->yy_buf_pos = b->yy_ch_buf = base;
1713  b->yy_is_our_buffer = 0;
1714  b->yy_input_file = 0;
1715  b->yy_n_chars = b->yy_buf_size;
1716  b->yy_is_interactive = 0;
1717  b->yy_at_bol = 1;
1718  b->yy_fill_buffer = 0;
1720 
1722 
1723  return b;
1724 }
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
char * yy_buf_pos
Definition: code.cpp:213
FILE * yy_input_file
Definition: code.cpp:210
int yy_n_chars
Definition: code.cpp:223
int yy_fill_buffer
Definition: code.cpp:250
yy_size_t yy_buf_size
Definition: code.cpp:218
void * constexpYYalloc(yy_size_t)
Definition: constexp.cpp:1958
struct yy_buffer_state * YY_BUFFER_STATE
Definition: constexp.cpp:172
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void constexpYY_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Definition: constexp.cpp:1450
char * yy_ch_buf
Definition: code.cpp:212
#define YY_END_OF_BUFFER_CHAR
Definition: constexp.cpp:159
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_BUFFER_NEW
Definition: constexp.cpp:254
static bool * b
Definition: config.cpp:1043
int yy_is_interactive
Definition: code.cpp:236
int yy_buffer_status
Definition: code.cpp:252
YY_BUFFER_STATE constexpYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

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

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

Definition at line 1747 of file constexp.cpp.

1748 {
1750  char *buf;
1751  yy_size_t n;
1752  int i;
1753 
1754  /* Get memory for full buffer, including space for trailing EOB's. */
1755  n = _yybytes_len + 2;
1756  buf = (char *) constexpYYalloc(n );
1757  if ( ! buf )
1758  YY_FATAL_ERROR( "out of dynamic memory in constexpYY_scan_bytes()" );
1759 
1760  for ( i = 0; i < _yybytes_len; ++i )
1761  buf[i] = yybytes[i];
1762 
1763  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1764 
1765  b = constexpYY_scan_buffer(buf,n );
1766  if ( ! b )
1767  YY_FATAL_ERROR( "bad buffer in constexpYY_scan_bytes()" );
1768 
1769  /* It's okay to grow etc. this buffer, and we should throw it
1770  * away when we're done.
1771  */
1772  b->yy_is_our_buffer = 1;
1773 
1774  return b;
1775 }
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
YY_BUFFER_STATE constexpYY_scan_buffer(char *base, yy_size_t size)
Definition: constexp.cpp:1697
void * constexpYYalloc(yy_size_t)
Definition: constexp.cpp:1958
std::void_t< T > n
#define YY_END_OF_BUFFER_CHAR
Definition: constexp.cpp:159
int yy_is_our_buffer
Definition: code.cpp:229
static bool * b
Definition: config.cpp:1043
size_t yy_size_t
Definition: code.cpp:203
YY_BUFFER_STATE constexpYY_scan_string ( yyconst char *  yystr)

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

Definition at line 1734 of file constexp.cpp.

1735 {
1736 
1737  return constexpYY_scan_bytes(yystr,strlen(yystr) );
1738 }
YY_BUFFER_STATE constexpYY_scan_bytes(yyconst char *bytes, int len)
Definition: constexp.cpp:1747
void constexpYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1450 of file constexp.cpp.

1451 {
1452 
1453  /* TODO. We should be able to replace this entire function body
1454  * with
1455  * constexpYYpop_buffer_state();
1456  * constexpYYpush_buffer_state(new_buffer);
1457  */
1459  if ( YY_CURRENT_BUFFER == new_buffer )
1460  return;
1461 
1462  if ( YY_CURRENT_BUFFER )
1463  {
1464  /* Flush out information for old buffer. */
1465  *(yy_c_buf_p) = (yy_hold_char);
1466  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1467  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1468  }
1469 
1470  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1472 
1473  /* We don't actually know whether we did this switch during
1474  * EOF (constexpYYwrap()) processing, but the only time this flag
1475  * is looked at is after constexpYYwrap() is called, so it's safe
1476  * to go ahead and always set it.
1477  */
1479 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static void constexpYYensure_buffer_stack(void)
Definition: constexp.cpp:1648
static int yy_did_buffer_switch_on_eof
Definition: constexp.cpp:304
static int yy_n_chars
Definition: constexp.cpp:293
static char * yy_c_buf_p
Definition: constexp.cpp:297
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
static char yy_hold_char
Definition: constexp.cpp:292
void * constexpYYalloc ( yy_size_t  size)

Definition at line 1958 of file constexp.cpp.

1959 {
1960  return (void *) malloc( size );
1961 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static void constexpYYensure_buffer_stack ( void  )
static

Definition at line 1648 of file constexp.cpp.

1649 {
1650  int num_to_alloc;
1651 
1652  if (!(yy_buffer_stack)) {
1653 
1654  /* First allocation is just for 2 elements, since we don't know if this
1655  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1656  * immediate realloc on the next call.
1657  */
1658  num_to_alloc = 1;
1660  (num_to_alloc * sizeof(struct yy_buffer_state*)
1661  );
1662  if ( ! (yy_buffer_stack) )
1663  YY_FATAL_ERROR( "out of dynamic memory in constexpYYensure_buffer_stack()" );
1664 
1665  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1666 
1667  (yy_buffer_stack_max) = num_to_alloc;
1668  (yy_buffer_stack_top) = 0;
1669  return;
1670  }
1671 
1672  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1673 
1674  /* Increase the buffer to prepare for a possible push. */
1675  int grow_size = 8 /* arbitrary grow size */;
1676 
1677  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1679  ((yy_buffer_stack),
1680  num_to_alloc * sizeof(struct yy_buffer_state*)
1681  );
1682  if ( ! (yy_buffer_stack) )
1683  YY_FATAL_ERROR( "out of dynamic memory in constexpYYensure_buffer_stack()" );
1684 
1685  /* zero only the new slots.*/
1686  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1687  (yy_buffer_stack_max) = num_to_alloc;
1688  }
1689 }
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
static size_t yy_buffer_stack_max
Definition: constexp.cpp:273
void * constexpYYrealloc(void *, yy_size_t)
Definition: constexp.cpp:1963
static size_t yy_buffer_stack_top
Definition: constexp.cpp:272
void * constexpYYalloc(yy_size_t)
Definition: constexp.cpp:1958
static YY_BUFFER_STATE * yy_buffer_stack
Definition: constexp.cpp:274
void constexpYYfree ( void *  ptr)

Definition at line 1975 of file constexp.cpp.

1976 {
1977  free( (char *) ptr ); /* see constexpYYrealloc() for (char *) cast */
1978 }
int constexpYYget_debug ( void  )

Definition at line 1874 of file constexp.cpp.

1875 {
1876  return constexpYY_flex_debug;
1877 }
int constexpYY_flex_debug
Definition: constexp.cpp:523
YY_EXTRA_TYPE constexpYYget_extra ( void  )
FILE * constexpYYget_in ( void  )

Get the input stream.

Definition at line 1818 of file constexp.cpp.

1819 {
1820  return constexpYYin;
1821 }
FILE * constexpYYin
Definition: constexp.cpp:356
int constexpYYget_leng ( void  )

Get the length of the current token.

Definition at line 1834 of file constexp.cpp.

1835 {
1836  return constexpYYleng;
1837 }
int constexpYYleng
Definition: constexp.cpp:294
int constexpYYget_lineno ( void  )

Get the current line number.

Definition at line 1809 of file constexp.cpp.

1810 {
1811 
1812  return constexpYYlineno;
1813 }
int constexpYYlineno
Definition: constexp.cpp:362
FILE * constexpYYget_out ( void  )

Get the output stream.

Definition at line 1826 of file constexp.cpp.

1827 {
1828  return constexpYYout;
1829 }
FILE * constexpYYout
Definition: constexp.cpp:356
char * constexpYYget_text ( void  )

Get the current token.

Definition at line 1843 of file constexp.cpp.

1844 {
1845  return constexpYYtext;
1846 }
char * constexpYYtext
Definition: constexp.cpp:532
int constexpYYlex ( void  )
int constexpYYlex_destroy ( void  )

Definition at line 1913 of file constexp.cpp.

1914 {
1915 
1916  /* Pop the buffer stack, destroying each element. */
1917  while(YY_CURRENT_BUFFER){
1919  YY_CURRENT_BUFFER_LVALUE = NULL;
1921  }
1922 
1923  /* Destroy the stack itself. */
1925  (yy_buffer_stack) = NULL;
1926 
1927  /* Reset the globals. This is important in a non-reentrant scanner so the next time
1928  * constexpYYlex() is called, initialization will occur. */
1929  yy_init_globals( );
1930 
1931  return 0;
1932 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
void constexpYYpop_buffer_state(void)
Definition: constexp.cpp:1629
void constexpYYfree(void *)
Definition: constexp.cpp:1975
static int yy_init_globals(void)
Definition: constexp.cpp:1884
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
void constexpYY_delete_buffer(YY_BUFFER_STATE b)
Definition: constexp.cpp:1523
static YY_BUFFER_STATE * yy_buffer_stack
Definition: constexp.cpp:274
void constexpYYpop_buffer_state ( void  )

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

Definition at line 1629 of file constexp.cpp.

1630 {
1631  if (!YY_CURRENT_BUFFER)
1632  return;
1633 
1635  YY_CURRENT_BUFFER_LVALUE = NULL;
1636  if ((yy_buffer_stack_top) > 0)
1637  --(yy_buffer_stack_top);
1638 
1639  if (YY_CURRENT_BUFFER) {
1642  }
1643 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static size_t yy_buffer_stack_top
Definition: constexp.cpp:272
static int yy_did_buffer_switch_on_eof
Definition: constexp.cpp:304
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
void constexpYY_delete_buffer(YY_BUFFER_STATE b)
Definition: constexp.cpp:1523
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
void constexpYYpush_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 1599 of file constexp.cpp.

1600 {
1601  if (new_buffer == NULL)
1602  return;
1603 
1605 
1606  /* This block is copied from constexpYY_switch_to_buffer. */
1607  if ( YY_CURRENT_BUFFER )
1608  {
1609  /* Flush out information for old buffer. */
1610  *(yy_c_buf_p) = (yy_hold_char);
1611  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1612  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1613  }
1614 
1615  /* Only push if top exists. Otherwise, replace top. */
1616  if (YY_CURRENT_BUFFER)
1617  (yy_buffer_stack_top)++;
1618  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1619 
1620  /* copied from constexpYY_switch_to_buffer. */
1623 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static void constexpYYensure_buffer_stack(void)
Definition: constexp.cpp:1648
static size_t yy_buffer_stack_top
Definition: constexp.cpp:272
static int yy_did_buffer_switch_on_eof
Definition: constexp.cpp:304
static int yy_n_chars
Definition: constexp.cpp:293
static char * yy_c_buf_p
Definition: constexp.cpp:297
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
static char yy_hold_char
Definition: constexp.cpp:292
void * constexpYYrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 1963 of file constexp.cpp.

1964 {
1965  /* The cast to (char *) in the following accommodates both
1966  * implementations that use char* generic pointers, and those
1967  * that use void* generic pointers. It works with the latter
1968  * because both ANSI C and C++ allow castless assignment from
1969  * any pointer type to void*, and deal with argument conversions
1970  * as though doing an assignment.
1971  */
1972  return (void *) realloc( (char *) ptr, size );
1973 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void constexpYYrestart ( 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 1433 of file constexp.cpp.

1434 {
1435 
1436  if ( ! YY_CURRENT_BUFFER ){
1440  }
1441 
1444 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static void constexpYYensure_buffer_stack(void)
Definition: constexp.cpp:1648
FILE * constexpYYin
Definition: constexp.cpp:356
#define YY_BUF_SIZE
Definition: constexp.cpp:163
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
static void constexpYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: constexp.cpp:1542
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
YY_BUFFER_STATE constexpYY_create_buffer(FILE *file, int size)
Definition: constexp.cpp:1495
void constexpYYset_debug ( int  debug_flag)

Definition at line 1879 of file constexp.cpp.

1880 {
1881  constexpYY_flex_debug = bdebug ;
1882 }
int constexpYY_flex_debug
Definition: constexp.cpp:523
void constexpYYset_extra ( YY_EXTRA_TYPE  user_defined)
void constexpYYset_in ( FILE *  in_str)

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

Parameters
in_strA readable stream.
See also
constexpYY_switch_to_buffer

Definition at line 1864 of file constexp.cpp.

1865 {
1866  constexpYYin = in_str ;
1867 }
FILE * constexpYYin
Definition: constexp.cpp:356
void constexpYYset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1852 of file constexp.cpp.

1853 {
1854 
1855  constexpYYlineno = line_number;
1856 }
int constexpYYlineno
Definition: constexp.cpp:362
void constexpYYset_out ( FILE *  out_str)

Definition at line 1869 of file constexp.cpp.

1870 {
1871  constexpYYout = out_str ;
1872 }
FILE * constexpYYout
Definition: constexp.cpp:356
int constexpYYwrap ( void  )

Definition at line 2002 of file constexp.cpp.

2002 { return 1; }
if ( yy_init)

Definition at line 768 of file constexp.cpp.

769  {
770  (yy_init) = 1;
771 
772 #ifdef YY_USER_INIT
773  YY_USER_INIT;
774 #endif
775 
776  if ( ! (yy_start) )
777  (yy_start) = 1; /* first start state */
778 
779  if ( ! constexpYYin )
780  constexpYYin = stdin;
781 
782  if ( ! constexpYYout )
784 
785  if ( ! YY_CURRENT_BUFFER ) {
789  }
790 
792  }
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static void constexpYYensure_buffer_stack(void)
Definition: constexp.cpp:1648
FILE * constexpYYin
Definition: constexp.cpp:356
FILE * constexpYYout
Definition: constexp.cpp:356
#define YY_BUF_SIZE
Definition: constexp.cpp:163
static int yy_init
Definition: constexp.cpp:298
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
static int yy_start
Definition: constexp.cpp:299
static void constexpYY_load_buffer_state(void)
Definition: constexp.cpp:1481
YY_BUFFER_STATE constexpYY_create_buffer(FILE *file, int size)
Definition: constexp.cpp:1495
bool parseconstexp ( const char *  fileName,
int  lineNr,
const QCString s 
)

Definition at line 1986 of file constexp.cpp.

1987 {
1989  //printf("Expression: `%s'\n",s.data());
1991  g_constExpLineNr = lineNr;
1992  g_inputString = s;
1993  g_inputPosition = 0;
1995  constexpYYparse();
1996  //printf("Result: %ld\n",(long)g_resultValue);
1998  return (long)g_resultValue!=0;
1999 }
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:242
const bool FALSE
Definition: qglobal.h:370
FILE * constexpYYin
Definition: constexp.cpp:356
int g_constExpLineNr
Definition: constexp.cpp:563
static int g_inputPosition
Definition: constexp.cpp:567
int constexpYYparse()
fileName
Definition: dumpTree.py:9
int constexpYY_flex_debug
Definition: constexp.cpp:523
CPPValue g_resultValue
Definition: constexp.cpp:562
static QCString * s
Definition: config.cpp:1042
const bool TRUE
Definition: qglobal.h:371
static const char * g_inputString
Definition: constexp.cpp:566
void constexpYYrestart(FILE *input_file)
Definition: constexp.cpp:1433
QCString g_constExpFileName
Definition: constexp.cpp:564
while ( )

Definition at line 794 of file constexp.cpp.

795  {
796  yy_cp = (yy_c_buf_p);
797 
798  /* Support of constexpYYtext. */
799  *yy_cp = (yy_hold_char);
800 
801  /* yy_bp points to the position in yy_ch_buf of the start of
802  * the current run.
803  */
804  yy_bp = yy_cp;
805 
806  yy_current_state = (yy_start);
807 yy_match:
808  do
809  {
810  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
811  if ( yy_accept[yy_current_state] )
812  {
813  (yy_last_accepting_state) = yy_current_state;
815  }
816  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
817  {
818  yy_current_state = (int) yy_def[yy_current_state];
819  if ( yy_current_state >= 77 )
820  yy_c = yy_meta[(unsigned int) yy_c];
821  }
822  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
823  ++yy_cp;
824  }
825  while ( yy_current_state != 76 );
827  yy_current_state = (yy_last_accepting_state);
828 
829 yy_find_action:
830  yy_act = yy_accept[yy_current_state];
831 
833 
834 do_action: /* This label is used only to access EOF actions. */
835 
836  switch ( yy_act )
837  { /* beginning of action switch */
838  case 0: /* must back up */
839  /* undo the effects of YY_DO_BEFORE_ACTION */
840  *yy_cp = (yy_hold_char);
842  yy_current_state = (yy_last_accepting_state);
843  goto yy_find_action;
844 
845 case 1:
847 #line 59 "constexp.l"
848 { return TOK_QUESTIONMARK; }
849  YY_BREAK
850 case 2:
852 #line 60 "constexp.l"
853 { return TOK_COLON; }
854  YY_BREAK
855 case 3:
857 #line 61 "constexp.l"
858 { return TOK_OR; }
859  YY_BREAK
860 case 4:
862 #line 62 "constexp.l"
863 { return TOK_AND; }
864  YY_BREAK
865 case 5:
867 #line 63 "constexp.l"
868 { return TOK_BITWISEOR; }
869  YY_BREAK
870 case 6:
872 #line 64 "constexp.l"
873 { return TOK_BITWISEXOR; }
874  YY_BREAK
875 case 7:
877 #line 65 "constexp.l"
878 { return TOK_AMPERSAND; }
879  YY_BREAK
880 case 8:
882 #line 66 "constexp.l"
883 { return TOK_NOTEQUAL; }
884  YY_BREAK
885 case 9:
887 #line 67 "constexp.l"
888 { return TOK_EQUAL; }
889  YY_BREAK
890 case 10:
892 #line 68 "constexp.l"
893 { return TOK_LESSTHAN; }
894  YY_BREAK
895 case 11:
897 #line 69 "constexp.l"
898 { return TOK_GREATERTHAN; }
899  YY_BREAK
900 case 12:
902 #line 70 "constexp.l"
903 { return TOK_LESSTHANOREQUALTO; }
904  YY_BREAK
905 case 13:
907 #line 71 "constexp.l"
908 { return TOK_GREATERTHANOREQUALTO; }
909  YY_BREAK
910 case 14:
912 #line 72 "constexp.l"
913 { return TOK_SHIFTLEFT; }
914  YY_BREAK
915 case 15:
917 #line 73 "constexp.l"
918 { return TOK_SHIFTRIGHT; }
919  YY_BREAK
920 case 16:
922 #line 74 "constexp.l"
923 { return TOK_PLUS; }
924  YY_BREAK
925 case 17:
927 #line 75 "constexp.l"
928 { return TOK_MINUS; }
929  YY_BREAK
930 case 18:
932 #line 76 "constexp.l"
933 { return TOK_STAR; }
934  YY_BREAK
935 case 19:
937 #line 77 "constexp.l"
938 { return TOK_DIVIDE; }
939  YY_BREAK
940 case 20:
942 #line 78 "constexp.l"
943 { return TOK_MOD; }
944  YY_BREAK
945 case 21:
947 #line 79 "constexp.l"
948 { return TOK_TILDE; }
949  YY_BREAK
950 case 22:
952 #line 80 "constexp.l"
953 { return TOK_NOT; }
954  YY_BREAK
955 case 23:
957 #line 81 "constexp.l"
958 { return TOK_LPAREN; }
959  YY_BREAK
960 case 24:
962 #line 82 "constexp.l"
963 { return TOK_RPAREN; }
964  YY_BREAK
965 case 25:
967 #line 83 "constexp.l"
968 {
970  return TOK_CHARACTER;
971  }
972  YY_BREAK
973 case 26:
975 #line 87 "constexp.l"
977  return TOK_OCTALINT;
978  }
979  YY_BREAK
980 case 27:
982 #line 90 "constexp.l"
984  return TOK_DECIMALINT;
985  }
986  YY_BREAK
987 case 28:
989 #line 93 "constexp.l"
991  return TOK_HEXADECIMALINT;
992  }
993  YY_BREAK
994 case 29:
996 #line 96 "constexp.l"
997 {
999  }
1000  YY_BREAK
1001 case 30:
1003 #line 99 "constexp.l"
1004 {
1006  }
1007  YY_BREAK
1008 case 31:
1010 #line 102 "constexp.l"
1011 
1012  YY_BREAK
1013 case 32:
1014 /* rule 32 can match eol */
1016 #line 103 "constexp.l"
1017 
1018  YY_BREAK
1019 case 33:
1021 #line 105 "constexp.l"
1022 ECHO;
1023  YY_BREAK
1024 #line 1025 "/nova/app/home/novasoft/doxygen/doxygen-1.8.11/build/generated_src/constexp.cpp"
1025 case YY_STATE_EOF(INITIAL):
1026  yyterminate();
1027 
1028  case YY_END_OF_BUFFER:
1029  {
1030  /* Amount of text matched not including the EOB char. */
1031  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1032 
1033  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1034  *yy_cp = (yy_hold_char);
1036 
1037  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1038  {
1039  /* We're scanning a new file or input source. It's
1040  * possible that this happened because the user
1041  * just pointed constexpYYin at a new source and called
1042  * constexpYYlex(). If so, then we have to assure
1043  * consistency between YY_CURRENT_BUFFER and our
1044  * globals. Here is the right place to do so, because
1045  * this is the first action (other than possibly a
1046  * back-up) that will match for the new input source.
1047  */
1048  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1049  YY_CURRENT_BUFFER_LVALUE->yy_input_file = constexpYYin;
1050  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1051  }
1052 
1053  /* Note that here we test for yy_c_buf_p "<=" to the position
1054  * of the first EOB in the buffer, since yy_c_buf_p will
1055  * already have been incremented past the NUL character
1056  * (since all states make transitions on EOB to the
1057  * end-of-buffer state). Contrast this with the test
1058  * in input().
1059  */
1060  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1061  { /* This was really a NUL. */
1062  yy_state_type yy_next_state;
1063 
1064  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1065 
1066  yy_current_state = yy_get_previous_state( );
1067 
1068  /* Okay, we're now positioned to make the NUL
1069  * transition. We couldn't have
1070  * yy_get_previous_state() go ahead and do it
1071  * for us because it doesn't know how to deal
1072  * with the possibility of jamming (and we don't
1073  * want to build jamming into it because then it
1074  * will run more slowly).
1075  */
1076 
1077  yy_next_state = yy_try_NUL_trans( yy_current_state );
1078 
1080 
1081  if ( yy_next_state )
1082  {
1083  /* Consume the NUL. */
1084  yy_cp = ++(yy_c_buf_p);
1085  yy_current_state = yy_next_state;
1086  goto yy_match;
1087  }
1088 
1089  else
1090  {
1092  yy_current_state = (yy_last_accepting_state);
1093  goto yy_find_action;
1094  }
1095  }
1096 
1097  else switch ( yy_get_next_buffer( ) )
1098  {
1099  case EOB_ACT_END_OF_FILE:
1100  {
1102 
1103  if ( constexpYYwrap( ) )
1104  {
1105  /* Note: because we've taken care in
1106  * yy_get_next_buffer() to have set up
1107  * constexpYYtext, we can now set up
1108  * yy_c_buf_p so that if some total
1109  * hoser (like flex itself) wants to
1110  * call the scanner after we return the
1111  * YY_NULL, it'll still work - another
1112  * YY_NULL will get returned.
1113  */
1115 
1117  goto do_action;
1118  }
1119 
1120  else
1121  {
1122  if ( ! (yy_did_buffer_switch_on_eof) )
1123  YY_NEW_FILE;
1124  }
1125  break;
1126  }
1127 
1128  case EOB_ACT_CONTINUE_SCAN:
1129  (yy_c_buf_p) =
1130  (yytext_ptr) + yy_amount_of_matched_text;
1131 
1132  yy_current_state = yy_get_previous_state( );
1133 
1134  yy_cp = (yy_c_buf_p);
1136  goto yy_match;
1137 
1138  case EOB_ACT_LAST_MATCH:
1139  (yy_c_buf_p) =
1140  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1141 
1142  yy_current_state = yy_get_previous_state( );
1143 
1144  yy_cp = (yy_c_buf_p);
1146  goto yy_find_action;
1147  }
1148  break;
1149  }
1150 
1151  default:
1153  "fatal flex scanner internal error--no action found" );
1154  } /* end of action switch */
1155  } /* end of scanning one token */
#define YY_RESTORE_YY_MORE_OFFSET
Definition: constexp.cpp:531
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
static int yy_get_next_buffer(void)
Definition: constexp.cpp:1165
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
static yy_state_type yy_get_previous_state(void)
Definition: constexp.cpp:1299
static yyconst flex_int32_t yy_ec[256]
Definition: constexp.cpp:403
#define YY_BREAK
Definition: constexp.cpp:749
#define yyterminate()
Definition: constexp.cpp:714
static yyconst flex_int16_t yy_def[80]
Definition: constexp.cpp:455
#define YY_SC_TO_UI(c)
Definition: constexp.cpp:138
static yyconst flex_int32_t yy_meta[37]
Definition: constexp.cpp:435
register char * yy_cp
Definition: constexp.cpp:760
FILE * constexpYYin
Definition: constexp.cpp:356
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
Definition: constexp.cpp:1331
QCString g_strToken
Definition: constexp.cpp:561
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_base[80]
Definition: constexp.cpp:443
#define yytext_ptr
Definition: constexp.cpp:365
#define INITIAL
Definition: constexp.cpp:585
#define YY_MORE_ADJ
Definition: constexp.cpp:530
#define YY_END_OF_BUFFER
Definition: constexp.cpp:383
static int yy_did_buffer_switch_on_eof
Definition: constexp.cpp:304
#define YY_NEW_FILE
Definition: constexp.cpp:157
#define YY_STATE_EOF(state)
Definition: constexp.cpp:154
#define YY_START
Definition: constexp.cpp:150
#define ECHO
Definition: constexp.cpp:670
#define YY_RULE_SETUP
Definition: constexp.cpp:752
static int yy_n_chars
Definition: constexp.cpp:293
#define EOB_ACT_CONTINUE_SCAN
Definition: constexp.cpp:179
register int yy_act
Definition: constexp.cpp:761
#define EOB_ACT_END_OF_FILE
Definition: constexp.cpp:180
#define YY_BUFFER_NORMAL
Definition: constexp.cpp:255
unsigned char YY_CHAR
Definition: code.cpp:357
static char * yy_c_buf_p
Definition: constexp.cpp:297
static int yy_start
Definition: constexp.cpp:299
int constexpYYwrap(void)
Definition: constexp.cpp:2002
register char * yy_bp
Definition: constexp.cpp:760
#define YY_BUFFER_NEW
Definition: constexp.cpp:254
#define EOB_ACT_LAST_MATCH
Definition: constexp.cpp:181
static yyconst flex_int16_t yy_chk[200]
Definition: constexp.cpp:493
static char * yy_last_accepting_cpos
Definition: constexp.cpp:520
char * constexpYYtext
Definition: constexp.cpp:532
static yy_state_type yy_last_accepting_state
Definition: constexp.cpp:519
#define YY_DO_BEFORE_ACTION
Definition: constexp.cpp:375
static yyconst flex_int16_t yy_accept[77]
Definition: constexp.cpp:391
static char yy_hold_char
Definition: constexp.cpp:292
static yyconst flex_int16_t yy_nxt[200]
Definition: constexp.cpp:467
static void yy_fatal_error ( yyconst char  msg[])
static
static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 1781 of file constexp.cpp.

1782 {
1783  (void) fprintf( stderr, "%s\n", msg );
1784  exit( YY_EXIT_FAILURE );
1785 }
void msg(const char *fmt,...)
Definition: message.cpp:107
#define YY_EXIT_FAILURE
Definition: constexp.cpp:1778
static int yy_get_next_buffer ( void  )
static

Definition at line 1165 of file constexp.cpp.

1166 {
1167  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1168  register char *source = (yytext_ptr);
1169  register int number_to_move, i;
1170  int ret_val;
1171 
1172  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1174  "fatal flex scanner internal error--end of buffer missed" );
1175 
1176  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1177  { /* Don't try to fill the buffer, so this is an EOF. */
1178  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1179  {
1180  /* We matched a single character, the EOB, so
1181  * treat this as a final EOF.
1182  */
1183  return EOB_ACT_END_OF_FILE;
1184  }
1185 
1186  else
1187  {
1188  /* We matched some text prior to the EOB, first
1189  * process it.
1190  */
1191  return EOB_ACT_LAST_MATCH;
1192  }
1193  }
1194 
1195  /* Try to read more data. */
1196 
1197  /* First move last chars to start of buffer. */
1198  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1199 
1200  for ( i = 0; i < number_to_move; ++i )
1201  *(dest++) = *(source++);
1202 
1203  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1204  /* don't do the read, it's not guaranteed to return an EOF,
1205  * just force an EOF
1206  */
1207  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1208 
1209  else
1210  {
1211  int num_to_read =
1212  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1213 
1214  while ( num_to_read <= 0 )
1215  { /* Not enough room in the buffer - grow it. */
1216 
1217  /* just a shorter name for the current buffer */
1219 
1220  int yy_c_buf_p_offset =
1221  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1222 
1223  if ( b->yy_is_our_buffer )
1224  {
1225  int new_size = b->yy_buf_size * 2;
1226 
1227  if ( new_size <= 0 )
1228  b->yy_buf_size += b->yy_buf_size / 8;
1229  else
1230  b->yy_buf_size *= 2;
1231 
1232  b->yy_ch_buf = (char *)
1233  /* Include room in for 2 EOB chars. */
1234  constexpYYrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
1235  }
1236  else
1237  /* Can't grow it, we don't own it. */
1238  b->yy_ch_buf = 0;
1239 
1240  if ( ! b->yy_ch_buf )
1242  "fatal error - scanner input buffer overflow" );
1243 
1244  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1245 
1246  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1247  number_to_move - 1;
1248 
1249  }
1250 
1251  if ( num_to_read > YY_READ_BUF_SIZE )
1252  num_to_read = YY_READ_BUF_SIZE;
1253 
1254  /* Read in more data. */
1255  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1256  (yy_n_chars), (size_t) num_to_read );
1257 
1258  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1259  }
1260 
1261  if ( (yy_n_chars) == 0 )
1262  {
1263  if ( number_to_move == YY_MORE_ADJ )
1264  {
1265  ret_val = EOB_ACT_END_OF_FILE;
1267  }
1268 
1269  else
1270  {
1271  ret_val = EOB_ACT_LAST_MATCH;
1272  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1274  }
1275  }
1276 
1277  else
1278  ret_val = EOB_ACT_CONTINUE_SCAN;
1279 
1280  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1281  /* Extend the array by 50%, plus the number we really need. */
1282  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1283  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) constexpYYrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
1284  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1285  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1286  }
1287 
1288  (yy_n_chars) += number_to_move;
1291 
1292  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1293 
1294  return ret_val;
1295 }
#define YY_FATAL_ERROR(msg)
Definition: constexp.cpp:724
#define YY_CURRENT_BUFFER_LVALUE
Definition: constexp.cpp:289
void * constexpYYrealloc(void *, yy_size_t)
Definition: constexp.cpp:1963
FILE * constexpYYin
Definition: constexp.cpp:356
yy_size_t yy_buf_size
Definition: code.cpp:218
#define yytext_ptr
Definition: constexp.cpp:365
#define YY_MORE_ADJ
Definition: constexp.cpp:530
#define YY_INPUT(buf, result, max_size)
Definition: constexp.cpp:570
#define YY_READ_BUF_SIZE
Definition: constexp.cpp:662
static int yy_n_chars
Definition: constexp.cpp:293
#define EOB_ACT_CONTINUE_SCAN
Definition: constexp.cpp:179
#define EOB_ACT_END_OF_FILE
Definition: constexp.cpp:180
char * yy_ch_buf
Definition: code.cpp:212
#define YY_BUFFER_EOF_PENDING
Definition: constexp.cpp:266
static char * yy_c_buf_p
Definition: constexp.cpp:297
#define YY_END_OF_BUFFER_CHAR
Definition: constexp.cpp:159
#define YY_CURRENT_BUFFER
Definition: constexp.cpp:282
int yy_is_our_buffer
Definition: code.cpp:229
#define EOB_ACT_LAST_MATCH
Definition: constexp.cpp:181
static bool * b
Definition: config.cpp:1043
size_t yy_size_t
Definition: code.cpp:203
void constexpYYrestart(FILE *input_file)
Definition: constexp.cpp:1433
static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 1299 of file constexp.cpp.

1300 {
1301  register yy_state_type yy_current_state;
1302  register char *yy_cp;
1303 
1304  yy_current_state = (yy_start);
1305 
1306  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1307  {
1308  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1309  if ( yy_accept[yy_current_state] )
1310  {
1311  (yy_last_accepting_state) = yy_current_state;
1312  (yy_last_accepting_cpos) = yy_cp;
1313  }
1314  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1315  {
1316  yy_current_state = (int) yy_def[yy_current_state];
1317  if ( yy_current_state >= 77 )
1318  yy_c = yy_meta[(unsigned int) yy_c];
1319  }
1320  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1321  }
1322 
1323  return yy_current_state;
1324 }
static yyconst flex_int32_t yy_ec[256]
Definition: constexp.cpp:403
static yyconst flex_int16_t yy_def[80]
Definition: constexp.cpp:455
#define YY_SC_TO_UI(c)
Definition: constexp.cpp:138
static yyconst flex_int32_t yy_meta[37]
Definition: constexp.cpp:435
register char * yy_cp
Definition: constexp.cpp:760
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_base[80]
Definition: constexp.cpp:443
#define yytext_ptr
Definition: constexp.cpp:365
#define YY_MORE_ADJ
Definition: constexp.cpp:530
unsigned char YY_CHAR
Definition: code.cpp:357
static char * yy_c_buf_p
Definition: constexp.cpp:297
static int yy_start
Definition: constexp.cpp:299
static yyconst flex_int16_t yy_chk[200]
Definition: constexp.cpp:493
static char * yy_last_accepting_cpos
Definition: constexp.cpp:520
static yy_state_type yy_last_accepting_state
Definition: constexp.cpp:519
static yyconst flex_int16_t yy_accept[77]
Definition: constexp.cpp:391
static yyconst flex_int16_t yy_nxt[200]
Definition: constexp.cpp:467
static int yy_init_globals ( void  )
static

Definition at line 1884 of file constexp.cpp.

1885 {
1886  /* Initialization is the same as for the non-reentrant scanner.
1887  * This function is called from constexpYYlex_destroy(), so don't allocate here.
1888  */
1889 
1890  (yy_buffer_stack) = 0;
1891  (yy_buffer_stack_top) = 0;
1892  (yy_buffer_stack_max) = 0;
1893  (yy_c_buf_p) = (char *) 0;
1894  (yy_init) = 0;
1895  (yy_start) = 0;
1896 
1897 /* Defined in main.c */
1898 #ifdef YY_STDINIT
1899  constexpYYin = stdin;
1901 #else
1902  constexpYYin = (FILE *) 0;
1903  constexpYYout = (FILE *) 0;
1904 #endif
1905 
1906  /* For future reference: Set errno on error, since we are called by
1907  * constexpYYlex_init()
1908  */
1909  return 0;
1910 }
static size_t yy_buffer_stack_max
Definition: constexp.cpp:273
static size_t yy_buffer_stack_top
Definition: constexp.cpp:272
FILE * constexpYYin
Definition: constexp.cpp:356
FILE * constexpYYout
Definition: constexp.cpp:356
static int yy_init
Definition: constexp.cpp:298
static char * yy_c_buf_p
Definition: constexp.cpp:297
static int yy_start
Definition: constexp.cpp:299
static YY_BUFFER_STATE * yy_buffer_stack
Definition: constexp.cpp:274
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1331 of file constexp.cpp.

1332 {
1333  register int yy_is_jam;
1334  register char *yy_cp = (yy_c_buf_p);
1335 
1336  register YY_CHAR yy_c = 1;
1337  if ( yy_accept[yy_current_state] )
1338  {
1339  (yy_last_accepting_state) = yy_current_state;
1340  (yy_last_accepting_cpos) = yy_cp;
1341  }
1342  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1343  {
1344  yy_current_state = (int) yy_def[yy_current_state];
1345  if ( yy_current_state >= 77 )
1346  yy_c = yy_meta[(unsigned int) yy_c];
1347  }
1348  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1349  yy_is_jam = (yy_current_state == 76);
1350 
1351  return yy_is_jam ? 0 : yy_current_state;
1352 }
static yyconst flex_int16_t yy_def[80]
Definition: constexp.cpp:455
static yyconst flex_int32_t yy_meta[37]
Definition: constexp.cpp:435
register char * yy_cp
Definition: constexp.cpp:760
static yyconst flex_int16_t yy_base[80]
Definition: constexp.cpp:443
unsigned char YY_CHAR
Definition: code.cpp:357
static char * yy_c_buf_p
Definition: constexp.cpp:297
static yyconst flex_int16_t yy_chk[200]
Definition: constexp.cpp:493
static char * yy_last_accepting_cpos
Definition: constexp.cpp:520
static yy_state_type yy_last_accepting_state
Definition: constexp.cpp:519
static yyconst flex_int16_t yy_accept[77]
Definition: constexp.cpp:391
static yyconst flex_int16_t yy_nxt[200]
Definition: constexp.cpp:467
static int yyread ( char *  buf,
int  max_size 
)
static

Definition at line 572 of file constexp.cpp.

573 {
574  int c=0;
575  while( c < max_size && g_inputString[g_inputPosition] )
576  {
577  *buf = g_inputString[g_inputPosition++] ;
578  c++; buf++;
579  }
580  return c;
581 }
static int g_inputPosition
Definition: constexp.cpp:567
static const char * g_inputString
Definition: constexp.cpp:566

Variable Documentation

int constexpYY_flex_debug = 0

Definition at line 523 of file constexp.cpp.

FILE * constexpYYin = (FILE *) 0

Definition at line 356 of file constexp.cpp.

int constexpYYleng

Definition at line 294 of file constexp.cpp.

int constexpYYlineno = 1

Definition at line 362 of file constexp.cpp.

FILE * constexpYYout = (FILE *) 0

Definition at line 356 of file constexp.cpp.

char * constexpYYtext

Definition at line 532 of file constexp.cpp.

QCString g_constExpFileName

Definition at line 564 of file constexp.cpp.

int g_constExpLineNr

Definition at line 563 of file constexp.cpp.

int g_inputPosition
static

Definition at line 567 of file constexp.cpp.

const char* g_inputString
static

Definition at line 566 of file constexp.cpp.

CPPValue g_resultValue

Definition at line 562 of file constexp.cpp.

QCString g_strToken

Definition at line 561 of file constexp.cpp.

yyconst flex_int16_t yy_accept[77]
static
Initial value:
=
{ 0,
0, 0, 34, 31, 32, 22, 20, 7, 31, 23,
24, 18, 16, 17, 31, 19, 26, 27, 2, 10,
31, 11, 1, 6, 5, 21, 8, 4, 0, 0,
29, 29, 26, 0, 0, 26, 26, 0, 27, 27,
27, 14, 12, 9, 13, 15, 3, 25, 0, 0,
0, 0, 29, 29, 0, 30, 26, 26, 26, 28,
27, 27, 27, 0, 0, 29, 30, 26, 28, 28,
27, 28, 28, 28, 28, 0
}

Definition at line 391 of file constexp.cpp.

register int yy_act

Definition at line 761 of file constexp.cpp.

yyconst flex_int16_t yy_base[80]
static
Initial value:
=
{ 0,
0, 0, 145, 163, 163, 119, 163, 132, 108, 163,
163, 163, 163, 163, 21, 163, 26, 47, 163, 25,
116, 26, 163, 163, 101, 163, 163, 163, 41, 71,
90, 40, 33, 52, 68, 55, 106, 0, 0, 63,
105, 163, 163, 163, 163, 163, 163, 163, 123, 94,
0, 80, 163, 0, 102, 108, 102, 163, 82, 86,
71, 163, 68, 70, 111, 126, 163, 163, 94, 46,
163, 31, 163, 25, 163, 163, 159, 47, 38
}

Definition at line 443 of file constexp.cpp.

register char * yy_bp

Definition at line 760 of file constexp.cpp.

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 274 of file constexp.cpp.

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 273 of file constexp.cpp.

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 272 of file constexp.cpp.

char* yy_c_buf_p = (char *) 0
static

Definition at line 297 of file constexp.cpp.

yyconst flex_int16_t yy_chk[200]
static
Initial value:
=
{ 0,
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, 15, 15, 15, 17,
79, 17, 17, 17, 20, 20, 22, 22, 29, 78,
17, 74, 17, 17, 17, 32, 32, 32, 72, 17,
18, 33, 18, 18, 18, 34, 33, 34, 34, 34,
29, 18, 70, 18, 18, 30, 34, 64, 30, 35,
35, 36, 36, 35, 35, 35, 30, 30, 30, 40,
40, 52, 52, 30, 63, 52, 52, 52, 61, 30,
30, 50, 30, 30, 30, 31, 31, 31, 59, 50,
50, 50, 60, 60, 31, 31, 31, 55, 55, 55,
69, 69, 31, 56, 56, 56, 65, 65, 65, 57,
49, 41, 37, 56, 56, 25, 21, 9, 8, 6,
56, 66, 66, 66, 3, 0, 0, 0, 0, 0,
0, 66, 66, 0, 0, 0, 0, 0, 66, 77,
0, 77, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76
}

Definition at line 493 of file constexp.cpp.

register char* yy_cp

Definition at line 760 of file constexp.cpp.

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: code.cpp:361

The main scanner function which does all the work.

Definition at line 758 of file constexp.cpp.

yyconst flex_int16_t yy_def[80]
static
Initial value:
=
{ 0,
76, 1, 76, 76, 76, 76, 76, 76, 77, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 77, 76,
76, 31, 17, 76, 76, 76, 76, 78, 18, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
79, 76, 76, 32, 76, 76, 76, 76, 76, 78,
76, 76, 76, 79, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 0, 76, 76, 76
}

Definition at line 455 of file constexp.cpp.

int yy_did_buffer_switch_on_eof
static

Definition at line 304 of file constexp.cpp.

yyconst flex_int32_t yy_ec[256]
static

Definition at line 403 of file constexp.cpp.

char yy_hold_char
static

Definition at line 292 of file constexp.cpp.

int yy_init = 0
static

Definition at line 298 of file constexp.cpp.

char* yy_last_accepting_cpos
static

Definition at line 520 of file constexp.cpp.

yy_state_type yy_last_accepting_state
static

Definition at line 519 of file constexp.cpp.

yyconst flex_int32_t yy_meta[37]
static
Initial value:
=
{ 0,
1, 2, 2, 1, 1, 1, 1, 2, 1, 1,
1, 1, 1, 1, 1, 3, 3, 3, 1, 1,
1, 1, 1, 3, 3, 3, 1, 1, 1, 1,
1, 3, 3, 1, 1, 1
}

Definition at line 435 of file constexp.cpp.

int yy_n_chars
static

Definition at line 293 of file constexp.cpp.

yyconst flex_int16_t yy_nxt[200]
static
Initial value:
=
{ 0,
4, 5, 4, 6, 4, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 18, 19, 20,
21, 22, 23, 4, 4, 4, 4, 4, 4, 4,
24, 4, 4, 4, 25, 26, 31, 31, 31, 32,
64, 33, 33, 34, 42, 43, 45, 46, 48, 60,
35, 75, 36, 37, 38, 54, 54, 54, 73, 38,
32, 76, 39, 39, 39, 32, 76, 34, 34, 34,
76, 35, 74, 40, 41, 49, 35, 48, 49, 55,
55, 57, 58, 56, 56, 56, 50, 50, 50, 61,
62, 65, 65, 49, 71, 66, 66, 66, 62, 51,
49, 48, 49, 49, 51, 31, 31, 31, 68, 50,
50, 50, 69, 70, 52, 53, 53, 56, 56, 56,
72, 73, 53, 56, 56, 56, 66, 66, 66, 58,
48, 63, 59, 67, 67, 47, 44, 30, 28, 27,
67, 66, 66, 66, 76, 76, 76, 76, 76, 76,
76, 53, 53, 76, 76, 76, 76, 76, 53, 29,
76, 29, 3, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
76, 76, 76, 76, 76, 76, 76, 76, 76
}

Definition at line 467 of file constexp.cpp.

int yy_start = 0
static

Definition at line 299 of file constexp.cpp.