pre.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include "qtbc.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 <unistd.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
struct  FileState

Defines

#define YY_INT_ALIGNED   short int
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION   2
#define YY_FLEX_MINOR_VERSION   5
#define YY_FLEX_SUBMINOR_VERSION   33
#define FLEX_BETA
#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   preYYrestart(preYYin )
#define YY_END_OF_BUFFER_CHAR   0
#define YY_BUF_SIZE   262144
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
#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_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   preYY_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   preYY_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 preYYwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   preYYtext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   155
#define YY_END_OF_BUFFER   156
#define YY_TRAILING_MASK   0x2000
#define YY_TRAILING_HEAD_MASK   0x4000
#define REJECT
#define yymore()   yymore_used_but_not_detected
#define YY_MORE_ADJ   0
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_NEVER_INTERACTIVE   1
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
#define INITIAL   0
#define Start   1
#define Command   2
#define SkipCommand   3
#define SkipLine   4
#define CopyLine   5
#define CopyString   6
#define Include   7
#define IncludeID   8
#define EndImport   9
#define DefName   10
#define DefineArg   11
#define DefineText   12
#define SkipCPPBlock   13
#define Ifdef   14
#define Ifndef   15
#define SkipCComment   16
#define CopyCComment   17
#define SkipVerbatim   18
#define SkipCPPComment   19
#define RemoveCComment   20
#define RemoveCPPComment   21
#define Guard   22
#define DefinedExpr1   23
#define DefinedExpr2   24
#define SkipDoubleQuote   25
#define SkipSingleQuote   26
#define UndefName   27
#define IgnoreLine   28
#define FindDefineArgs   29
#define ReadString   30
#define CondLine   31
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( preYYtext, preYYleng, 1, preYYout )
#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 preYYlex (void)
#define YY_BREAK   break;
#define YY_RULE_SETUP
#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 yy_buffer_stateYY_BUFFER_STATE
typedef unsigned int 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)
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 *)
DefineDictgetFileDefineDict ()
QCString removeIdsAndMarkers (const char *s)
QCString removeMarkers (const char *s)
bool computeExpression (const QCString &expr)
QCString expandMacro (const QCString &name)
DefinenewDefine ()
void addDefine ()
int preYYlex (void)
int preYYget_lineno (void)
FILE * preYYget_in (void)
FILE * preYYget_out (void)
int preYYget_leng (void)
char * preYYget_text (void)
void preYYset_lineno (int line_number)
void preYYset_in (FILE *in_str)
void preYYset_out (FILE *out_str)
int preYYget_debug (void)
void preYYset_debug (int bdebug)
int preYYlex_destroy (void)
void addSearchDir (const char *dir)
void initPreprocessor ()
void cleanUpPreprocessor ()
void preprocessFile (const char *fileName, BufStr &output)
void preFreeScanner ()

Variables

int preYYleng
FILE * preYYin
FILE * preYYout
int preYYleng
FILE * preYYin = (FILE *) 0
FILE * preYYout = (FILE *) 0
int preYYlineno
int preYYlineno = 1
char * preYYtext
int preYY_flex_debug
int preYY_flex_debug = 0
char * preYYtext


Define Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 123 of file pre.cpp.

#define Command   2

Definition at line 3232 of file pre.cpp.

#define CondLine   31

Definition at line 3261 of file pre.cpp.

#define CopyCComment   17

Definition at line 3247 of file pre.cpp.

#define CopyLine   5

Definition at line 3235 of file pre.cpp.

#define CopyString   6

Definition at line 3236 of file pre.cpp.

#define DefineArg   11

Definition at line 3241 of file pre.cpp.

#define DefinedExpr1   23

Definition at line 3253 of file pre.cpp.

#define DefinedExpr2   24

Definition at line 3254 of file pre.cpp.

#define DefineText   12

Definition at line 3242 of file pre.cpp.

#define DefName   10

Definition at line 3240 of file pre.cpp.

#define ECHO   (void) fwrite( preYYtext, preYYleng, 1, preYYout )

Definition at line 3319 of file pre.cpp.

#define EndImport   9

Definition at line 3239 of file pre.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 158 of file pre.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 159 of file pre.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 160 of file pre.cpp.

#define FindDefineArgs   29

Definition at line 3259 of file pre.cpp.

#define FLEX_BETA

Definition at line 13 of file pre.cpp.

#define FLEX_SCANNER

Definition at line 8 of file pre.cpp.

#define Guard   22

Definition at line 3252 of file pre.cpp.

#define Ifdef   14

Definition at line 3244 of file pre.cpp.

#define Ifndef   15

Definition at line 3245 of file pre.cpp.

#define IgnoreLine   28

