commentcnv.cpp File Reference

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <qstack.h>
#include <qregexp.h>
#include <qtextstream.h>
#include "bufstr.h"
#include "debug.h"
#include "message.h"
#include "config.h"
#include "doxygen.h"
#include <unistd.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state
struct  yy_trans_info
struct  CondCtx

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   commentcnvYYrestart(commentcnvYYin )
#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 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   commentcnvYY_flush_buffer(YY_CURRENT_BUFFER )
#define yy_new_buffer   commentcnvYY_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 commentcnvYYwrap(n)   1
#define YY_SKIP_YYWRAP
#define yytext_ptr   commentcnvYYtext
#define YY_DO_BEFORE_ACTION
#define YY_NUM_RULES   67
#define YY_END_OF_BUFFER   68
#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 ADDCHAR(c)   g_outBuf->addChar(c)
#define ADDARRAY(a, s)   g_outBuf->addArray(a,s)
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
#define INITIAL   0
#define Scan   1
#define SkipString   2
#define SkipChar   3
#define SComment   4
#define CComment   5
#define Verbatim   6
#define VerbatimCode   7
#define ReadLine   8
#define CondLine   9
#define ReadAliasArgs   10
#define YY_EXTRA_TYPE   void *
#define YY_READ_BUF_SIZE   8192
#define ECHO   (void) fwrite( commentcnvYYtext, commentcnvYYleng, 1, commentcnvYYout )
#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 commentcnvYYlex (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 commentcnvYYrestart (FILE *input_file)
void commentcnvYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
YY_BUFFER_STATE commentcnvYY_create_buffer (FILE *file, int size)
void commentcnvYY_delete_buffer (YY_BUFFER_STATE b)
void commentcnvYY_flush_buffer (YY_BUFFER_STATE b)
void commentcnvYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
void commentcnvYYpop_buffer_state (void)
YY_BUFFER_STATE commentcnvYY_scan_buffer (char *base, yy_size_t size)
YY_BUFFER_STATE commentcnvYY_scan_string (yyconst char *yy_str)
YY_BUFFER_STATE commentcnvYY_scan_bytes (yyconst char *bytes, int len)
void * commentcnvYYalloc (yy_size_t)
void * commentcnvYYrealloc (void *, yy_size_t)
void commentcnvYYfree (void *)
void replaceComment (int offset)
int commentcnvYYlex (void)

Variables

int commentcnvYYleng
FILE * commentcnvYYin
FILE * commentcnvYYout
int commentcnvYYleng
FILE * commentcnvYYin = (FILE *) 0
FILE * commentcnvYYout = (FILE *) 0
int commentcnvYYlineno
int commentcnvYYlineno = 1
char * commentcnvYYtext
int commentcnvYY_flex_debug
int commentcnvYY_flex_debug = 0
char * commentcnvYYtext


Define Documentation

#define ADDARRAY ( a,
 )     g_outBuf->addArray(a,s)

Definition at line 877 of file commentcnv.cpp.

#define ADDCHAR (  )     g_outBuf->addChar(c)

Definition at line 876 of file commentcnv.cpp.

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 123 of file commentcnv.cpp.

#define CComment   5

Definition at line 1114 of file commentcnv.cpp.

#define commentcnvYYwrap (  )     1

Definition at line 338 of file commentcnv.cpp.

#define CondLine   9

Definition at line 1118 of file commentcnv.cpp.

#define ECHO   (void) fwrite( commentcnvYYtext, commentcnvYYleng, 1, commentcnvYYout )

Definition at line 1177 of file commentcnv.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 158 of file commentcnv.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 159 of file commentcnv.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 160 of file commentcnv.cpp.

#define FLEX_BETA

Definition at line 13 of file commentcnv.cpp.

#define FLEX_SCANNER

Definition at line 8 of file commentcnv.cpp.

#define INITIAL   0

Definition at line 1109 of file commentcnv.cpp.

#define INT16_MAX   (32767)

Definition at line 72 of file commentcnv.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file commentcnv.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file commentcnv.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file commentcnv.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file commentcnv.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file commentcnv.cpp.

#define ReadAliasArgs   10

Definition at line 1119 of file commentcnv.cpp.

#define ReadLine   8

