#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 |
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_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
#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 |
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 |
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.
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 | ) |
Definition at line 340 of file constexp.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
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 | ) |
Definition at line 1790 of file constexp.cpp.
#define yyless | ( | n | ) |
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.
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 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.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
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.
YY_BUFFER_STATE constexpYY_create_buffer | ( | FILE * | file, |
int | size | ||
) |
Allocate and initialize an input buffer state.
file | A readable stream. |
size | The character buffer size in bytes. When in doubt, use YY_BUF_SIZE . |
Definition at line 1495 of file constexp.cpp.
void constexpYY_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with constexpYY_create_buffer() |
Definition at line 1523 of file constexp.cpp.
void constexpYY_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
Discard all buffered characters. On the next scan, YY_INPUT will be called.
b | the buffer state to be flushed, usually YY_CURRENT_BUFFER . |
Definition at line 1570 of file constexp.cpp.
|
static |
Definition at line 1542 of file constexp.cpp.
|
static |
Definition at line 1481 of file constexp.cpp.
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.
base | the character buffer |
size | the size in bytes of the character buffer |
Definition at line 1697 of file constexp.cpp.
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.
bytes | the byte buffer to scan |
len | the number of bytes in the buffer pointed to by bytes. |
Definition at line 1747 of file constexp.cpp.
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.
yystr | a NUL-terminated string to scan |
Definition at line 1734 of file constexp.cpp.
void constexpYY_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 1450 of file constexp.cpp.
void * constexpYYalloc | ( | yy_size_t | size | ) |
Definition at line 1958 of file constexp.cpp.
|
static |
Definition at line 1648 of file constexp.cpp.
void constexpYYfree | ( | void * | ptr | ) |
Definition at line 1975 of file constexp.cpp.
int constexpYYget_debug | ( | void | ) |
Definition at line 1874 of file constexp.cpp.
YY_EXTRA_TYPE constexpYYget_extra | ( | void | ) |
FILE * constexpYYget_in | ( | void | ) |
Get the input stream.
Definition at line 1818 of file constexp.cpp.
int constexpYYget_leng | ( | void | ) |
int constexpYYget_lineno | ( | void | ) |
FILE * constexpYYget_out | ( | void | ) |
char * constexpYYget_text | ( | void | ) |
int constexpYYlex | ( | void | ) |
int constexpYYlex_destroy | ( | void | ) |
Definition at line 1913 of file constexp.cpp.
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.
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.
new_buffer | The new state. |
Definition at line 1599 of file constexp.cpp.
void * constexpYYrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 1963 of file constexp.cpp.
void constexpYYrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 1433 of file constexp.cpp.
void constexpYYset_debug | ( | int | debug_flag | ) |
Definition at line 1879 of file constexp.cpp.
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.
in_str | A readable stream. |
Definition at line 1864 of file constexp.cpp.
void constexpYYset_lineno | ( | int | line_number | ) |
void constexpYYset_out | ( | FILE * | out_str | ) |
Definition at line 1869 of file constexp.cpp.
int constexpYYwrap | ( | void | ) |
Definition at line 2002 of file constexp.cpp.
if | ( | ! | yy_init | ) |
Definition at line 768 of file constexp.cpp.
Definition at line 1986 of file constexp.cpp.
while | ( | 1 | ) |
Definition at line 794 of file constexp.cpp.
|
static |
|
static |
Definition at line 1781 of file constexp.cpp.
|
static |
Definition at line 1165 of file constexp.cpp.
|
static |
Definition at line 1299 of file constexp.cpp.
|
static |
Definition at line 1884 of file constexp.cpp.
|
static |
Definition at line 1331 of file constexp.cpp.
|
static |
Definition at line 572 of file constexp.cpp.
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.
|
static |
Definition at line 567 of file constexp.cpp.
|
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.
|
static |
Definition at line 391 of file constexp.cpp.
register int yy_act |
Definition at line 761 of file constexp.cpp.
|
static |
Definition at line 443 of file constexp.cpp.
register char * yy_bp |
Definition at line 760 of file constexp.cpp.
|
static |
Stack as an array.
Definition at line 274 of file constexp.cpp.
|
static |
capacity of stack.
Definition at line 273 of file constexp.cpp.
|
static |
index of top of stack.
Definition at line 272 of file constexp.cpp.
|
static |
Definition at line 297 of file constexp.cpp.
|
static |
Definition at line 493 of file constexp.cpp.
register char* yy_cp |
Definition at line 760 of file constexp.cpp.
YY_DECL |
The main scanner function which does all the work.
Definition at line 758 of file constexp.cpp.
|
static |
Definition at line 455 of file constexp.cpp.
|
static |
Definition at line 304 of file constexp.cpp.
|
static |
Definition at line 403 of file constexp.cpp.
|
static |
Definition at line 292 of file constexp.cpp.
|
static |
Definition at line 298 of file constexp.cpp.
|
static |
Definition at line 520 of file constexp.cpp.
|
static |
Definition at line 519 of file constexp.cpp.
|
static |
Definition at line 435 of file constexp.cpp.
|
static |
Definition at line 293 of file constexp.cpp.
|
static |
Definition at line 467 of file constexp.cpp.
|
static |
Definition at line 299 of file constexp.cpp.