Definition at line 3258 of file pre.cpp.

#define Include   7

Definition at line 3237 of file pre.cpp.

#define IncludeID   8

Definition at line 3238 of file pre.cpp.

#define INITIAL   0

Definition at line 3230 of file pre.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file pre.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file pre.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file pre.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file pre.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file pre.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file pre.cpp.

#define preYYwrap (  )     1

Definition at line 338 of file pre.cpp.

#define ReadString   30

Definition at line 3260 of file pre.cpp.

#define REJECT

Value:

{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up preYYtext */ \
yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
(yy_lp) = yy_full_lp; /* restore orig. accepting pos. */ \
(yy_state_ptr) = yy_full_state; /* restore orig. state */ \
yy_current_state = *(yy_state_ptr); /* restore curr. state */ \
++(yy_lp); \
goto find_rule; \
}

Definition at line 1931 of file pre.cpp.

#define RemoveCComment   20

Definition at line 3250 of file pre.cpp.

#define RemoveCPPComment   21

Definition at line 3251 of file pre.cpp.

#define SkipCComment   16

Definition at line 3246 of file pre.cpp.

#define SkipCommand   3

Definition at line 3233 of file pre.cpp.

#define SkipCPPBlock   13

Definition at line 3243 of file pre.cpp.

#define SkipCPPComment   19

Definition at line 3249 of file pre.cpp.

#define SkipDoubleQuote   25

Definition at line 3255 of file pre.cpp.

#define SkipLine   4

Definition at line 3234 of file pre.cpp.

#define SkipSingleQuote   26

Definition at line 3256 of file pre.cpp.

#define SkipVerbatim   18

Definition at line 3248 of file pre.cpp.

#define Start   1

Definition at line 3231 of file pre.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file pre.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file pre.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file pre.cpp.

#define UndefName   27

Definition at line 3257 of file pre.cpp.

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

Definition at line 178 of file pre.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 334 of file pre.cpp.

#define YY_BREAK   break;

Definition at line 3398 of file pre.cpp.

#define YY_BUF_SIZE   262144

Definition at line 142 of file pre.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 250 of file pre.cpp.

#define YY_BUFFER_NEW   0

Definition at line 238 of file pre.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 239 of file pre.cpp.

#define YY_CURRENT_BUFFER

Value:

( (yy_buffer_stack) \
                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
                          : NULL)

Definition at line 266 of file pre.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 273 of file pre.cpp.

#define YY_DECL   int preYYlex (void)

Definition at line 3386 of file pre.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 3382 of file pre.cpp.

#define YY_DO_BEFORE_ACTION

Value:

(yytext_ptr) = yy_bp; \
        preYYleng = (size_t) (yy_cp - yy_bp); \
        (yy_hold_char) = *yy_cp; \
        *yy_cp = '\0'; \
        (yy_c_buf_p) = yy_cp;

Definition at line 362 of file pre.cpp.

#define YY_END_OF_BUFFER   156

Definition at line 370 of file pre.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 138 of file pre.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 5926 of file pre.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 3272 of file pre.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 3373 of file pre.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file pre.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file pre.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33

Definition at line 11 of file pre.cpp.

#define YY_FLUSH_BUFFER   preYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 302 of file pre.cpp.

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

Definition at line 3182 of file pre.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file pre.cpp.

#define YY_LESS_LINENO (  ) 

Definition at line 162 of file pre.cpp.

#define YY_MORE_ADJ   0

Definition at line 1943 of file pre.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 1994 of file pre.cpp.

#define yy_new_buffer   preYY_create_buffer

Definition at line 312 of file pre.cpp.

#define YY_NEW_FILE   preYYrestart(preYYin )

Definition at line 136 of file pre.cpp.

#define YY_NULL   0

Definition at line 110 of file pre.cpp.

#define YY_NUM_RULES   155

Definition at line 369 of file pre.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 3311 of file pre.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1944 of file pre.cpp.

#define YY_RULE_SETUP

Value:

if ( preYYleng > 0 ) \
                YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
                                (preYYtext[preYYleng - 1] == '\n'); \
        YY_USER_ACTION

Definition at line 3401 of file pre.cpp.

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