Definition at line 1117 of file commentcnv.cpp.

#define REJECT

Value:

{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up commentcnvYYtext */ \
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 826 of file commentcnv.cpp.

#define Scan   1

Definition at line 1110 of file commentcnv.cpp.

#define SComment   4

Definition at line 1113 of file commentcnv.cpp.

#define SkipChar   3

Definition at line 1112 of file commentcnv.cpp.

#define SkipString   2

Definition at line 1111 of file commentcnv.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file commentcnv.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file commentcnv.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file commentcnv.cpp.

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

Definition at line 178 of file commentcnv.cpp.

#define Verbatim   6

Definition at line 1115 of file commentcnv.cpp.

#define VerbatimCode   7

Definition at line 1116 of file commentcnv.cpp.

 
#define YY_AT_BOL (  )     (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 334 of file commentcnv.cpp.

#define YY_BREAK   break;

Definition at line 1256 of file commentcnv.cpp.

#define YY_BUF_SIZE   16384

Definition at line 142 of file commentcnv.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 250 of file commentcnv.cpp.

#define YY_BUFFER_NEW   0

Definition at line 238 of file commentcnv.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 239 of file commentcnv.cpp.

#define YY_CURRENT_BUFFER

Value:

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

Definition at line 266 of file commentcnv.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 273 of file commentcnv.cpp.

#define YY_DECL   int commentcnvYYlex (void)

Definition at line 1244 of file commentcnv.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 1240 of file commentcnv.cpp.

#define YY_DO_BEFORE_ACTION

Value:

(yytext_ptr) = yy_bp; \
        commentcnvYYleng = (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 commentcnv.cpp.

#define YY_END_OF_BUFFER   68

Definition at line 370 of file commentcnv.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 138 of file commentcnv.cpp.

#define YY_EXIT_FAILURE   2

#define YY_EXTRA_TYPE   void *

Definition at line 1130 of file commentcnv.cpp.

#define YY_FATAL_ERROR ( msg   )     yy_fatal_error( msg )

Definition at line 1231 of file commentcnv.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 9 of file commentcnv.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 10 of file commentcnv.cpp.

#define YY_FLEX_SUBMINOR_VERSION   33

Definition at line 11 of file commentcnv.cpp.

#define YY_FLUSH_BUFFER   commentcnvYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 302 of file commentcnv.cpp.

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

Definition at line 1084 of file commentcnv.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 4 of file commentcnv.cpp.

#define YY_LESS_LINENO (  ) 

Definition at line 162 of file commentcnv.cpp.

#define YY_MORE_ADJ   0

Definition at line 838 of file commentcnv.cpp.

#define YY_NEVER_INTERACTIVE   1

Definition at line 860 of file commentcnv.cpp.

#define yy_new_buffer   commentcnvYY_create_buffer

Definition at line 312 of file commentcnv.cpp.

#define YY_NEW_FILE   commentcnvYYrestart(commentcnvYYin )

Definition at line 136 of file commentcnv.cpp.

#define YY_NULL   0

Definition at line 110 of file commentcnv.cpp.

#define YY_NUM_RULES   67

Definition at line 369 of file commentcnv.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 1169 of file commentcnv.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 839 of file commentcnv.cpp.

#define YY_RULE_SETUP

Value:

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

Definition at line 1259 of file commentcnv.cpp.

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

Definition at line 117 of file commentcnv.cpp.

#define yy_set_bol ( at_bol   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){\
        commentcnvYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            commentcnvYY_create_buffer(commentcnvYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
        }

Definition at line 324 of file commentcnv.cpp.

#define yy_set_interactive ( is_interactive   ) 

Value:

{ \
        if ( ! YY_CURRENT_BUFFER ){ \
        commentcnvYYensure_buffer_stack (); \
                YY_CURRENT_BUFFER_LVALUE =    \
            commentcnvYY_create_buffer(commentcnvYYin,YY_BUF_SIZE ); \
        } \
        YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
        }

Definition at line 314 of file commentcnv.cpp.

#define YY_SKIP_YYWRAP

Definition at line 339 of file commentcnv.cpp.

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

Definition at line 129 of file commentcnv.cpp.

#define YY_START_STACK_INCR   25

Definition at line 1226 of file commentcnv.cpp.

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

Definition at line 147 of file commentcnv.cpp.

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

Definition at line 133 of file commentcnv.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 825 of file commentcnv.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 824 of file commentcnv.cpp.

#define yyconst

Definition at line 106 of file commentcnv.cpp.

#define yyless (  ) 

Value:

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

Definition at line 165 of file commentcnv.cpp.

#define yyless (  ) 

Value:

do \
                { \
                /* Undo effects of setting up commentcnvYYtext. */ \
        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 commentcnvYYtext again */ \
                } \
        while ( 0 )

Definition at line 165 of file commentcnv.cpp.

 
#define yymore (  )     yymore_used_but_not_detected

Definition at line 837 of file commentcnv.cpp.

#define YYSTATE   YY_START

Definition at line 130 of file commentcnv.cpp.

#define YYTABLES_NAME   "yytables"

 
#define yyterminate (  )     return YY_NULL

Definition at line 1221 of file commentcnv.cpp.

#define yytext_ptr   commentcnvYYtext

Definition at line 352 of file commentcnv.cpp.


Typedef Documentation

typedef short int flex_int16_t

Definition at line 51 of file commentcnv.cpp.

typedef int flex_int32_t

Definition at line 52 of file commentcnv.cpp.

typedef signed char flex_int8_t

Definition at line 50 of file commentcnv.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 54 of file commentcnv.cpp.

typedef unsigned int flex_uint32_t

Definition at line 55 of file commentcnv.cpp.

typedef unsigned char flex_uint8_t

Definition at line 53 of file commentcnv.cpp.

typedef struct yy_buffer_state* YY_BUFFER_STATE

Definition at line 151 of file commentcnv.cpp.

typedef unsigned char YY_CHAR

Definition at line 341 of file commentcnv.cpp.

typedef unsigned int yy_size_t

Definition at line 187 of file commentcnv.cpp.

typedef int yy_state_type

Definition at line 345 of file commentcnv.cpp.


Function Documentation

YY_BUFFER_STATE commentcnvYY_create_buffer ( FILE *  file,
int  size 
)

void commentcnvYY_delete_buffer ( YY_BUFFER_STATE  b  ) 

void commentcnvYY_flush_buffer ( YY_BUFFER_STATE  b  ) 

YY_BUFFER_STATE commentcnvYY_scan_buffer ( char *  base,
yy_size_t  size 
)

YY_BUFFER_STATE commentcnvYY_scan_bytes ( yyconst char *  bytes,
int  len 
)

YY_BUFFER_STATE commentcnvYY_scan_string ( yyconst char *  yy_str  ) 

void commentcnvYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer  ) 

void* commentcnvYYalloc ( yy_size_t   ) 

void commentcnvYYfree ( void *   ) 

int commentcnvYYlex ( void   ) 

void commentcnvYYpop_buffer_state ( void   ) 

void commentcnvYYpush_buffer_state ( YY_BUFFER_STATE  new_buffer  ) 

void* commentcnvYYrealloc ( void *  ,
yy_size_t   
)

void commentcnvYYrestart ( FILE *  input_file  ) 

void replaceComment ( int  offset  ) 


Variable Documentation

int commentcnvYY_flex_debug = 0

Definition at line 816 of file commentcnv.cpp.

int commentcnvYY_flex_debug

Definition at line 816 of file commentcnv.cpp.

FILE* commentcnvYYin = (FILE *) 0

Definition at line 343 of file commentcnv.cpp.

FILE* commentcnvYYin

Definition at line 343 of file commentcnv.cpp.

int commentcnvYYleng

Definition at line 278 of file commentcnv.cpp.

int commentcnvYYleng

Definition at line 278 of file commentcnv.cpp.

int commentcnvYYlineno = 1

Definition at line 349 of file commentcnv.cpp.

int commentcnvYYlineno

Definition at line 349 of file commentcnv.cpp.

FILE * commentcnvYYout = (FILE *) 0

Definition at line 343 of file commentcnv.cpp.

FILE * commentcnvYYout

Definition at line 343 of file commentcnv.cpp.

char* commentcnvYYtext

Definition at line 840 of file commentcnv.cpp.

char* commentcnvYYtext

Definition at line 840 of file commentcnv.cpp.



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