#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <qarray.h>
#include <qstack.h>
#include <qfile.h>
#include <qstrlist.h>
#include <qdict.h>
#include <qregexp.h>
#include <qfileinfo.h>
#include <qdir.h>
#include "pre.h"
#include "constexp.h"
#include "define.h"
#include "doxygen.h"
#include "message.h"
#include "util.h"
#include "defargs.h"
#include "debug.h"
#include "bufstr.h"
#include "portable.h"
#include "arguments.h"
#include "entry.h"
#include "condparser.h"
#include "config.h"
#include "filedef.h"
#include "memberdef.h"
#include "membername.h"
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | CondCtx |
struct | FileState |
class | DefineManager |
Singleton that manages the defines available while proprocessing files. More... | |
class | DefineManager::DefinesPerFile |
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 |
Functions | |
void | preYYrestart (FILE *input_file) |
void | preYY_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | preYY_create_buffer (FILE *file, int size) |
void | preYY_delete_buffer (YY_BUFFER_STATE b) |
void | preYY_flush_buffer (YY_BUFFER_STATE b) |
void | preYYpush_buffer_state (YY_BUFFER_STATE new_buffer) |
void | preYYpop_buffer_state (void) |
static void | preYYensure_buffer_stack (void) |
static void | preYY_load_buffer_state (void) |
static void | preYY_init_buffer (YY_BUFFER_STATE b, FILE *file) |
YY_BUFFER_STATE | preYY_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | preYY_scan_string (yyconst char *yy_str) |
YY_BUFFER_STATE | preYY_scan_bytes (yyconst char *bytes, int len) |
void * | preYYalloc (yy_size_t) |
void * | preYYrealloc (void *, yy_size_t) |
void | preYYfree (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 void | setFileName (const char *name) |
static void | incrLevel () |
static void | decrLevel () |
static bool | otherCaseDone () |
static void | setCaseDone (bool value) |
static QDict< void > | g_allIncludes (10009) |
static FileState * | checkAndOpenFile (const QCString &fileName, bool &alreadyIncluded) |
static FileState * | findFile (const char *fileName, bool localInclude, bool &alreadyIncluded) |
static QCString | extractTrailingComment (const char *s) |
static int | getNextChar (const QCString &expr, QCString *rest, uint &pos) |
static int | getCurrentChar (const QCString &expr, QCString *rest, uint pos) |
static void | unputChar (const QCString &expr, QCString *rest, uint &pos, char c) |
static void | expandExpression (QCString &expr, QCString *rest, int pos) |
static QCString | stringize (const QCString &s) |
static void | processConcatOperators (QCString &expr) |
static void | yyunput (int c, char *buf_ptr) |
static void | returnCharToStream (char c) |
static void | addTillEndOfString (const QCString &expr, QCString *rest, uint &pos, char term, QCString &arg) |
static bool | replaceFunctionMacro (const QCString &expr, QCString *rest, int pos, int &len, const Define *def, QCString &result) |
static int | getNextId (const QCString &expr, int p, int *l) |
QCString | removeIdsAndMarkers (const char *s) |
QCString | removeMarkers (const char *s) |
bool | computeExpression (const QCString &expr) |
QCString | expandMacro (const QCString &name) |
Define * | newDefine () |
void | addDefine () |
static void | outputChar (char c) |
static void | outputArray (const char *a, int len) |
static void | readIncludeFile (const QCString &inc) |
static void | startCondSection (const char *sectId) |
static void | endCondSection () |
static void | forceEndCondSection () |
static QCString | escapeAt (const char *text) |
static char | resolveTrigraph (char c) |
static int | yyread (char *buf, int max_size) |
static int | yy_init_globals (void) |
int | preYYlex_destroy (void) |
int | preYYget_debug (void) |
void | preYYset_debug (int debug_flag) |
YY_EXTRA_TYPE | preYYget_extra (void) |
void | preYYset_extra (YY_EXTRA_TYPE user_defined) |
FILE * | preYYget_in (void) |
void | preYYset_in (FILE *in_str) |
FILE * | preYYget_out (void) |
void | preYYset_out (FILE *out_str) |
int | preYYget_leng (void) |
char * | preYYget_text (void) |
int | preYYget_lineno (void) |
void | preYYset_lineno (int line_number) |
static int | input (void) |
int | preYYlex (void) |
if (!(yy_init)) | |
while (1) | |
#define REJECT |
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
#define yy_create_buffer preYY_create_buffer |
#define YY_CURRENT_BUFFER |
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
#define yy_delete_buffer preYY_delete_buffer |
#define YY_DO_BEFORE_ACTION |
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
#define yy_flex_debug preYY_flex_debug |
#define yy_flush_buffer preYY_flush_buffer |
#define YY_FLUSH_BUFFER preYY_flush_buffer(YY_CURRENT_BUFFER ) |
#define yy_init_buffer preYY_init_buffer |
#define yy_load_buffer_state preYY_load_buffer_state |
#define yy_new_buffer preYY_create_buffer |
#define YY_NEW_FILE preYYrestart(preYYin ) |
#define YY_RULE_SETUP |
#define yy_set_bol | ( | at_bol | ) |
#define yy_set_interactive | ( | is_interactive | ) |
#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_switch_to_buffer preYY_switch_to_buffer |
#define yyalloc preYYalloc |
#define yyless | ( | n | ) |
#define yylineno preYYlineno |
#define yyrealloc preYYrealloc |
#define yyrestart preYYrestart |
typedef short int flex_int16_t |
typedef int flex_int32_t |
typedef signed char flex_int8_t |
typedef unsigned short int flex_uint16_t |
typedef unsigned int flex_uint32_t |
typedef unsigned char flex_uint8_t |
typedef struct yy_buffer_state* YY_BUFFER_STATE |
typedef int yy_state_type |
void addDefine | ( | ) |
Definition at line 3902 of file pre.cpp.
|
inlinestatic |
Definition at line 2957 of file pre.cpp.
compute the value of the expression in string expr. If needed the function may read additional characters from the input.
Definition at line 3857 of file pre.cpp.
|
static |
Definition at line 4160 of file pre.cpp.
|
static |
Definition at line 4184 of file pre.cpp.
preforms recursive macro expansion on the string expr starting at position pos. May read additional characters from the input while re-scanning! If expandAll is TRUE
then all macros in the expression are expanded, otherwise only the first is expanded.
Definition at line 3565 of file pre.cpp.
expands the macro definition in name If needed the function may read additional characters from the input
Definition at line 3872 of file pre.cpp.
|
static |
|
static |
Definition at line 3020 of file pre.cpp.
|
static |
|
static |
if | ( | ! | yy_init | ) |
|
static |
Define* newDefine | ( | ) |
Definition at line 3881 of file pre.cpp.
|
inlinestatic |
YY_BUFFER_STATE preYY_create_buffer | ( | FILE * | file, |
int | size | ||
) |
void preYY_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
void preYY_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
|
static |
YY_BUFFER_STATE preYY_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
YY_BUFFER_STATE preYY_scan_bytes | ( | yyconst char * | bytes, |
int | len | ||
) |
YY_BUFFER_STATE preYY_scan_string | ( | yyconst char * | yy_str | ) |
void preYY_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
void* preYYalloc | ( | yy_size_t | ) |
|
static |
void preYYfree | ( | void * | ) |
int preYYget_debug | ( | void | ) |
YY_EXTRA_TYPE preYYget_extra | ( | void | ) |
FILE* preYYget_in | ( | void | ) |
int preYYget_leng | ( | void | ) |
int preYYget_lineno | ( | void | ) |
FILE* preYYget_out | ( | void | ) |
char* preYYget_text | ( | void | ) |
int preYYlex | ( | void | ) |
int preYYlex_destroy | ( | void | ) |
void preYYpop_buffer_state | ( | void | ) |
void preYYpush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
void* preYYrealloc | ( | void * | , |
yy_size_t | |||
) |
void preYYrestart | ( | FILE * | input_file | ) |
void preYYset_debug | ( | int | debug_flag | ) |
void preYYset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void preYYset_in | ( | FILE * | in_str | ) |
void preYYset_lineno | ( | int | line_number | ) |
void preYYset_out | ( | FILE * | out_str | ) |
|
static |
Execute all ## operators in expr. If the macro name before or after the operator contains a no-rescan marker (-) then this is removed (before the concatenated macro name may be expanded again.
Definition at line 3211 of file pre.cpp.
|
static |
Definition at line 3970 of file pre.cpp.
QCString removeIdsAndMarkers | ( | const char * | s | ) |
replaces all occurrences of @@ in s by @ and removes all occurrences of @E. All identifiers found are replaced by 0L
Definition at line 3660 of file pre.cpp.
QCString removeMarkers | ( | const char * | s | ) |
replaces all occurrences of @ in s by @
Definition at line 3774 of file pre.cpp.
|
static |
replaces the function macro def whose argument list starts at pos in expression expr. Notice that this routine may scan beyond the expr string if needed. In that case the characters will be read from the input file. The replacement string will be returned in result and the length of the (unexpanded) argument list is stored in len.
Definition at line 3266 of file pre.cpp.
|
static |
Definition at line 2897 of file pre.cpp.
|
static |
Definition at line 4147 of file pre.cpp.
Definition at line 3133 of file pre.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
YY_DECL |
The main scanner function which does all the work.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |