#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <qstack.h>
#include <qregexp.h>
#include <qtextstream.h>
#include <qglobal.h>
#include "bufstr.h"
#include "debug.h"
#include "message.h"
#include "config.h"
#include "doxygen.h"
#include "util.h"
#include "condparser.h"
#include <assert.h>
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
struct | CondCtx |
struct | CommentCtx |
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 ADDCHAR | ( | c | ) | g_outBuf->addChar(c) |
Definition at line 1088 of file commentcnv.cpp.
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 144 of file commentcnv.cpp.
#define CComment 5 |
Definition at line 1297 of file commentcnv.cpp.
#define commentcnvYYwrap | ( | n | ) | 1 |
Definition at line 354 of file commentcnv.cpp.
#define CondLine 9 |
Definition at line 1301 of file commentcnv.cpp.
#define ECHO do { if (fwrite( commentcnvYYtext, commentcnvYYleng, 1, commentcnvYYout )) {} } while (0) |
Definition at line 1389 of file commentcnv.cpp.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 179 of file commentcnv.cpp.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 180 of file commentcnv.cpp.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 181 of file commentcnv.cpp.
#define FLEX_BETA |
Definition at line 33 of file commentcnv.cpp.
#define FLEX_SCANNER |
Definition at line 28 of file commentcnv.cpp.
#define FLEXINT_H |
Definition at line 49 of file commentcnv.cpp.
#define INITIAL 0 |
Definition at line 1292 of file commentcnv.cpp.
#define INT16_MAX (32767) |
Definition at line 92 of file commentcnv.cpp.
#define INT16_MIN (-32767-1) |
Definition at line 83 of file commentcnv.cpp.
#define INT32_MAX (2147483647) |
Definition at line 95 of file commentcnv.cpp.
#define INT32_MIN (-2147483647-1) |
Definition at line 86 of file commentcnv.cpp.
#define INT8_MAX (127) |
Definition at line 89 of file commentcnv.cpp.
#define INT8_MIN (-128) |
Definition at line 80 of file commentcnv.cpp.
#define ReadAliasArgs 10 |
Definition at line 1302 of file commentcnv.cpp.
#define ReadLine 8 |
Definition at line 1300 of file commentcnv.cpp.
#define REJECT |
Definition at line 1032 of file commentcnv.cpp.
#define Scan 1 |
Definition at line 1293 of file commentcnv.cpp.
#define SComment 4 |
Definition at line 1296 of file commentcnv.cpp.
#define SkipChar 3 |
Definition at line 1295 of file commentcnv.cpp.
#define SkipString 2 |
Definition at line 1294 of file commentcnv.cpp.
#define UINT16_MAX (65535U) |
Definition at line 101 of file commentcnv.cpp.
#define UINT32_MAX (4294967295U) |
Definition at line 104 of file commentcnv.cpp.
#define UINT8_MAX (255U) |
Definition at line 98 of file commentcnv.cpp.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 199 of file commentcnv.cpp.
#define Verbatim 6 |
Definition at line 1298 of file commentcnv.cpp.
#define VerbatimCode 7 |
Definition at line 1299 of file commentcnv.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 350 of file commentcnv.cpp.
#define YY_BREAK break; |
Definition at line 1468 of file commentcnv.cpp.
#define YY_BUF_SIZE 16384 |
Definition at line 163 of file commentcnv.cpp.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 266 of file commentcnv.cpp.
#define YY_BUFFER_NEW 0 |
Definition at line 254 of file commentcnv.cpp.
#define YY_BUFFER_NORMAL 1 |
Definition at line 255 of file commentcnv.cpp.
#define yy_create_buffer commentcnvYY_create_buffer |
Definition at line 9 of file commentcnv.cpp.
#define YY_CURRENT_BUFFER |
Definition at line 282 of file commentcnv.cpp.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 289 of file commentcnv.cpp.
#define YY_DECL int commentcnvYYlex (void) |
Definition at line 1456 of file commentcnv.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 1452 of file commentcnv.cpp.
#define yy_delete_buffer commentcnvYY_delete_buffer |
Definition at line 10 of file commentcnv.cpp.
#define YY_DO_BEFORE_ACTION |
Definition at line 378 of file commentcnv.cpp.
#define YY_END_OF_BUFFER 85 |
Definition at line 386 of file commentcnv.cpp.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 159 of file commentcnv.cpp.
#define YY_EXIT_FAILURE 2 |
Definition at line 3432 of file commentcnv.cpp.
#define YY_EXTRA_TYPE void * |
Definition at line 1313 of file commentcnv.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 1443 of file commentcnv.cpp.
#define yy_flex_debug commentcnvYY_flex_debug |
Definition at line 11 of file commentcnv.cpp.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 29 of file commentcnv.cpp.
#define YY_FLEX_MINOR_VERSION 5 |
Definition at line 30 of file commentcnv.cpp.
#define YY_FLEX_SUBMINOR_VERSION 35 |
Definition at line 31 of file commentcnv.cpp.
#define yy_flush_buffer commentcnvYY_flush_buffer |
Definition at line 13 of file commentcnv.cpp.
#define YY_FLUSH_BUFFER commentcnvYY_flush_buffer(YY_CURRENT_BUFFER ) |
Definition at line 318 of file commentcnv.cpp.
#define yy_init_buffer commentcnvYY_init_buffer |
Definition at line 12 of file commentcnv.cpp.
Definition at line 1267 of file commentcnv.cpp.
#define YY_INT_ALIGNED short int |
Definition at line 5 of file commentcnv.cpp.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 183 of file commentcnv.cpp.
#define yy_load_buffer_state commentcnvYY_load_buffer_state |
Definition at line 14 of file commentcnv.cpp.
#define YY_MORE_ADJ 0 |
Definition at line 1044 of file commentcnv.cpp.
#define yy_new_buffer commentcnvYY_create_buffer |
Definition at line 328 of file commentcnv.cpp.
#define YY_NEW_FILE commentcnvYYrestart(commentcnvYYin ) |
Definition at line 157 of file commentcnv.cpp.
#define YY_NO_INPUT 1 |
Definition at line 1085 of file commentcnv.cpp.
#define YY_NO_UNISTD_H 1 |
Definition at line 1086 of file commentcnv.cpp.
#define YY_NULL 0 |
Definition at line 131 of file commentcnv.cpp.
#define YY_NUM_RULES 84 |
Definition at line 385 of file commentcnv.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 1381 of file commentcnv.cpp.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 1045 of file commentcnv.cpp.
#define YY_RULE_SETUP |
Definition at line 1471 of file commentcnv.cpp.
#define YY_SC_TO_UI | ( | c | ) | ((unsigned int) (unsigned char) c) |
Definition at line 138 of file commentcnv.cpp.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 340 of file commentcnv.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 330 of file commentcnv.cpp.
#define YY_SKIP_YYWRAP |
Definition at line 355 of file commentcnv.cpp.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 150 of file commentcnv.cpp.
#define YY_START_STACK_INCR 25 |
Definition at line 1438 of file commentcnv.cpp.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 168 of file commentcnv.cpp.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 154 of file commentcnv.cpp.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 207 of file commentcnv.cpp.
#define yy_switch_to_buffer commentcnvYY_switch_to_buffer |
Definition at line 15 of file commentcnv.cpp.
#define YY_TRAILING_HEAD_MASK 0x4000 |
Definition at line 1031 of file commentcnv.cpp.
#define YY_TRAILING_MASK 0x2000 |
Definition at line 1030 of file commentcnv.cpp.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 171 of file commentcnv.cpp.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 202 of file commentcnv.cpp.
#define YY_USER_ACTION |
Definition at line 1463 of file commentcnv.cpp.
#define yyalloc commentcnvYYalloc |
Definition at line 24 of file commentcnv.cpp.
#define yyconst |
Definition at line 127 of file commentcnv.cpp.
#define yyfree commentcnvYYfree |
Definition at line 26 of file commentcnv.cpp.
#define yyin commentcnvYYin |
Definition at line 16 of file commentcnv.cpp.
#define yyleng commentcnvYYleng |
Definition at line 17 of file commentcnv.cpp.
#define yyless | ( | n | ) |
Definition at line 3444 of file commentcnv.cpp.
#define yyless | ( | n | ) |
Definition at line 3444 of file commentcnv.cpp.
#define yylex commentcnvYYlex |
Definition at line 18 of file commentcnv.cpp.
#define yylineno commentcnvYYlineno |
Definition at line 19 of file commentcnv.cpp.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 1043 of file commentcnv.cpp.
#define yyout commentcnvYYout |
Definition at line 20 of file commentcnv.cpp.
#define yyrealloc commentcnvYYrealloc |
Definition at line 25 of file commentcnv.cpp.
#define yyrestart commentcnvYYrestart |
Definition at line 21 of file commentcnv.cpp.
#define YYSTATE YY_START |
Definition at line 151 of file commentcnv.cpp.
#define YYTABLES_NAME "yytables" |
Definition at line 3642 of file commentcnv.cpp.
Definition at line 1433 of file commentcnv.cpp.
#define yytext commentcnvYYtext |
Definition at line 22 of file commentcnv.cpp.
#define yytext_ptr commentcnvYYtext |
Definition at line 368 of file commentcnv.cpp.
#define yywrap commentcnvYYwrap |
Definition at line 23 of file commentcnv.cpp.
typedef short int flex_int16_t |
Definition at line 71 of file commentcnv.cpp.
typedef int flex_int32_t |
Definition at line 72 of file commentcnv.cpp.
typedef signed char flex_int8_t |
Definition at line 70 of file commentcnv.cpp.
typedef unsigned short int flex_uint16_t |
Definition at line 74 of file commentcnv.cpp.
typedef unsigned int flex_uint32_t |
Definition at line 75 of file commentcnv.cpp.
typedef unsigned char flex_uint8_t |
Definition at line 73 of file commentcnv.cpp.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 172 of file commentcnv.cpp.
typedef unsigned char YY_CHAR |
Definition at line 357 of file commentcnv.cpp.
typedef size_t yy_size_t |
Definition at line 203 of file commentcnv.cpp.
typedef int yy_state_type |
Definition at line 361 of file commentcnv.cpp.
YY_BUFFER_STATE commentcnvYY_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 3149 of file commentcnv.cpp.
void commentcnvYY_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
Destroy the buffer.
b | a buffer created with commentcnvYY_create_buffer() |
Definition at line 3177 of file commentcnv.cpp.
void commentcnvYY_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 3224 of file commentcnv.cpp.
|
static |
Definition at line 3196 of file commentcnv.cpp.
|
static |
Definition at line 3135 of file commentcnv.cpp.
YY_BUFFER_STATE commentcnvYY_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 3351 of file commentcnv.cpp.
YY_BUFFER_STATE commentcnvYY_scan_bytes | ( | yyconst char * | yybytes, |
int | _yybytes_len | ||
) |
Setup the input buffer state to scan the given bytes. The next call to commentcnvYYlex() 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 3401 of file commentcnv.cpp.
YY_BUFFER_STATE commentcnvYY_scan_string | ( | yyconst char * | yystr | ) |
Setup the input buffer state to scan a string. The next call to commentcnvYYlex() will scan from a copy of str.
yystr | a NUL-terminated string to scan |
Definition at line 3388 of file commentcnv.cpp.
void commentcnvYY_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
Switch to a different input buffer.
new_buffer | The new input buffer. |
Definition at line 3104 of file commentcnv.cpp.
void * commentcnvYYalloc | ( | yy_size_t | size | ) |
Definition at line 3620 of file commentcnv.cpp.
|
static |
Definition at line 3302 of file commentcnv.cpp.
void commentcnvYYfree | ( | void * | ptr | ) |
Definition at line 3637 of file commentcnv.cpp.
int commentcnvYYget_debug | ( | void | ) |
Definition at line 3528 of file commentcnv.cpp.
YY_EXTRA_TYPE commentcnvYYget_extra | ( | void | ) |
FILE * commentcnvYYget_in | ( | void | ) |
int commentcnvYYget_leng | ( | void | ) |
int commentcnvYYget_lineno | ( | void | ) |
FILE * commentcnvYYget_out | ( | void | ) |
char * commentcnvYYget_text | ( | void | ) |
int commentcnvYYlex | ( | void | ) |
int commentcnvYYlex_destroy | ( | void | ) |
Definition at line 3572 of file commentcnv.cpp.
void commentcnvYYpop_buffer_state | ( | void | ) |
Removes and deletes the top of the stack, if present. The next element becomes the new top.
Definition at line 3283 of file commentcnv.cpp.
void commentcnvYYpush_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 3253 of file commentcnv.cpp.
void * commentcnvYYrealloc | ( | void * | ptr, |
yy_size_t | size | ||
) |
Definition at line 3625 of file commentcnv.cpp.
void commentcnvYYrestart | ( | FILE * | input_file | ) |
Immediately switch to a different input stream.
input_file | A readable stream. |
INITIAL
. Definition at line 3087 of file commentcnv.cpp.
void commentcnvYYset_debug | ( | int | debug_flag | ) |
Definition at line 3533 of file commentcnv.cpp.
void commentcnvYYset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void commentcnvYYset_in | ( | FILE * | in_str | ) |
Set the input stream. This does not discard the current input buffer.
in_str | A readable stream. |
Definition at line 3518 of file commentcnv.cpp.
void commentcnvYYset_lineno | ( | int | line_number | ) |
void commentcnvYYset_out | ( | FILE * | out_str | ) |
Definition at line 3523 of file commentcnv.cpp.
|
inlinestatic |
Definition at line 1180 of file commentcnv.cpp.
This function does three things:
Definition at line 3717 of file commentcnv.cpp.
|
inlinestatic |
Definition at line 1195 of file commentcnv.cpp.
|
static |
Definition at line 1240 of file commentcnv.cpp.
if | ( | ! | yy_init | ) |
Definition at line 1490 of file commentcnv.cpp.
|
static |
Definition at line 3674 of file commentcnv.cpp.
|
static |
copies string s with length len to the output, while replacing any alias commands found in the string.
Definition at line 1258 of file commentcnv.cpp.
void replaceComment | ( | int | offset | ) |
Definition at line 3648 of file commentcnv.cpp.
|
static |
Definition at line 1139 of file commentcnv.cpp.
|
static |
Definition at line 1228 of file commentcnv.cpp.
while | ( | 1 | ) |
Definition at line 1522 of file commentcnv.cpp.
|
static |
|
static |
Definition at line 3435 of file commentcnv.cpp.
|
static |
Definition at line 2813 of file commentcnv.cpp.
|
static |
Definition at line 2918 of file commentcnv.cpp.
|
static |
Definition at line 3538 of file commentcnv.cpp.
|
static |
Definition at line 2950 of file commentcnv.cpp.
|
static |
Definition at line 1269 of file commentcnv.cpp.
|
static |
|
static |
Definition at line 2969 of file commentcnv.cpp.
int commentcnvYY_flex_debug = 0 |
Definition at line 1022 of file commentcnv.cpp.
FILE * commentcnvYYin = (FILE *) 0 |
Definition at line 359 of file commentcnv.cpp.
int commentcnvYYleng |
Definition at line 294 of file commentcnv.cpp.
int commentcnvYYlineno = 1 |
Definition at line 365 of file commentcnv.cpp.
FILE * commentcnvYYout = (FILE *) 0 |
Definition at line 359 of file commentcnv.cpp.
char * commentcnvYYtext |
Definition at line 1046 of file commentcnv.cpp.
|
static |
Definition at line 1129 of file commentcnv.cpp.
|
static |
Definition at line 1130 of file commentcnv.cpp.
|
static |
Definition at line 1111 of file commentcnv.cpp.
|
static |
Definition at line 1120 of file commentcnv.cpp.
|
static |
Definition at line 1125 of file commentcnv.cpp.
|
static |
Definition at line 1110 of file commentcnv.cpp.
|
static |
Definition at line 1119 of file commentcnv.cpp.
|
static |
Definition at line 1117 of file commentcnv.cpp.
Definition at line 1118 of file commentcnv.cpp.
|
static |
Definition at line 1115 of file commentcnv.cpp.
|
static |
Definition at line 1107 of file commentcnv.cpp.
|
static |
Definition at line 1109 of file commentcnv.cpp.
|
static |
Definition at line 1123 of file commentcnv.cpp.
|
static |
Definition at line 1122 of file commentcnv.cpp.
|
static |
Definition at line 1126 of file commentcnv.cpp.
|
static |
Definition at line 1136 of file commentcnv.cpp.
|
static |
Definition at line 1132 of file commentcnv.cpp.
|
static |
Definition at line 1121 of file commentcnv.cpp.
|
static |
Definition at line 1131 of file commentcnv.cpp.
|
static |
Definition at line 1116 of file commentcnv.cpp.
|
static |
Definition at line 1112 of file commentcnv.cpp.
|
static |
Definition at line 1134 of file commentcnv.cpp.
|
static |
Definition at line 1108 of file commentcnv.cpp.
|
static |
Definition at line 1133 of file commentcnv.cpp.
|
static |
Definition at line 1113 of file commentcnv.cpp.
|
static |
Definition at line 1114 of file commentcnv.cpp.
|
static |
Definition at line 1127 of file commentcnv.cpp.
|
static |
Definition at line 1124 of file commentcnv.cpp.
|
static |
Definition at line 1137 of file commentcnv.cpp.
|
static |
Definition at line 436 of file commentcnv.cpp.
|
static |
Definition at line 394 of file commentcnv.cpp.
register int yy_act |
Definition at line 1483 of file commentcnv.cpp.
|
static |
Definition at line 527 of file commentcnv.cpp.
register char * yy_bp |
Definition at line 1482 of file commentcnv.cpp.
|
static |
Stack as an array.
Definition at line 274 of file commentcnv.cpp.
|
static |
capacity of stack.
Definition at line 273 of file commentcnv.cpp.
|
static |
index of top of stack.
Definition at line 272 of file commentcnv.cpp.
|
static |
Definition at line 297 of file commentcnv.cpp.
|
static |
Definition at line 829 of file commentcnv.cpp.
register char* yy_cp |
Definition at line 1482 of file commentcnv.cpp.
YY_DECL |
The main scanner function which does all the work.
Definition at line 1480 of file commentcnv.cpp.
|
static |
Definition at line 582 of file commentcnv.cpp.
|
static |
Definition at line 304 of file commentcnv.cpp.
|
static |
Definition at line 486 of file commentcnv.cpp.
|
static |
Definition at line 1028 of file commentcnv.cpp.
|
static |
Definition at line 1025 of file commentcnv.cpp.
|
static |
Definition at line 1029 of file commentcnv.cpp.
|
static |
Definition at line 292 of file commentcnv.cpp.
|
static |
Definition at line 298 of file commentcnv.cpp.
|
static |
Definition at line 1027 of file commentcnv.cpp.
|
static |
Definition at line 1026 of file commentcnv.cpp.
|
static |
Definition at line 518 of file commentcnv.cpp.
|
static |
Definition at line 293 of file commentcnv.cpp.
|
static |
Definition at line 637 of file commentcnv.cpp.
|
static |
Definition at line 299 of file commentcnv.cpp.
|
static |
Definition at line 1024 of file commentcnv.cpp.
|
static |
Definition at line 1024 of file commentcnv.cpp.