Definition at line 117 of file pre.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        preYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            preYY_create_buffer(preYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 324 of file pre.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        preYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            preYY_create_buffer(preYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 314 of file pre.cpp.

#define YY_SKIP_YYWRAP

Definition at line 339 of file pre.cpp.

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

Definition at line 129 of file pre.cpp.

#define YY_START_STACK_INCR   25

Definition at line 3368 of file pre.cpp.

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

Definition at line 147 of file pre.cpp.

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

Definition at line 133 of file pre.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 1930 of file pre.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 1929 of file pre.cpp.

#define yyconst

Definition at line 106 of file pre.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up preYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                preYYtext[preYYleng] = (yy_hold_char); \
                (yy_c_buf_p) = preYYtext + yyless_macro_arg; \
                (yy_hold_char) = *(yy_c_buf_p); \
                *(yy_c_buf_p) = '\0'; \
                preYYleng = yyless_macro_arg; \
                } \
        while ( 0 )

Definition at line 5938 of file pre.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up preYYtext. */ \
        int yyless_macro_arg = (n); \
        YY_LESS_LINENO(yyless_macro_arg);\
                *yy_cp = (yy_hold_char); \
                YY_RESTORE_YY_MORE_OFFSET \
                (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
                YY_DO_BEFORE_ACTION; /* set up preYYtext again */ \
                } \
        while ( 0 )

Definition at line 5938 of file pre.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 1942 of file pre.cpp.

#define YYSTATE   YY_START

Definition at line 130 of file pre.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 6136 of file pre.cpp.

 
#define yyterminate (  )     return YY_NULL

Definition at line 3363 of file pre.cpp.

#define yytext_ptr   preYYtext

Definition at line 352 of file pre.cpp.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file pre.cpp.

typedef int flex_int32_t

Definition at line 52 of file pre.cpp.

typedef signed char flex_int8_t

Definition at line 50 of file pre.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file pre.cpp.

typedef unsigned int flex_uint32_t

Definition at line 55 of file pre.cpp.

typedef unsigned char flex_uint8_t

Definition at line 53 of file pre.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 151 of file pre.cpp.

typedef unsigned char YY_CHAR

Definition at line 341 of file pre.cpp.

typedef unsigned int yy_size_t

Definition at line 187 of file pre.cpp.

typedef int yy_state_type

Definition at line 345 of file pre.cpp.


Function Documentation

void addDefine (  ) 

Definition at line 2963 of file pre.cpp.

References SDict< T >::append(), MemberDef::Define, SDict< T >::find(), Doxygen::functionNameSDict, Doxygen::gatherDefines, FileDef::insertMember(), Normal, Public, MemberDef::setArgumentList(), MemberDef::setDefinition(), MemberDef::setFileDef(), MemberDef::setInitializer(), and stringToArgumentList().

void addSearchDir ( const char *  dir  ) 

Definition at line 6213 of file pre.cpp.

Referenced by checkConfiguration(), and initPreprocessor().

void cleanUpPreprocessor (  ) 

Definition at line 6231 of file pre.cpp.

Referenced by cleanUpDoxygen().

bool computeExpression ( const QCString &  expr  ) 

compute the value of the expression in string expr. If needed the function may read additional characters from the input.

Definition at line 2922 of file pre.cpp.

References parseCppExpression(), QCString, and removeIdsAndMarkers().

QCString expandMacro ( const QCString &  name  ) 

expands the macro definition in name If needed the function may read additional characters from the input

Definition at line 2937 of file pre.cpp.

References QCString, and removeMarkers().

DefineDict* getFileDefineDict (  ) 

Definition at line 2052 of file pre.cpp.

void initPreprocessor (  ) 

Definition at line 6219 of file pre.cpp.

References addSearchDir().

Referenced by initDoxygen().

Define* newDefine (  ) 

Definition at line 2946 of file pre.cpp.

References Define::definition, Doxygen::expandAsDefinedDict, Define::fileName, Define::isPredefined, Define::lineNr, Define::name, Define::nargs, and Define::varArgs.

void preFreeScanner (  ) 

Definition at line 6417 of file pre.cpp.

References preYYlex_destroy().

Referenced by parseInput().

void preprocessFile ( const char *  fileName,
BufStr output 
)

Definition at line 6240 of file pre.cpp.

References BEGIN, Config_getBool, Config_getList, BufStr::curPos(), BufStr::data(), Define::definition, err(), Debug::ExtCmd, getFileFilter(), Debug::isFlagSet(), Define::isPredefined, msg(), Define::name, Define::nargs, Define::nonRecursive, portable_pclose(), portable_popen(), preYYlex(), Debug::print(), QCString, and Start.

YY_BUFFER_STATE preYY_create_buffer ( FILE *  file,
int  size 
)

void preYY_delete_buffer ( YY_BUFFER_STATE  b  ) 

Referenced by preYYlex_destroy(), and preYYpop_buffer_state().

void preYY_flush_buffer ( YY_BUFFER_STATE  b  ) 

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters:
b the buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 5722 of file pre.cpp.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.

YY_BUFFER_STATE preYY_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters:
base the character buffer
size the size in bytes of the character buffer
Returns:
the newly allocated buffer state object.

Definition at line 5845 of file pre.cpp.

References preYY_switch_to_buffer(), preYYalloc(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, and yy_buffer_state::yy_n_chars.

Referenced by preYY_scan_bytes().

YY_BUFFER_STATE preYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

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

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

Definition at line 5895 of file pre.cpp.

References preYY_scan_buffer(), preYYalloc(), YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, and yy_buffer_state::yy_is_our_buffer.

Referenced by preYY_scan_string().

YY_BUFFER_STATE preYY_scan_string ( yyconst char *  yystr  ) 

Setup the input buffer state to scan a string. The next call to preYYlex() will scan from a copy of str.

Parameters:
str a 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 preYY_scan_bytes() instead.

Definition at line 5882 of file pre.cpp.

References preYY_scan_bytes().

void preYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

Referenced by preYY_scan_buffer().

void * preYYalloc ( yy_size_t   ) 

Definition at line 6114 of file pre.cpp.

Referenced by preYY_scan_buffer(), and preYY_scan_bytes().

void preYYfree ( void *   ) 

Definition at line 6131 of file pre.cpp.

Referenced by preYYlex_destroy().

int preYYget_debug ( void   ) 

Definition at line 6022 of file pre.cpp.

FILE* preYYget_in ( void   ) 

Get the input stream.

Definition at line 5966 of file pre.cpp.

int preYYget_leng ( void   ) 

Get the length of the current token.

Definition at line 5982 of file pre.cpp.

References preYYleng.

int preYYget_lineno ( void   ) 

Get the current line number.

Definition at line 5957 of file pre.cpp.

FILE* preYYget_out ( void   ) 

Get the output stream.

Definition at line 5974 of file pre.cpp.

References preYYout.

char* preYYget_text ( void   ) 

Get the current token.

Definition at line 5991 of file pre.cpp.

int preYYlex ( void   ) 

Referenced by preprocessFile().

int preYYlex_destroy ( void   ) 

Definition at line 6066 of file pre.cpp.

References preYY_delete_buffer(), preYYfree(), preYYpop_buffer_state(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by preFreeScanner().

void preYYpop_buffer_state ( void   ) 

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

Definition at line 5781 of file pre.cpp.

References preYY_delete_buffer(), YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

Referenced by preYYlex_destroy().

void preYYpush_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_buffer The new state.

Definition at line 5751 of file pre.cpp.

References YY_CURRENT_BUFFER, and YY_CURRENT_BUFFER_LVALUE.

void * preYYrealloc ( void *  ,
yy_size_t   
)

Definition at line 6119 of file pre.cpp.

void preYYrestart ( FILE *  input_file  ) 

void preYYset_debug ( int  bdebug  ) 

Definition at line 6027 of file pre.cpp.

void preYYset_in ( FILE *  in_str  ) 

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

Parameters:
in_str A readable stream.
See also:
preYY_switch_to_buffer

Definition at line 6012 of file pre.cpp.

void preYYset_lineno ( int  line_number  ) 

Set the current line number.

Parameters:
line_number 

Definition at line 6000 of file pre.cpp.

void preYYset_out ( FILE *  out_str  ) 

Definition at line 6017 of file pre.cpp.

References preYYout.

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 2751 of file pre.cpp.

References isId(), and QCString.

Referenced by computeExpression().

QCString removeMarkers ( const char *  s  ) 

replaces all occurrences of @ in s by @

assumption:
s only contains pairs of @'s

Definition at line 2837 of file pre.cpp.

References QCString.

Referenced by expandMacro().


Variable Documentation

int preYY_flex_debug = 0

Definition at line 1921 of file pre.cpp.

int preYY_flex_debug

Definition at line 1921 of file pre.cpp.

FILE* preYYin = (FILE *) 0

Definition at line 343 of file pre.cpp.

FILE* preYYin

Definition at line 343 of file pre.cpp.

int preYYleng

Definition at line 278 of file pre.cpp.

Referenced by preYYget_leng().

int preYYleng

Definition at line 278 of file pre.cpp.

Referenced by preYYget_leng().

int preYYlineno = 1

Definition at line 349 of file pre.cpp.

int preYYlineno

Definition at line 349 of file pre.cpp.

FILE * preYYout = (FILE *) 0

Definition at line 343 of file pre.cpp.

Referenced by preYYget_out(), and preYYset_out().

FILE * preYYout

Definition at line 343 of file pre.cpp.

Referenced by preYYget_out(), and preYYset_out().

char* preYYtext

Definition at line 1945 of file pre.cpp.

char* preYYtext

Definition at line 1945 of file pre.cpp.



Generated on Mon Mar 31 10:58:53 2008 by  doxygen 1.5.1