Classes | Macros | Typedefs | Functions | Variables
defargs.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <qregexp.h>
#include "defargs.h"
#include "entry.h"
#include "util.h"
#include "arguments.h"
#include "message.h"

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   defargsYY_create_buffer
 
#define yy_delete_buffer   defargsYY_delete_buffer
 
#define yy_flex_debug   defargsYY_flex_debug
 
#define yy_init_buffer   defargsYY_init_buffer
 
#define yy_flush_buffer   defargsYY_flush_buffer
 
#define yy_load_buffer_state   defargsYY_load_buffer_state
 
#define yy_switch_to_buffer   defargsYY_switch_to_buffer
 
#define yyin   defargsYYin
 
#define yyleng   defargsYYleng
 
#define yylex   defargsYYlex
 
#define yylineno   defargsYYlineno
 
#define yyout   defargsYYout
 
#define yyrestart   defargsYYrestart
 
#define yytext   defargsYYtext
 
#define yywrap   defargsYYwrap
 
#define yyalloc   defargsYYalloc
 
#define yyrealloc   defargsYYrealloc
 
#define yyfree   defargsYYfree
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#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   defargsYYrestart(defargsYYin )
 
#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 YY_TYPEDEF_YY_BUFFER_STATE
 
#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_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#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   defargsYY_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   defargsYY_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 defargsYYwrap(n)   1
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   defargsYYtext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   60
 
#define YY_END_OF_BUFFER   61
 
#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_NO_INPUT   1
 
#define YY_NO_UNISTD_H   1
 
#define YY_INPUT(buf, result, max_size)   result=yyread(buf,max_size);
 
#define INITIAL   0
 
#define Start   1
 
#define CopyArgString   2
 
#define CopyRawString   3
 
#define CopyArgRound   4
 
#define CopyArgRound2   5
 
#define CopyArgSharp   6
 
#define CopyArgCurly   7
 
#define ReadFuncArgType   8
 
#define ReadFuncArgDef   9
 
#define ReadFuncArgPtr   10
 
#define FuncQual   11
 
#define ReadDocBlock   12
 
#define ReadDocLine   13
 
#define ReadTypeConstraint   14
 
#define TrailingReturn   15
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( defargsYYtext, defargsYYleng, 1, defargsYYout )) {} } while (0)
 
#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 defargsYYlex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#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 struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void defargsYYrestart (FILE *input_file)
 
void defargsYY_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE defargsYY_create_buffer (FILE *file, int size)
 
void defargsYY_delete_buffer (YY_BUFFER_STATE b)
 
void defargsYY_flush_buffer (YY_BUFFER_STATE b)
 
void defargsYYpush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void defargsYYpop_buffer_state (void)
 
static void defargsYYensure_buffer_stack (void)
 
static void defargsYY_load_buffer_state (void)
 
static void defargsYY_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE defargsYY_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE defargsYY_scan_string (yyconst char *yy_str)
 
YY_BUFFER_STATE defargsYY_scan_bytes (yyconst char *bytes, int len)
 
void * defargsYYalloc (yy_size_t)
 
void * defargsYYrealloc (void *, yy_size_t)
 
void defargsYYfree (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 int yyread (char *buf, int max_size)
 
static int yy_init_globals (void)
 
int defargsYYlex_destroy (void)
 
int defargsYYget_debug (void)
 
void defargsYYset_debug (int debug_flag)
 
YY_EXTRA_TYPE defargsYYget_extra (void)
 
void defargsYYset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * defargsYYget_in (void)
 
void defargsYYset_in (FILE *in_str)
 
FILE * defargsYYget_out (void)
 
void defargsYYset_out (FILE *out_str)
 
int defargsYYget_leng (void)
 
char * defargsYYget_text (void)
 
int defargsYYget_lineno (void)
 
void defargsYYset_lineno (int line_number)
 
static void yyunput (int c, char *buf_ptr)
 
int defargsYYlex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yyunput (int c, register char *yy_bp)
 
static void yy_fatal_error (yyconst char *msg)
 
void stringToArgumentList (const char *argsString, ArgumentList *al, QCString *extraTypeChars)
 

Variables

int defargsYYleng
 
FILE * defargsYYin = (FILE *) 0
 
FILE * defargsYYout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int defargsYYlineno = 1
 
char * defargsYYtext
 
static yyconst flex_int16_t yy_acclist [333]
 
static yyconst flex_int16_t yy_accept [264]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [47]
 
static yyconst flex_int16_t yy_base [315]
 
static yyconst flex_int16_t yy_def [315]
 
static yyconst flex_int16_t yy_nxt [969]
 
static yyconst flex_int16_t yy_chk [969]
 
int defargsYY_flex_debug = 0
 
static yy_state_typeyy_state_buf =0
 
static yy_state_typeyy_state_ptr =0
 
static char * yy_full_match
 
static int yy_lp
 
static int yy_looking_for_trail_begin = 0
 
static int yy_full_lp
 
static int * yy_full_state
 
static const char * g_inputString
 
static int g_inputPosition
 
static ArgumentListg_argList
 
static QCStringg_copyArgValue
 
static QCString g_curArgTypeName
 
static QCString g_curArgDefValue
 
static QCString g_curArgName
 
static QCString g_curArgDocs
 
static QCString g_curArgAttrib
 
static QCString g_curArgArray
 
static QCString g_curTypeConstraint
 
static QCString g_extraTypeChars
 
static int g_argRoundCount
 
static int g_argSharpCount
 
static int g_argCurlyCount
 
static int g_readArgContext
 
static int g_lastDocContext
 
static int g_lastDocChar
 
static int g_lastExtendsContext
 
static QCString g_delimiter
 
 YY_DECL
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Detailed Description

This scanner is used to convert a string into a list of function or template arguments. Each parsed argument results in a Argument struct, that is put into an ArgumentList in declaration order. Comment blocks for arguments can also be included in the string. The argument string does not contain new-lines (except inside any comment blocks). An Argument consists of the string fields: type,name,default value, and documentation The Argument list as a whole can be pure, constant or volatile.

Examples of input strings are:

"(int a,int b) const"
"(const char *s="hello world",int=5) = 0"
"<class T,class N>"
"(char c,const char)"

Note: It is not always possible to distinguish between the name and type of an argument. In case of doubt the name is added to the type, and the matchArgumentList in util.cpp is be used to further determine the correct separation.

Definition in file defargs.cpp.

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 144 of file defargs.cpp.

#define CopyArgCurly   7

Definition at line 958 of file defargs.cpp.

#define CopyArgRound   4

Definition at line 955 of file defargs.cpp.

#define CopyArgRound2   5

Definition at line 956 of file defargs.cpp.

#define CopyArgSharp   6

Definition at line 957 of file defargs.cpp.

#define CopyArgString   2

Definition at line 953 of file defargs.cpp.

#define CopyRawString   3

Definition at line 954 of file defargs.cpp.

#define defargsYYwrap (   n)    1

Definition at line 354 of file defargs.cpp.

#define ECHO   do { if (fwrite( defargsYYtext, defargsYYleng, 1, defargsYYout )) {} } while (0)

Definition at line 1053 of file defargs.cpp.

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file defargs.cpp.

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file defargs.cpp.

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file defargs.cpp.

#define FLEX_BETA

Definition at line 33 of file defargs.cpp.

#define FLEX_SCANNER

Definition at line 28 of file defargs.cpp.

#define FLEXINT_H

Definition at line 49 of file defargs.cpp.

#define FuncQual   11

Definition at line 962 of file defargs.cpp.

#define INITIAL   0

Definition at line 951 of file defargs.cpp.

#define INT16_MAX   (32767)

Definition at line 92 of file defargs.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 83 of file defargs.cpp.

#define INT32_MAX   (2147483647)

Definition at line 95 of file defargs.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 86 of file defargs.cpp.

#define INT8_MAX   (127)

Definition at line 89 of file defargs.cpp.

#define INT8_MIN   (-128)

Definition at line 80 of file defargs.cpp.

#define ReadDocBlock   12

Definition at line 963 of file defargs.cpp.

#define ReadDocLine   13

Definition at line 964 of file defargs.cpp.

#define ReadFuncArgDef   9

Definition at line 960 of file defargs.cpp.

#define ReadFuncArgPtr   10

Definition at line 961 of file defargs.cpp.

#define ReadFuncArgType   8

Definition at line 959 of file defargs.cpp.

#define ReadTypeConstraint   14

Definition at line 965 of file defargs.cpp.

#define REJECT
Value:
{ \
*yy_cp = (yy_hold_char); /* undo effects of setting up defargsYYtext */ \
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; \
}
static char yy_hold_char
Definition: defargs.cpp:292
register char * yy_cp
Definition: defargs.cpp:1143
static char * yy_full_match
Definition: defargs.cpp:811
static yy_state_type * yy_state_ptr
Definition: defargs.cpp:810
static int * yy_full_state
Definition: defargs.cpp:815
static int yy_full_lp
Definition: defargs.cpp:814
static int yy_lp
Definition: defargs.cpp:812

Definition at line 818 of file defargs.cpp.

#define Start   1

Definition at line 952 of file defargs.cpp.

#define TrailingReturn   15

Definition at line 966 of file defargs.cpp.

#define UINT16_MAX   (65535U)

Definition at line 101 of file defargs.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 104 of file defargs.cpp.

#define UINT8_MAX   (255U)

Definition at line 98 of file defargs.cpp.

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

Definition at line 199 of file defargs.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 350 of file defargs.cpp.

#define YY_BREAK   break;

Definition at line 1132 of file defargs.cpp.

#define YY_BUF_SIZE   16384

Definition at line 163 of file defargs.cpp.

#define YY_BUFFER_EOF_PENDING   2

Definition at line 266 of file defargs.cpp.

#define YY_BUFFER_NEW   0

Definition at line 254 of file defargs.cpp.

#define YY_BUFFER_NORMAL   1

Definition at line 255 of file defargs.cpp.

#define yy_create_buffer   defargsYY_create_buffer

Definition at line 9 of file defargs.cpp.

#define YY_CURRENT_BUFFER
Value:
: NULL)
static size_t yy_buffer_stack_top
Definition: defargs.cpp:272
static YY_BUFFER_STATE * yy_buffer_stack
Definition: defargs.cpp:274

Definition at line 282 of file defargs.cpp.

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 289 of file defargs.cpp.

#define YY_DECL   int defargsYYlex (void)

Definition at line 1120 of file defargs.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 1116 of file defargs.cpp.

#define yy_delete_buffer   defargsYY_delete_buffer

Definition at line 10 of file defargs.cpp.

#define YY_DO_BEFORE_ACTION
Value:
defargsYYleng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
static char yy_hold_char
Definition: defargs.cpp:292
register char * yy_cp
Definition: defargs.cpp:1143
int defargsYYleng
Definition: defargs.cpp:294
register char * yy_bp
Definition: defargs.cpp:1143
static char * yy_c_buf_p
Definition: defargs.cpp:297
#define yytext_ptr
Definition: defargs.cpp:368

Definition at line 378 of file defargs.cpp.

#define YY_END_OF_BUFFER   61

Definition at line 386 of file defargs.cpp.

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 159 of file defargs.cpp.

#define YY_EXIT_FAILURE   2

Definition at line 2696 of file defargs.cpp.

#define YY_EXTRA_TYPE   void *

Definition at line 977 of file defargs.cpp.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1107 of file defargs.cpp.

#define yy_flex_debug   defargsYY_flex_debug

Definition at line 11 of file defargs.cpp.

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 29 of file defargs.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 30 of file defargs.cpp.

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 31 of file defargs.cpp.

#define yy_flush_buffer   defargsYY_flush_buffer

Definition at line 13 of file defargs.cpp.

#define YY_FLUSH_BUFFER   defargsYY_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 318 of file defargs.cpp.

#define yy_init_buffer   defargsYY_init_buffer

Definition at line 12 of file defargs.cpp.

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

Definition at line 921 of file defargs.cpp.

#define YY_INT_ALIGNED   short int

Definition at line 5 of file defargs.cpp.

#define YY_LESS_LINENO (   n)

Definition at line 183 of file defargs.cpp.

#define yy_load_buffer_state   defargsYY_load_buffer_state

Definition at line 14 of file defargs.cpp.

#define YY_MORE_ADJ   0

Definition at line 830 of file defargs.cpp.

#define yy_new_buffer   defargsYY_create_buffer

Definition at line 328 of file defargs.cpp.

#define YY_NEW_FILE   defargsYYrestart(defargsYYin )

Definition at line 157 of file defargs.cpp.

#define YY_NO_INPUT   1

Definition at line 891 of file defargs.cpp.

#define YY_NO_UNISTD_H   1

Definition at line 892 of file defargs.cpp.

#define YY_NULL   0

Definition at line 131 of file defargs.cpp.

#define YY_NUM_RULES   60

Definition at line 385 of file defargs.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 1045 of file defargs.cpp.

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 831 of file defargs.cpp.

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 1135 of file defargs.cpp.

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

Definition at line 138 of file defargs.cpp.

#define yy_set_bol (   at_bol)
Value:
{ \
defargsYYensure_buffer_stack (); \
defargsYY_create_buffer(defargsYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
if(!(yy_init))
Definition: defargs.cpp:1151
FILE * defargsYYin
Definition: defargs.cpp:359
#define YY_BUF_SIZE
Definition: defargs.cpp:163

Definition at line 340 of file defargs.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
defargsYYensure_buffer_stack (); \
defargsYY_create_buffer(defargsYYin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
if(!(yy_init))
Definition: defargs.cpp:1151
FILE * defargsYYin
Definition: defargs.cpp:359
#define YY_BUF_SIZE
Definition: defargs.cpp:163

Definition at line 330 of file defargs.cpp.

#define YY_SKIP_YYWRAP

Definition at line 355 of file defargs.cpp.

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

Definition at line 150 of file defargs.cpp.

#define YY_START_STACK_INCR   25

Definition at line 1102 of file defargs.cpp.

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

Definition at line 168 of file defargs.cpp.

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

Definition at line 154 of file defargs.cpp.

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 207 of file defargs.cpp.

#define yy_switch_to_buffer   defargsYY_switch_to_buffer

Definition at line 15 of file defargs.cpp.

#define YY_TRAILING_HEAD_MASK   0x4000

Definition at line 817 of file defargs.cpp.

#define YY_TRAILING_MASK   0x2000

Definition at line 816 of file defargs.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 171 of file defargs.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 202 of file defargs.cpp.

#define YY_USER_ACTION

Definition at line 1127 of file defargs.cpp.

#define yyalloc   defargsYYalloc

Definition at line 24 of file defargs.cpp.

#define yyconst

Definition at line 127 of file defargs.cpp.

#define yyfree   defargsYYfree

Definition at line 26 of file defargs.cpp.

#define yyin   defargsYYin

Definition at line 16 of file defargs.cpp.

#define yyleng   defargsYYleng

Definition at line 17 of file defargs.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up defargsYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up defargsYYtext again */ \
} \
while ( 0 )
static char yy_hold_char
Definition: defargs.cpp:292
#define YY_DO_BEFORE_ACTION
Definition: defargs.cpp:378
register char * yy_cp
Definition: defargs.cpp:1143
#define YY_MORE_ADJ
Definition: defargs.cpp:830
register char * yy_bp
Definition: defargs.cpp:1143
std::void_t< T > n
while(1)
Definition: defargs.cpp:1183
static char * yy_c_buf_p
Definition: defargs.cpp:297
#define YY_RESTORE_YY_MORE_OFFSET
Definition: defargs.cpp:831

Definition at line 2708 of file defargs.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up defargsYYtext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = defargsYYtext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
defargsYYleng = yyless_macro_arg; \
} \
while ( 0 )
static char yy_hold_char
Definition: defargs.cpp:292
char * defargsYYtext
Definition: defargs.cpp:832
int defargsYYleng
Definition: defargs.cpp:294
std::void_t< T > n
while(1)
Definition: defargs.cpp:1183
static char * yy_c_buf_p
Definition: defargs.cpp:297

Definition at line 2708 of file defargs.cpp.

#define yylex   defargsYYlex

Definition at line 18 of file defargs.cpp.

#define yylineno   defargsYYlineno

Definition at line 19 of file defargs.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 829 of file defargs.cpp.

#define yyout   defargsYYout

Definition at line 20 of file defargs.cpp.

#define yyrealloc   defargsYYrealloc

Definition at line 25 of file defargs.cpp.

#define yyrestart   defargsYYrestart

Definition at line 21 of file defargs.cpp.

#define YYSTATE   YY_START

Definition at line 151 of file defargs.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 2906 of file defargs.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 1097 of file defargs.cpp.

#define yytext   defargsYYtext

Definition at line 22 of file defargs.cpp.

#define yytext_ptr   defargsYYtext

Definition at line 368 of file defargs.cpp.

#define yywrap   defargsYYwrap

Definition at line 23 of file defargs.cpp.

Typedef Documentation

typedef short int flex_int16_t

Definition at line 71 of file defargs.cpp.

typedef int flex_int32_t

Definition at line 72 of file defargs.cpp.

typedef signed char flex_int8_t

Definition at line 70 of file defargs.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 74 of file defargs.cpp.

typedef unsigned int flex_uint32_t

Definition at line 75 of file defargs.cpp.

typedef unsigned char flex_uint8_t

Definition at line 73 of file defargs.cpp.

Definition at line 172 of file defargs.cpp.

typedef unsigned char YY_CHAR

Definition at line 357 of file defargs.cpp.

typedef size_t yy_size_t

Definition at line 203 of file defargs.cpp.

typedef int yy_state_type

Definition at line 361 of file defargs.cpp.

Function Documentation

YY_BUFFER_STATE defargsYY_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 2413 of file defargs.cpp.

2414 {
2416 
2417  b = (YY_BUFFER_STATE) defargsYYalloc(sizeof( struct yy_buffer_state ) );
2418  if ( ! b )
2419  YY_FATAL_ERROR( "out of dynamic memory in defargsYY_create_buffer()" );
2420 
2421  b->yy_buf_size = size;
2422 
2423  /* yy_ch_buf has to be 2 characters longer than the size given because
2424  * we need to put in 2 end-of-buffer characters.
2425  */
2426  b->yy_ch_buf = (char *) defargsYYalloc(b->yy_buf_size + 2 );
2427  if ( ! b->yy_ch_buf )
2428  YY_FATAL_ERROR( "out of dynamic memory in defargsYY_create_buffer()" );
2429 
2430  b->yy_is_our_buffer = 1;
2431 
2433 
2434  return b;
2435 }
yy_size_t yy_buf_size
Definition: code.cpp:218
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
static void defargsYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: defargs.cpp:2460
void * defargsYYalloc(yy_size_t)
Definition: defargs.cpp:2884
static bool * b
Definition: config.cpp:1043
struct yy_buffer_state * YY_BUFFER_STATE
Definition: defargs.cpp:172
void defargsYY_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with defargsYY_create_buffer()

Definition at line 2441 of file defargs.cpp.

2442 {
2443 
2444  if ( ! b )
2445  return;
2446 
2447  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2449 
2450  if ( b->yy_is_our_buffer )
2451  defargsYYfree((void *) b->yy_ch_buf );
2452 
2453  defargsYYfree((void *) b );
2454 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
void defargsYYfree(void *)
Definition: defargs.cpp:2901
char * yy_ch_buf
Definition: code.cpp:212
int yy_is_our_buffer
Definition: code.cpp:229
struct yy_buffer_state * YY_BUFFER_STATE
Definition: defargs.cpp:172
void defargsYY_flush_buffer ( YY_BUFFER_STATE  b)

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

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 2488 of file defargs.cpp.

2489 {
2490  if ( ! b )
2491  return;
2492 
2493  b->yy_n_chars = 0;
2494 
2495  /* We always need two end-of-buffer characters. The first causes
2496  * a transition to the end-of-buffer state. The second causes
2497  * a jam in that state.
2498  */
2501 
2502  b->yy_buf_pos = &b->yy_ch_buf[0];
2503 
2504  b->yy_at_bol = 1;
2506 
2507  if ( b == YY_CURRENT_BUFFER )
2509 }
char * yy_buf_pos
Definition: code.cpp:213
int yy_n_chars
Definition: code.cpp:223
#define YY_END_OF_BUFFER_CHAR
Definition: defargs.cpp:159
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
char * yy_ch_buf
Definition: code.cpp:212
#define YY_BUFFER_NEW
Definition: defargs.cpp:254
int yy_buffer_status
Definition: code.cpp:252
static void defargsYY_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 2460 of file defargs.cpp.

2462 {
2463  int oerrno = errno;
2464 
2466 
2467  b->yy_input_file = file;
2468  b->yy_fill_buffer = 1;
2469 
2470  /* If b is the current buffer, then defargsYY_init_buffer was _probably_
2471  * called from defargsYYrestart() or through yy_get_next_buffer.
2472  * In that case, we don't want to reset the lineno or column.
2473  */
2474  if (b != YY_CURRENT_BUFFER){
2475  b->yy_bs_lineno = 1;
2476  b->yy_bs_column = 0;
2477  }
2478 
2479  b->yy_is_interactive = 0;
2480 
2481  errno = oerrno;
2482 }
FILE * yy_input_file
Definition: code.cpp:210
int yy_fill_buffer
Definition: code.cpp:250
int yy_bs_lineno
Definition: code.cpp:244
int errno
Contains the last error code.
Definition: structcmd.h:53
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
void defargsYY_flush_buffer(YY_BUFFER_STATE b)
Definition: defargs.cpp:2488
int yy_bs_column
Definition: code.cpp:245
int yy_is_interactive
Definition: code.cpp:236
static void defargsYY_load_buffer_state ( void  )
static

Definition at line 2399 of file defargs.cpp.

2400 {
2401  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2402  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2403  defargsYYin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2404  (yy_hold_char) = *(yy_c_buf_p);
2405 }
static char yy_hold_char
Definition: defargs.cpp:292
static int yy_n_chars
Definition: defargs.cpp:293
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
static char * yy_c_buf_p
Definition: defargs.cpp:297
FILE * defargsYYin
Definition: defargs.cpp:359
#define yytext_ptr
Definition: defargs.cpp:368
YY_BUFFER_STATE defargsYY_scan_buffer ( char *  base,
yy_size_t  size 
)

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

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 2615 of file defargs.cpp.

2616 {
2618 
2619  if ( size < 2 ||
2622  /* They forgot to leave room for the EOB's. */
2623  return 0;
2624 
2625  b = (YY_BUFFER_STATE) defargsYYalloc(sizeof( struct yy_buffer_state ) );
2626  if ( ! b )
2627  YY_FATAL_ERROR( "out of dynamic memory in defargsYY_scan_buffer()" );
2628 
2629  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2630  b->yy_buf_pos = b->yy_ch_buf = base;
2631  b->yy_is_our_buffer = 0;
2632  b->yy_input_file = 0;
2633  b->yy_n_chars = b->yy_buf_size;
2634  b->yy_is_interactive = 0;
2635  b->yy_at_bol = 1;
2636  b->yy_fill_buffer = 0;
2638 
2640 
2641  return b;
2642 }
char * yy_buf_pos
Definition: code.cpp:213
FILE * yy_input_file
Definition: code.cpp:210
int yy_n_chars
Definition: code.cpp:223
int yy_fill_buffer
Definition: code.cpp:250
#define YY_END_OF_BUFFER_CHAR
Definition: defargs.cpp:159
yy_size_t yy_buf_size
Definition: code.cpp:218
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void defargsYY_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Definition: defargs.cpp:2368
char * yy_ch_buf
Definition: code.cpp:212
#define YY_BUFFER_NEW
Definition: defargs.cpp:254
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
void * defargsYYalloc(yy_size_t)
Definition: defargs.cpp:2884
static bool * b
Definition: config.cpp:1043
int yy_is_interactive
Definition: code.cpp:236
int yy_buffer_status
Definition: code.cpp:252
struct yy_buffer_state * YY_BUFFER_STATE
Definition: defargs.cpp:172
YY_BUFFER_STATE defargsYY_scan_bytes ( yyconst char *  yybytes,
int  _yybytes_len 
)

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

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

Definition at line 2665 of file defargs.cpp.

2666 {
2668  char *buf;
2669  yy_size_t n;
2670  int i;
2671 
2672  /* Get memory for full buffer, including space for trailing EOB's. */
2673  n = _yybytes_len + 2;
2674  buf = (char *) defargsYYalloc(n );
2675  if ( ! buf )
2676  YY_FATAL_ERROR( "out of dynamic memory in defargsYY_scan_bytes()" );
2677 
2678  for ( i = 0; i < _yybytes_len; ++i )
2679  buf[i] = yybytes[i];
2680 
2681  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2682 
2683  b = defargsYY_scan_buffer(buf,n );
2684  if ( ! b )
2685  YY_FATAL_ERROR( "bad buffer in defargsYY_scan_bytes()" );
2686 
2687  /* It's okay to grow etc. this buffer, and we should throw it
2688  * away when we're done.
2689  */
2690  b->yy_is_our_buffer = 1;
2691 
2692  return b;
2693 }
YY_BUFFER_STATE defargsYY_scan_buffer(char *base, yy_size_t size)
Definition: defargs.cpp:2615
#define YY_END_OF_BUFFER_CHAR
Definition: defargs.cpp:159
std::void_t< T > n
int yy_is_our_buffer
Definition: code.cpp:229
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
void * defargsYYalloc(yy_size_t)
Definition: defargs.cpp:2884
static bool * b
Definition: config.cpp:1043
size_t yy_size_t
Definition: code.cpp:203
YY_BUFFER_STATE defargsYY_scan_string ( yyconst char *  yystr)

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

Parameters
yystra 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 defargsYY_scan_bytes() instead.

Definition at line 2652 of file defargs.cpp.

2653 {
2654 
2655  return defargsYY_scan_bytes(yystr,strlen(yystr) );
2656 }
YY_BUFFER_STATE defargsYY_scan_bytes(yyconst char *bytes, int len)
Definition: defargs.cpp:2665
void defargsYY_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 2368 of file defargs.cpp.

2369 {
2370 
2371  /* TODO. We should be able to replace this entire function body
2372  * with
2373  * defargsYYpop_buffer_state();
2374  * defargsYYpush_buffer_state(new_buffer);
2375  */
2377  if ( YY_CURRENT_BUFFER == new_buffer )
2378  return;
2379 
2380  if ( YY_CURRENT_BUFFER )
2381  {
2382  /* Flush out information for old buffer. */
2383  *(yy_c_buf_p) = (yy_hold_char);
2384  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2385  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2386  }
2387 
2388  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2390 
2391  /* We don't actually know whether we did this switch during
2392  * EOF (defargsYYwrap()) processing, but the only time this flag
2393  * is looked at is after defargsYYwrap() is called, so it's safe
2394  * to go ahead and always set it.
2395  */
2397 }
static char yy_hold_char
Definition: defargs.cpp:292
static void defargsYYensure_buffer_stack(void)
Definition: defargs.cpp:2566
static int yy_n_chars
Definition: defargs.cpp:293
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
static char * yy_c_buf_p
Definition: defargs.cpp:297
static int yy_did_buffer_switch_on_eof
Definition: defargs.cpp:304
void * defargsYYalloc ( yy_size_t  size)

Definition at line 2884 of file defargs.cpp.

2885 {
2886  return (void *) malloc( size );
2887 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static void defargsYYensure_buffer_stack ( void  )
static

Definition at line 2566 of file defargs.cpp.

2567 {
2568  int num_to_alloc;
2569 
2570  if (!(yy_buffer_stack)) {
2571 
2572  /* First allocation is just for 2 elements, since we don't know if this
2573  * scanner will even need a stack. We use 2 instead of 1 to avoid an
2574  * immediate realloc on the next call.
2575  */
2576  num_to_alloc = 1;
2578  (num_to_alloc * sizeof(struct yy_buffer_state*)
2579  );
2580  if ( ! (yy_buffer_stack) )
2581  YY_FATAL_ERROR( "out of dynamic memory in defargsYYensure_buffer_stack()" );
2582 
2583  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2584 
2585  (yy_buffer_stack_max) = num_to_alloc;
2586  (yy_buffer_stack_top) = 0;
2587  return;
2588  }
2589 
2590  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2591 
2592  /* Increase the buffer to prepare for a possible push. */
2593  int grow_size = 8 /* arbitrary grow size */;
2594 
2595  num_to_alloc = (yy_buffer_stack_max) + grow_size;
2597  ((yy_buffer_stack),
2598  num_to_alloc * sizeof(struct yy_buffer_state*)
2599  );
2600  if ( ! (yy_buffer_stack) )
2601  YY_FATAL_ERROR( "out of dynamic memory in defargsYYensure_buffer_stack()" );
2602 
2603  /* zero only the new slots.*/
2604  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2605  (yy_buffer_stack_max) = num_to_alloc;
2606  }
2607 }
void * defargsYYrealloc(void *, yy_size_t)
Definition: defargs.cpp:2889
static size_t yy_buffer_stack_max
Definition: defargs.cpp:273
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
static size_t yy_buffer_stack_top
Definition: defargs.cpp:272
void * defargsYYalloc(yy_size_t)
Definition: defargs.cpp:2884
static YY_BUFFER_STATE * yy_buffer_stack
Definition: defargs.cpp:274
void defargsYYfree ( void *  ptr)

Definition at line 2901 of file defargs.cpp.

2902 {
2903  free( (char *) ptr ); /* see defargsYYrealloc() for (char *) cast */
2904 }
int defargsYYget_debug ( void  )

Definition at line 2792 of file defargs.cpp.

2793 {
2794  return defargsYY_flex_debug;
2795 }
int defargsYY_flex_debug
Definition: defargs.cpp:808
YY_EXTRA_TYPE defargsYYget_extra ( void  )
FILE * defargsYYget_in ( void  )

Get the input stream.

Definition at line 2736 of file defargs.cpp.

2737 {
2738  return defargsYYin;
2739 }
FILE * defargsYYin
Definition: defargs.cpp:359
int defargsYYget_leng ( void  )

Get the length of the current token.

Definition at line 2752 of file defargs.cpp.

2753 {
2754  return defargsYYleng;
2755 }
int defargsYYleng
Definition: defargs.cpp:294
int defargsYYget_lineno ( void  )

Get the current line number.

Definition at line 2727 of file defargs.cpp.

2728 {
2729 
2730  return defargsYYlineno;
2731 }
int defargsYYlineno
Definition: defargs.cpp:365
FILE * defargsYYget_out ( void  )

Get the output stream.

Definition at line 2744 of file defargs.cpp.

2745 {
2746  return defargsYYout;
2747 }
FILE * defargsYYout
Definition: defargs.cpp:359
char * defargsYYget_text ( void  )

Get the current token.

Definition at line 2761 of file defargs.cpp.

2762 {
2763  return defargsYYtext;
2764 }
char * defargsYYtext
Definition: defargs.cpp:832
int defargsYYlex ( void  )
int defargsYYlex_destroy ( void  )

Definition at line 2836 of file defargs.cpp.

2837 {
2838 
2839  /* Pop the buffer stack, destroying each element. */
2840  while(YY_CURRENT_BUFFER){
2842  YY_CURRENT_BUFFER_LVALUE = NULL;
2844  }
2845 
2846  /* Destroy the stack itself. */
2848  (yy_buffer_stack) = NULL;
2849 
2851  (yy_state_buf) = NULL;
2852 
2853  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2854  * defargsYYlex() is called, initialization will occur. */
2855  yy_init_globals( );
2856 
2857  return 0;
2858 }
void defargsYY_delete_buffer(YY_BUFFER_STATE b)
Definition: defargs.cpp:2441
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
static int yy_init_globals(void)
Definition: defargs.cpp:2802
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
void defargsYYfree(void *)
Definition: defargs.cpp:2901
void defargsYYpop_buffer_state(void)
Definition: defargs.cpp:2547
static yy_state_type * yy_state_buf
Definition: defargs.cpp:810
static YY_BUFFER_STATE * yy_buffer_stack
Definition: defargs.cpp:274
void defargsYYpop_buffer_state ( void  )

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

Definition at line 2547 of file defargs.cpp.

2548 {
2549  if (!YY_CURRENT_BUFFER)
2550  return;
2551 
2553  YY_CURRENT_BUFFER_LVALUE = NULL;
2554  if ((yy_buffer_stack_top) > 0)
2555  --(yy_buffer_stack_top);
2556 
2557  if (YY_CURRENT_BUFFER) {
2560  }
2561 }
void defargsYY_delete_buffer(YY_BUFFER_STATE b)
Definition: defargs.cpp:2441
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
static int yy_did_buffer_switch_on_eof
Definition: defargs.cpp:304
static size_t yy_buffer_stack_top
Definition: defargs.cpp:272
void defargsYYpush_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_bufferThe new state.

Definition at line 2517 of file defargs.cpp.

2518 {
2519  if (new_buffer == NULL)
2520  return;
2521 
2523 
2524  /* This block is copied from defargsYY_switch_to_buffer. */
2525  if ( YY_CURRENT_BUFFER )
2526  {
2527  /* Flush out information for old buffer. */
2528  *(yy_c_buf_p) = (yy_hold_char);
2529  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2530  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2531  }
2532 
2533  /* Only push if top exists. Otherwise, replace top. */
2534  if (YY_CURRENT_BUFFER)
2535  (yy_buffer_stack_top)++;
2536  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2537 
2538  /* copied from defargsYY_switch_to_buffer. */
2541 }
static char yy_hold_char
Definition: defargs.cpp:292
static void defargsYYensure_buffer_stack(void)
Definition: defargs.cpp:2566
static int yy_n_chars
Definition: defargs.cpp:293
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
static char * yy_c_buf_p
Definition: defargs.cpp:297
static int yy_did_buffer_switch_on_eof
Definition: defargs.cpp:304
static size_t yy_buffer_stack_top
Definition: defargs.cpp:272
void * defargsYYrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2889 of file defargs.cpp.

2890 {
2891  /* The cast to (char *) in the following accommodates both
2892  * implementations that use char* generic pointers, and those
2893  * that use void* generic pointers. It works with the latter
2894  * because both ANSI C and C++ allow castless assignment from
2895  * any pointer type to void*, and deal with argument conversions
2896  * as though doing an assignment.
2897  */
2898  return (void *) realloc( (char *) ptr, size );
2899 }
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
void defargsYYrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 2351 of file defargs.cpp.

2352 {
2353 
2354  if ( ! YY_CURRENT_BUFFER ){
2358  }
2359 
2362 }
static void defargsYYensure_buffer_stack(void)
Definition: defargs.cpp:2566
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
YY_BUFFER_STATE defargsYY_create_buffer(FILE *file, int size)
Definition: defargs.cpp:2413
static void defargsYY_init_buffer(YY_BUFFER_STATE b, FILE *file)
Definition: defargs.cpp:2460
FILE * defargsYYin
Definition: defargs.cpp:359
#define YY_BUF_SIZE
Definition: defargs.cpp:163
void defargsYYset_debug ( int  debug_flag)

Definition at line 2797 of file defargs.cpp.

2798 {
2799  defargsYY_flex_debug = bdebug ;
2800 }
int defargsYY_flex_debug
Definition: defargs.cpp:808
void defargsYYset_extra ( YY_EXTRA_TYPE  user_defined)
void defargsYYset_in ( FILE *  in_str)

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

Parameters
in_strA readable stream.
See also
defargsYY_switch_to_buffer

Definition at line 2782 of file defargs.cpp.

2783 {
2784  defargsYYin = in_str ;
2785 }
FILE * defargsYYin
Definition: defargs.cpp:359
void defargsYYset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2770 of file defargs.cpp.

2771 {
2772 
2773  defargsYYlineno = line_number;
2774 }
int defargsYYlineno
Definition: defargs.cpp:365
void defargsYYset_out ( FILE *  out_str)

Definition at line 2787 of file defargs.cpp.

2788 {
2789  defargsYYout = out_str ;
2790 }
FILE * defargsYYout
Definition: defargs.cpp:359
if ( yy_init)

Definition at line 1151 of file defargs.cpp.

1152  {
1153  (yy_init) = 1;
1154 
1155 #ifdef YY_USER_INIT
1156  YY_USER_INIT;
1157 #endif
1158 
1159  /* Create the reject buffer large enough to save one state per allowed character. */
1160  if ( ! (yy_state_buf) )
1162  if ( ! (yy_state_buf) )
1163  YY_FATAL_ERROR( "out of dynamic memory in defargsYYlex()" );
1164 
1165  if ( ! (yy_start) )
1166  (yy_start) = 1; /* first start state */
1167 
1168  if ( ! defargsYYin )
1169  defargsYYin = stdin;
1170 
1171  if ( ! defargsYYout )
1172  defargsYYout = stdout;
1173 
1174  if ( ! YY_CURRENT_BUFFER ) {
1178  }
1179 
1181  }
static void defargsYYensure_buffer_stack(void)
Definition: defargs.cpp:2566
#define YY_STATE_BUF_SIZE
Definition: defargs.cpp:168
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_CURRENT_BUFFER
Definition: defargs.cpp:282
int yy_state_type
Definition: code.cpp:361
static void defargsYY_load_buffer_state(void)
Definition: defargs.cpp:2399
YY_BUFFER_STATE defargsYY_create_buffer(FILE *file, int size)
Definition: defargs.cpp:2413
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
FILE * defargsYYout
Definition: defargs.cpp:359
void * defargsYYalloc(yy_size_t)
Definition: defargs.cpp:2884
FILE * defargsYYin
Definition: defargs.cpp:359
static int yy_init
Definition: defargs.cpp:298
static yy_state_type * yy_state_buf
Definition: defargs.cpp:810
#define YY_BUF_SIZE
Definition: defargs.cpp:163
static int yy_start
Definition: defargs.cpp:299
void stringToArgumentList ( const char *  argsString,
ArgumentList al,
QCString extraTypeChars 
)

Converts an argument string into an ArgumentList.

Parameters
[in]argsStringthe list of Arguments.
[out]ala reference to resulting argument list pointer.
[out]extraTypeCharspoint to string to which trailing characters for complex types are written to

Definition at line 2922 of file defargs.cpp.

2923 {
2924  if (al==0) return;
2925  if (argsString==0) return;
2926  printlex(defargsYY_flex_debug, TRUE, __FILE__, NULL);
2927 
2928  g_copyArgValue=0;
2929  g_curArgDocs.resize(0);
2931  g_curArgArray.resize(0);
2934  g_argRoundCount = 0;
2935  g_argSharpCount = 0;
2936  g_argCurlyCount = 0;
2937  g_lastDocChar = 0;
2938 
2939  g_inputString = argsString;
2940  g_inputPosition = 0;
2943  g_curArgName.resize(0);
2944  g_argList = al;
2946  BEGIN( Start );
2947  defargsYYlex();
2948  if (extraTypeChars) *extraTypeChars=g_extraTypeChars;
2949  //printf("stringToArgumentList(%s) result=%s\n",argsString,argListToString(al).data());
2950  printlex(defargsYY_flex_debug, FALSE, __FILE__, NULL);
2951 }
bool resize(uint newlen)
Definition: qcstring.h:225
static int g_lastDocChar
Definition: defargs.cpp:914
void defargsYYrestart(FILE *input_file)
Definition: defargs.cpp:2351
static int g_inputPosition
Definition: defargs.cpp:898
static QCString g_extraTypeChars
Definition: defargs.cpp:908
static int g_argRoundCount
Definition: defargs.cpp:909
void printlex(int dbg, bool enter, const char *lexName, const char *fileName)
Definition: message.cpp:242
#define Start
Definition: defargs.cpp:952
const bool FALSE
Definition: qglobal.h:370
static QCString g_curArgArray
Definition: defargs.cpp:906
static QCString g_curArgAttrib
Definition: defargs.cpp:905
static int g_argSharpCount
Definition: defargs.cpp:910
static QCString g_curArgName
Definition: defargs.cpp:903
static QCString * g_copyArgValue
Definition: defargs.cpp:900
int defargsYYlex(void)
static QCString g_curTypeConstraint
Definition: defargs.cpp:907
static const char * g_inputString
Definition: defargs.cpp:897
static QCString g_curArgDocs
Definition: defargs.cpp:904
static int g_argCurlyCount
Definition: defargs.cpp:911
#define BEGIN
Definition: defargs.cpp:144
static ArgumentList * g_argList
Definition: defargs.cpp:899
static QCString g_curArgTypeName
Definition: defargs.cpp:901
FILE * defargsYYin
Definition: defargs.cpp:359
const bool TRUE
Definition: qglobal.h:371
static QCString g_curArgDefValue
Definition: defargs.cpp:902
int defargsYY_flex_debug
Definition: defargs.cpp:808
while ( )

Definition at line 1183 of file defargs.cpp.

1184  {
1185  yy_cp = (yy_c_buf_p);
1186 
1187  /* Support of defargsYYtext. */
1188  *yy_cp = (yy_hold_char);
1189 
1190  /* yy_bp points to the position in yy_ch_buf of the start of
1191  * the current run.
1192  */
1193  yy_bp = yy_cp;
1194 
1195  yy_current_state = (yy_start);
1196 
1197  (yy_state_ptr) = (yy_state_buf);
1198  *(yy_state_ptr)++ = yy_current_state;
1199 
1200 yy_match:
1201  do
1202  {
1203  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1204  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1205  {
1206  yy_current_state = (int) yy_def[yy_current_state];
1207  if ( yy_current_state >= 263 )
1208  yy_c = yy_meta[(unsigned int) yy_c];
1209  }
1210  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1211  *(yy_state_ptr)++ = yy_current_state;
1212  ++yy_cp;
1213  }
1214  while ( yy_current_state != 262 );
1215 
1216 yy_find_action:
1217  yy_current_state = *--(yy_state_ptr);
1218  (yy_lp) = yy_accept[yy_current_state];
1219 find_rule: /* we branch to this label when backing up */
1220  for ( ; ; ) /* until we find what rule we matched */
1221  {
1222  if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
1223  {
1224  yy_act = yy_acclist[(yy_lp)];
1225  if ( yy_act & YY_TRAILING_HEAD_MASK ||
1227  {
1229  {
1232  break;
1233  }
1234  }
1235  else if ( yy_act & YY_TRAILING_MASK )
1236  {
1237  (yy_looking_for_trail_begin) = yy_act & ~YY_TRAILING_MASK;
1239  (yy_full_match) = yy_cp;
1241  (yy_full_lp) = (yy_lp);
1242  }
1243  else
1244  {
1245  (yy_full_match) = yy_cp;
1247  (yy_full_lp) = (yy_lp);
1248  break;
1249  }
1250  ++(yy_lp);
1251  goto find_rule;
1252  }
1253  --yy_cp;
1254  yy_current_state = *--(yy_state_ptr);
1255  (yy_lp) = yy_accept[yy_current_state];
1256  }
1257 
1259 
1260 do_action: /* This label is used only to access EOF actions. */
1261 
1262  switch ( yy_act )
1263  { /* beginning of action switch */
1264 case 1:
1266 #line 131 "defargs.l"
1267 { BEGIN(ReadFuncArgType); }
1268  YY_BREAK
1269 case 2:
1271 #line 133 "defargs.l"
1272 {
1273  g_curArgTypeName+=" ";
1274  }
1275  YY_BREAK
1276 case 3:
1277 /* rule 3 can match eol */
1279 #line 136 "defargs.l"
1280 {
1282  {
1283  g_curArgAttrib=defargsYYtext; // for M$-IDL
1284  }
1285  else // array type
1286  {
1288  }
1289  }
1290  YY_BREAK
1291 case 4:
1293 #line 146 "defargs.l"
1295  YY_BREAK
1296 case 5:
1298 #line 147 "defargs.l"
1300  YY_BREAK
1301 case 6:
1303 #line 148 "defargs.l"
1305  YY_BREAK
1306 case 7:
1307 /* rule 7 can match eol */
1309 #line 149 "defargs.l"
1311  QCString text=defargsYYtext;
1312  int i=text.find('"');
1313  g_delimiter = defargsYYtext+i+1;
1315  BEGIN( CopyRawString );
1316  }
1317  YY_BREAK
1318 case 8:
1320 #line 156 "defargs.l"
1321 {
1323  BEGIN( CopyArgString );
1324  }
1325  YY_BREAK
1326 case 9:
1327 /* rule 9 can match eol */
1329 #line 160 "defargs.l"
1330 {
1331  // function pointer as argument
1333  //g_curArgTypeName=g_curArgTypeName.simplifyWhiteSpace();
1334  BEGIN( ReadFuncArgPtr );
1335  }
1336  YY_BREAK
1337 case 10:
1339 #line 166 "defargs.l"
1340 {
1342  }
1343  YY_BREAK
1344 case 11:
1346 #line 169 "defargs.l"
1347 { // function pointer
1349  //g_curArgTypeName=g_curArgTypeName.simplifyWhiteSpace();
1352  g_argRoundCount=0;
1353  BEGIN( CopyArgRound2 );
1354  }
1355  YY_BREAK
1356 case 12:
1357 *yy_cp = (yy_hold_char); /* undo effects of setting up defargsYYtext */
1358 (yy_c_buf_p) = yy_cp = yy_bp + 1;
1359 YY_DO_BEFORE_ACTION; /* set up defargsYYtext again */
1361 #line 177 "defargs.l"
1362 { // pointer to fixed size array
1365  //g_curArgTypeName=g_curArgTypeName.simplifyWhiteSpace();
1367  }
1368  YY_BREAK
1369 case 13:
1371 #line 183 "defargs.l"
1372 { // redundant braces detected / remove them
1374  if (i!=-1)
1376  g_curArgTypeName.right(l-i-1);
1379  }
1380  YY_BREAK
1381 case 14:
1383 #line 191 "defargs.l"
1384 { // handle operators in defargs
1386  }
1387  YY_BREAK
1388 case 15:
1390 #line 194 "defargs.l"
1391 {
1393  {
1396  }
1397  else // YY_START==ReadFuncArgDef
1398  {
1401  }
1403  if (*defargsYYtext=='(')
1404  {
1405  g_argRoundCount=0;
1406  BEGIN( CopyArgRound );
1407  }
1408  else if (*defargsYYtext=='{')
1409  {
1410  g_argCurlyCount=0;
1411  BEGIN( CopyArgCurly );
1412  }
1413  else // defargsYYtext=='<'
1414  {
1415  g_argSharpCount=0;
1416  g_argRoundCount=0;
1417  BEGIN( CopyArgSharp );
1418  }
1419  }
1420  YY_BREAK
1421 case 16:
1423 #line 223 "defargs.l"
1424 {
1425  g_argRoundCount++;
1427  }
1428  YY_BREAK
1429 case 17:
1431 #line 227 "defargs.l"
1432 {
1434  if (g_argRoundCount>0)
1435  {
1436  g_argRoundCount--;
1437  }
1438  else
1439  {
1440  if (YY_START==CopyArgRound2)
1441  {
1443  }
1445  }
1446  }
1447  YY_BREAK
1448 case 18:
1449 *yy_cp = (yy_hold_char); /* undo effects of setting up defargsYYtext */
1450 (yy_c_buf_p) = yy_cp = yy_bp + 1;
1451 YY_DO_BEFORE_ACTION; /* set up defargsYYtext again */
1453 #line 242 "defargs.l"
1454 {
1457  else BEGIN( g_readArgContext );
1458  }
1459  YY_BREAK
1460 case 19:
1462 #line 247 "defargs.l"
1463 {
1464  if (g_argRoundCount>0)
1465  {
1467  }
1468  else
1469  {
1470  REJECT;
1471  }
1472  }
1473  YY_BREAK
1474 case 20:
1476 #line 257 "defargs.l"
1477 {
1478  if (g_argRoundCount>0)
1479  {
1481  }
1482  else
1483  {
1484  REJECT;
1485  }
1486  }
1487  YY_BREAK
1488 case 21:
1490 #line 267 "defargs.l"
1491 {
1492  g_argSharpCount++;
1494  }
1495  YY_BREAK
1496 case 22:
1498 #line 271 "defargs.l"
1499 {
1502  else BEGIN( g_readArgContext );
1503  }
1504  YY_BREAK
1505 case 23:
1507 #line 276 "defargs.l"
1508 {
1509  g_argRoundCount++;
1511  }
1512  YY_BREAK
1513 case 24:
1515 #line 280 "defargs.l"
1516 {
1517  g_argRoundCount--;
1519  }
1520  YY_BREAK
1521 case 25:
1523 #line 284 "defargs.l"
1524 {
1525  g_argCurlyCount++;
1527  }
1528  YY_BREAK
1529 case 26:
1531 #line 288 "defargs.l"
1532 {
1535  else BEGIN( g_readArgContext );
1536  }
1537  YY_BREAK
1538 case 27:
1540 #line 293 "defargs.l"
1541 {
1543  }
1544  YY_BREAK
1545 case 28:
1546 /* rule 28 can match eol */
1548 #line 296 "defargs.l"
1549 {
1551  QCString delimiter = defargsYYtext+1;
1552  delimiter=delimiter.left(delimiter.length()-1);
1553  if (delimiter==g_delimiter)
1554  {
1555  BEGIN( ReadFuncArgDef );
1556  }
1557  }
1558  YY_BREAK
1559 case 29:
1561 #line 305 "defargs.l"
1562 {
1564  BEGIN( ReadFuncArgDef );
1565  }
1566  YY_BREAK
1567 case 30:
1569 #line 309 "defargs.l"
1570 {
1571  BEGIN( ReadFuncArgDef );
1572  }
1573  YY_BREAK
1574 case 31:
1576 #line 312 "defargs.l"
1577 {
1580  QCString text=defargsYYtext;
1581  if (text.find("//")!=-1)
1582  BEGIN( ReadDocLine );
1583  else
1584  BEGIN( ReadDocBlock );
1585  }
1586  YY_BREAK
1587 case 32:
1589 #line 321 "defargs.l"
1590 {
1592  {
1594  BEGIN(FuncQual);
1595  }
1596  else
1597  {
1600  //printf("curArgType=`%s' curArgDefVal=`%s'\n",g_curArgTypeName.data(),g_curArgDefValue.data());
1601  int l=g_curArgTypeName.length();
1602  if (l>0)
1603  {
1604  int i=l-1;
1605  while (i>=0 && (isspace((uchar)g_curArgTypeName.at(i)) || g_curArgTypeName.at(i)=='.')) i--;
1606  while (i>=0 && (isId(g_curArgTypeName.at(i)) || g_curArgTypeName.at(i)=='$')) i--;
1607  Argument *a = new Argument;
1608  a->attrib = g_curArgAttrib.copy();
1610  //printf("a->type=%s a->name=%s i=%d l=%d\n",
1611  // a->type.data(),a->name.data(),i,l);
1612  a->array.resize(0);
1613  if (i==l-1 && g_curArgTypeName.at(i)==')') // function argument
1614  {
1615  int bi=g_curArgTypeName.find('(');
1616  int fi=bi-1;
1617  //printf("func arg fi=%d\n",fi);
1618  while (fi>=0 && (isId(g_curArgTypeName.at(fi)) || g_curArgTypeName.at(fi)==':')) fi--;
1619  if (fi>=0)
1620  {
1621  a->type = g_curArgTypeName.left(fi+1);
1622  a->name = g_curArgTypeName.mid(fi+1,bi-fi-1).stripWhiteSpace();
1623  a->array = g_curArgTypeName.right(l-bi);
1624  }
1625  else
1626  {
1627  a->type = g_curArgTypeName;
1628  }
1629  }
1630  else if (i>=0 && g_curArgTypeName.at(i)!=':')
1631  { // type contains a name
1632  a->type = removeRedundantWhiteSpace(g_curArgTypeName.left(i+1)).stripWhiteSpace();
1634 
1635  // if the type becomes a type specifier only then we make a mistake
1636  // and need to correct it to avoid seeing a nameless parameter
1637  // "struct A" as a parameter with type "struct" and name "A".
1638  int sv=0;
1639  if (a->type.left(6)=="const ") sv=6;
1640  else if (a->type.left(9)=="volatile ") sv=9;
1641 
1642  if (a->type.mid(sv)=="struct" ||
1643  a->type.mid(sv)=="union" ||
1644  a->type.mid(sv)=="class" ||
1645  a->type.mid(sv)=="typename" ||
1646  a->type=="const" ||
1647  a->type=="volatile"
1648  )
1649  {
1650  a->type = a->type + " " + a->name;
1651  a->name.resize(0);
1652  }
1653  //printf(" --> a->type='%s' a->name='%s'\n",a->type.data(),a->name.data());
1654  }
1655  else // assume only the type was specified, try to determine name later
1656  {
1658  }
1659  if (!a->type.isEmpty() && a->type.at(0)=='$') // typeless PHP name?
1660  {
1661  a->name = a->type;
1662  a->type = "";
1663  }
1665  //printf("array=%s\n",a->array.data());
1666  int alen = a->array.length();
1667  if (alen>2 && a->array.at(0)=='(' &&
1668  a->array.at(alen-1)==')') // fix-up for int *(a[10])
1669  {
1670  int i=a->array.find('[')-1;
1671  a->array = a->array.mid(1,alen-2);
1672  if (i>0 && a->name.isEmpty())
1673  {
1674  a->name = a->array.left(i).stripWhiteSpace();
1675  a->array = a->array.mid(i);
1676  }
1677  }
1678  a->defval = g_curArgDefValue.copy();
1679  //printf("a->type=%s a->name=%s a->defval=\"%s\"\n",a->type.data(),a->name.data(),a->defval.data());
1681  //printf("Argument `%s' `%s' adding docs=`%s'\n",a->type.data(),a->name.data(),a->docs.data());
1682  g_argList->append(a);
1683  }
1687  g_curArgArray.resize(0);
1688  g_curArgDocs.resize(0);
1690  if (*defargsYYtext==')')
1691  {
1692  BEGIN(FuncQual);
1693  //printf(">>> end of argument list\n");
1694  }
1695  else
1696  {
1698  }
1699  }
1700  }
1701  YY_BREAK
1702 case 33:
1704 #line 432 "defargs.l"
1705 {
1709  }
1710  YY_BREAK
1711 case 34:
1713 #line 437 "defargs.l"
1714 {
1715  QCString name=defargsYYtext; //resolveDefines(defargsYYtext);
1716  if (YY_START==ReadFuncArgType && g_curArgArray=="[]") // Java style array
1717  {
1718  g_curArgTypeName+=" []";
1719  g_curArgArray.resize(0);
1720  }
1721  //printf("resolveName `%s'->`%s'\n",defargsYYtext,name.data());
1723  }
1724  YY_BREAK
1725 case 35:
1727 #line 447 "defargs.l"
1728 {
1730  }
1731  YY_BREAK
1732 case 36:
1734 #line 451 "defargs.l"
1735 {
1737  }
1738  YY_BREAK
1739 case 37:
1741 #line 454 "defargs.l"
1742 {
1744  }
1745  YY_BREAK
1746 case 38:
1748 #line 457 "defargs.l"
1749 {
1750  QCString name=defargsYYtext; //resolveDefines(defargsYYtext);
1751  *g_copyArgValue+=name;
1752  }
1753  YY_BREAK
1754 case 39:
1756 #line 461 "defargs.l"
1757 {
1759  }
1760  YY_BREAK
1761 case 40:
1763 #line 464 "defargs.l"
1764 {
1765  unput(*defargsYYtext);
1767  }
1768  YY_BREAK
1769 case 41:
1771 #line 468 "defargs.l"
1772 {
1774  }
1775  YY_BREAK
1776 case 42:
1777 /* rule 42 can match eol */
1779 #line 471 "defargs.l"
1780 {
1781  g_curTypeConstraint+=' ';
1782  }
1783  YY_BREAK
1784 case 43:
1786 #line 474 "defargs.l"
1787 {
1789  }
1790  YY_BREAK
1791 case 44:
1793 #line 477 "defargs.l"
1794 {
1796  }
1797  YY_BREAK
1798 case 45:
1800 #line 480 "defargs.l"
1801 {
1803  BEGIN(FuncQual);
1804  }
1805  YY_BREAK
1806 case 46:
1808 #line 484 "defargs.l"
1809 { // C++11 trailing return type
1810  g_argList->trailingReturnType=" -> ";
1812  }
1813  YY_BREAK
1814 case 47:
1815 *yy_cp = (yy_hold_char); /* undo effects of setting up defargsYYtext */
1816 (yy_c_buf_p) = yy_cp = yy_bp + 1;
1817 YY_DO_BEFORE_ACTION; /* set up defargsYYtext again */
1819 #line 488 "defargs.l"
1820 {
1821  unput(*defargsYYtext);
1822  BEGIN(FuncQual);
1823  }
1824  YY_BREAK
1825 case 48:
1827 #line 492 "defargs.l"
1828 {
1830  }
1831  YY_BREAK
1832 case 49:
1833 /* rule 49 can match eol */
1835 #line 495 "defargs.l"
1836 {
1838  }
1839  YY_BREAK
1840 case 50:
1841 /* rule 50 can match eol */
1843 #line 498 "defargs.l"
1844 { // for functions returning a pointer to an array,
1845  // i.e. ")[]" in "int (*f(int))[4]" with argsString="(int))[4]"
1847  }
1848  YY_BREAK
1849 case 51:
1851 #line 502 "defargs.l"
1852 {
1854  }
1855  YY_BREAK
1856 case 52:
1858 #line 505 "defargs.l"
1859 {
1861  }
1862  YY_BREAK
1863 case 53:
1865 #line 508 "defargs.l"
1866 {
1867  if (g_lastDocChar!=0)
1870  }
1871  YY_BREAK
1872 case 54:
1873 /* rule 54 can match eol */
1875 #line 513 "defargs.l"
1876 {
1877  if (g_lastDocChar!=0)
1880  }
1881  YY_BREAK
1882 case 55:
1883 /* rule 55 can match eol */
1885 #line 518 "defargs.l"
1886 {
1888  }
1889  YY_BREAK
1890 case 56:
1892 #line 521 "defargs.l"
1893 {
1895  }
1896  YY_BREAK
1897 case 57:
1899 #line 524 "defargs.l"
1900 {
1902  g_lastDocChar=0;
1903  if (defargsYYtext[1]=='/')
1904  BEGIN( ReadDocLine );
1905  else
1906  BEGIN( ReadDocBlock );
1907  }
1908  YY_BREAK
1909 case 58:
1910 /* rule 58 can match eol */
1912 #line 532 "defargs.l"
1913 
1914  YY_BREAK
1915 case 59:
1917 #line 533 "defargs.l"
1918 
1919  YY_BREAK
1920 case 60:
1922 #line 535 "defargs.l"
1923 ECHO;
1924  YY_BREAK
1925 #line 1926 "/nova/app/home/novasoft/doxygen/doxygen-1.8.11/build/generated_src/defargs.cpp"
1926  case YY_STATE_EOF(INITIAL):
1927  case YY_STATE_EOF(Start):
1928  case YY_STATE_EOF(CopyArgString):
1929  case YY_STATE_EOF(CopyRawString):
1930  case YY_STATE_EOF(CopyArgRound):
1931  case YY_STATE_EOF(CopyArgRound2):
1932  case YY_STATE_EOF(CopyArgSharp):
1933  case YY_STATE_EOF(CopyArgCurly):
1934  case YY_STATE_EOF(ReadFuncArgType):
1935  case YY_STATE_EOF(ReadFuncArgDef):
1936  case YY_STATE_EOF(ReadFuncArgPtr):
1937  case YY_STATE_EOF(FuncQual):
1938  case YY_STATE_EOF(ReadDocBlock):
1939  case YY_STATE_EOF(ReadDocLine):
1940  case YY_STATE_EOF(ReadTypeConstraint):
1941  case YY_STATE_EOF(TrailingReturn):
1942  yyterminate();
1943 
1944  case YY_END_OF_BUFFER:
1945  {
1946  /* Amount of text matched not including the EOB char. */
1947  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1948 
1949  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1950  *yy_cp = (yy_hold_char);
1952 
1953  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1954  {
1955  /* We're scanning a new file or input source. It's
1956  * possible that this happened because the user
1957  * just pointed defargsYYin at a new source and called
1958  * defargsYYlex(). If so, then we have to assure
1959  * consistency between YY_CURRENT_BUFFER and our
1960  * globals. Here is the right place to do so, because
1961  * this is the first action (other than possibly a
1962  * back-up) that will match for the new input source.
1963  */
1964  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1965  YY_CURRENT_BUFFER_LVALUE->yy_input_file = defargsYYin;
1966  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1967  }
1968 
1969  /* Note that here we test for yy_c_buf_p "<=" to the position
1970  * of the first EOB in the buffer, since yy_c_buf_p will
1971  * already have been incremented past the NUL character
1972  * (since all states make transitions on EOB to the
1973  * end-of-buffer state). Contrast this with the test
1974  * in input().
1975  */
1976  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1977  { /* This was really a NUL. */
1978  yy_state_type yy_next_state;
1979 
1980  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1981 
1982  yy_current_state = yy_get_previous_state( );
1983 
1984  /* Okay, we're now positioned to make the NUL
1985  * transition. We couldn't have
1986  * yy_get_previous_state() go ahead and do it
1987  * for us because it doesn't know how to deal
1988  * with the possibility of jamming (and we don't
1989  * want to build jamming into it because then it
1990  * will run more slowly).
1991  */
1992 
1993  yy_next_state = yy_try_NUL_trans( yy_current_state );
1994 
1996 
1997  if ( yy_next_state )
1998  {
1999  /* Consume the NUL. */
2000  yy_cp = ++(yy_c_buf_p);
2001  yy_current_state = yy_next_state;
2002  goto yy_match;
2003  }
2004 
2005  else
2006  {
2007  yy_cp = (yy_c_buf_p);
2008  goto yy_find_action;
2009  }
2010  }
2011 
2012  else switch ( yy_get_next_buffer( ) )
2013  {
2014  case EOB_ACT_END_OF_FILE:
2015  {
2017 
2018  if ( defargsYYwrap( ) )
2019  {
2020  /* Note: because we've taken care in
2021  * yy_get_next_buffer() to have set up
2022  * defargsYYtext, we can now set up
2023  * yy_c_buf_p so that if some total
2024  * hoser (like flex itself) wants to
2025  * call the scanner after we return the
2026  * YY_NULL, it'll still work - another
2027  * YY_NULL will get returned.
2028  */
2030 
2032  goto do_action;
2033  }
2034 
2035  else
2036  {
2037  if ( ! (yy_did_buffer_switch_on_eof) )
2038  YY_NEW_FILE;
2039  }
2040  break;
2041  }
2042 
2043  case EOB_ACT_CONTINUE_SCAN:
2044  (yy_c_buf_p) =
2045  (yytext_ptr) + yy_amount_of_matched_text;
2046 
2047  yy_current_state = yy_get_previous_state( );
2048 
2049  yy_cp = (yy_c_buf_p);
2051  goto yy_match;
2052 
2053  case EOB_ACT_LAST_MATCH:
2054  (yy_c_buf_p) =
2055  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2056 
2057  yy_current_state = yy_get_previous_state( );
2058 
2059  yy_cp = (yy_c_buf_p);
2061  goto yy_find_action;
2062  }
2063  break;
2064  }
2065 
2066  default:
2068  "fatal flex scanner internal error--no action found" );
2069  } /* end of action switch */
2070  } /* end of scanning one token */
static QCString name
Definition: declinfo.cpp:673
#define CopyArgCurly
Definition: defargs.cpp:958
static char yy_hold_char
Definition: defargs.cpp:292
static yyconst flex_int16_t yy_accept[264]
Definition: defargs.cpp:435
QCString type
Definition: arguments.h:67
bool resize(uint newlen)
Definition: qcstring.h:225
static int g_lastDocChar
Definition: defargs.cpp:914
static QCString g_delimiter
Definition: defargs.cpp:916
#define defargsYYwrap(n)
Definition: defargs.cpp:354
#define CopyArgSharp
Definition: defargs.cpp:957
QCString stripWhiteSpace() const
Definition: qcstring.cpp:295
#define CopyRawString
Definition: defargs.cpp:954
#define YY_BREAK
Definition: defargs.cpp:1132
#define unput(c)
Definition: defargs.cpp:199
#define ReadDocLine
Definition: defargs.cpp:964
#define EOB_ACT_END_OF_FILE
Definition: defargs.cpp:180
bool isEmpty() const
Definition: qcstring.h:189
#define EOB_ACT_LAST_MATCH
Definition: defargs.cpp:181
static QCString g_extraTypeChars
Definition: defargs.cpp:908
static int g_argRoundCount
Definition: defargs.cpp:909
static int g_lastExtendsContext
Definition: defargs.cpp:915
uint length() const
Definition: qcstring.h:195
#define YY_DO_BEFORE_ACTION
Definition: defargs.cpp:378
#define FuncQual
Definition: defargs.cpp:962
void append(const type *d)
Definition: qlist.h:73
QCString defval
Definition: arguments.h:71
char & at(uint i) const
Definition: qcstring.h:326
#define Start
Definition: defargs.cpp:952
#define ReadTypeConstraint
Definition: defargs.cpp:965
#define CopyArgRound
Definition: defargs.cpp:955
static int yy_n_chars
Definition: defargs.cpp:293
#define ECHO
Definition: defargs.cpp:1053
static QCString g_curArgArray
Definition: defargs.cpp:906
register char * yy_cp
Definition: defargs.cpp:1143
#define YY_START
Definition: defargs.cpp:150
#define YY_BUFFER_NORMAL
Definition: defargs.cpp:255
QCString left(uint len) const
Definition: qcstring.cpp:213
static int g_lastDocContext
Definition: defargs.cpp:913
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:41
static char * yy_full_match
Definition: defargs.cpp:811
#define YY_RULE_SETUP
Definition: defargs.cpp:1135
static QStrList * l
Definition: config.cpp:1044
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_base[315]
Definition: defargs.cpp:509
static QCString g_curArgAttrib
Definition: defargs.cpp:905
static yyconst flex_int32_t yy_meta[47]
Definition: defargs.cpp:500
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition: qcstring.cpp:95
#define YY_MORE_ADJ
Definition: defargs.cpp:830
#define ReadFuncArgPtr
Definition: defargs.cpp:961
unsigned char uchar
Definition: nybbler.cc:11
static yyconst flex_int16_t yy_nxt[969]
Definition: defargs.cpp:587
char * defargsYYtext
Definition: defargs.cpp:832
QCString copy() const
Definition: qcstring.h:250
#define yyterminate()
Definition: defargs.cpp:1097
bool constSpecifier
Definition: arguments.h:99
QCString typeConstraint
Definition: arguments.h:73
#define ReadFuncArgType
Definition: defargs.cpp:959
This class contains the information about the argument of a function or template. ...
Definition: arguments.h:28
#define ReadFuncArgDef
Definition: defargs.cpp:960
#define INITIAL
Definition: defargs.cpp:951
static int g_argSharpCount
Definition: defargs.cpp:910
bool volatileSpecifier
Definition: arguments.h:101
static yy_state_type * yy_state_ptr
Definition: defargs.cpp:810
#define ReadDocBlock
Definition: defargs.cpp:963
static QCString g_curArgName
Definition: defargs.cpp:903
register char * yy_bp
Definition: defargs.cpp:1143
QCString right(uint len) const
Definition: qcstring.cpp:231
const double a
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
Definition: defargs.cpp:2216
static int * yy_full_state
Definition: defargs.cpp:815
#define REJECT
Definition: defargs.cpp:818
static int yy_get_next_buffer(void)
Definition: defargs.cpp:2080
static QCString * g_copyArgValue
Definition: defargs.cpp:900
static yyconst flex_int16_t yy_chk[969]
Definition: defargs.cpp:697
static QCString g_curTypeConstraint
Definition: defargs.cpp:907
static yy_state_type yy_get_previous_state(void)
Definition: defargs.cpp:2185
unsigned char YY_CHAR
Definition: code.cpp:357
#define YY_STATE_EOF(state)
Definition: defargs.cpp:154
static yyconst flex_int16_t yy_def[315]
Definition: defargs.cpp:548
#define YY_BUFFER_NEW
Definition: defargs.cpp:254
register int yy_act
Definition: defargs.cpp:1144
#define YY_TRAILING_HEAD_MASK
Definition: defargs.cpp:817
QCString removeRedundantWhiteSpace(const QCString &s)
Definition: util.cpp:1655
QCString mid(uint index, uint len=0xffffffff) const
Definition: qcstring.cpp:246
#define CopyArgString
Definition: defargs.cpp:953
static QCString g_curArgDocs
Definition: defargs.cpp:904
static char * yy_c_buf_p
Definition: defargs.cpp:297
static int yy_full_lp
Definition: defargs.cpp:814
static int yy_did_buffer_switch_on_eof
Definition: defargs.cpp:304
bool pureSpecifier
Definition: arguments.h:103
static int g_argCurlyCount
Definition: defargs.cpp:911
QCString attrib
Definition: arguments.h:66
#define BEGIN
Definition: defargs.cpp:144
static ArgumentList * g_argList
Definition: defargs.cpp:899
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
static QCString g_curArgTypeName
Definition: defargs.cpp:901
QCString name
Definition: arguments.h:69
static int g_readArgContext
Definition: defargs.cpp:912
QCString trailingReturnType
Definition: arguments.h:105
FILE * defargsYYin
Definition: defargs.cpp:359
bool isId(int c)
Definition: util.h:224
#define YY_RESTORE_YY_MORE_OFFSET
Definition: defargs.cpp:831
#define CopyArgRound2
Definition: defargs.cpp:956
#define YY_TRAILING_MASK
Definition: defargs.cpp:816
#define YY_NEW_FILE
Definition: defargs.cpp:157
#define TrailingReturn
Definition: defargs.cpp:966
static yy_state_type * yy_state_buf
Definition: defargs.cpp:810
static int yy_looking_for_trail_begin
Definition: defargs.cpp:813
#define YY_END_OF_BUFFER
Definition: defargs.cpp:386
static yyconst flex_int16_t yy_acclist[333]
Definition: defargs.cpp:394
#define EOB_ACT_CONTINUE_SCAN
Definition: defargs.cpp:179
static int yy_lp
Definition: defargs.cpp:812
const bool TRUE
Definition: qglobal.h:371
static int yy_start
Definition: defargs.cpp:299
#define yytext_ptr
Definition: defargs.cpp:368
static QCString g_curArgDefValue
Definition: defargs.cpp:902
static yyconst flex_int32_t yy_ec[256]
Definition: defargs.cpp:468
#define YY_SC_TO_UI(c)
Definition: defargs.cpp:138
QCString array
Definition: arguments.h:70
QCString docs
Definition: arguments.h:72
static void yy_fatal_error ( yyconst char  msg[])
static
static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 2699 of file defargs.cpp.

2700 {
2701  (void) fprintf( stderr, "%s\n", msg );
2702  exit( YY_EXIT_FAILURE );
2703 }
void msg(const char *fmt,...)
Definition: message.cpp:107
#define YY_EXIT_FAILURE
Definition: defargs.cpp:2696
static int yy_get_next_buffer ( void  )
static

Definition at line 2080 of file defargs.cpp.

2081 {
2082  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2083  register char *source = (yytext_ptr);
2084  register int number_to_move, i;
2085  int ret_val;
2086 
2087  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2089  "fatal flex scanner internal error--end of buffer missed" );
2090 
2091  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2092  { /* Don't try to fill the buffer, so this is an EOF. */
2093  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2094  {
2095  /* We matched a single character, the EOB, so
2096  * treat this as a final EOF.
2097  */
2098  return EOB_ACT_END_OF_FILE;
2099  }
2100 
2101  else
2102  {
2103  /* We matched some text prior to the EOB, first
2104  * process it.
2105  */
2106  return EOB_ACT_LAST_MATCH;
2107  }
2108  }
2109 
2110  /* Try to read more data. */
2111 
2112  /* First move last chars to start of buffer. */
2113  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2114 
2115  for ( i = 0; i < number_to_move; ++i )
2116  *(dest++) = *(source++);
2117 
2118  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2119  /* don't do the read, it's not guaranteed to return an EOF,
2120  * just force an EOF
2121  */
2122  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2123 
2124  else
2125  {
2126  int num_to_read =
2127  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2128 
2129  while ( num_to_read <= 0 )
2130  { /* Not enough room in the buffer - grow it. */
2131 
2133 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2134 
2135  }
2136 
2137  if ( num_to_read > YY_READ_BUF_SIZE )
2138  num_to_read = YY_READ_BUF_SIZE;
2139 
2140  /* Read in more data. */
2141  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2142  (yy_n_chars), (size_t) num_to_read );
2143 
2144  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2145  }
2146 
2147  if ( (yy_n_chars) == 0 )
2148  {
2149  if ( number_to_move == YY_MORE_ADJ )
2150  {
2151  ret_val = EOB_ACT_END_OF_FILE;
2153  }
2154 
2155  else
2156  {
2157  ret_val = EOB_ACT_LAST_MATCH;
2158  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2160  }
2161  }
2162 
2163  else
2164  ret_val = EOB_ACT_CONTINUE_SCAN;
2165 
2166  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2167  /* Extend the array by 50%, plus the number we really need. */
2168  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2169  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) defargsYYrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2170  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2171  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2172  }
2173 
2174  (yy_n_chars) += number_to_move;
2177 
2178  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2179 
2180  return ret_val;
2181 }
#define YY_INPUT(buf, result, max_size)
Definition: defargs.cpp:921
void defargsYYrestart(FILE *input_file)
Definition: defargs.cpp:2351
#define EOB_ACT_END_OF_FILE
Definition: defargs.cpp:180
#define EOB_ACT_LAST_MATCH
Definition: defargs.cpp:181
static int yy_n_chars
Definition: defargs.cpp:293
#define YY_END_OF_BUFFER_CHAR
Definition: defargs.cpp:159
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
#define YY_MORE_ADJ
Definition: defargs.cpp:830
void * defargsYYrealloc(void *, yy_size_t)
Definition: defargs.cpp:2889
#define YY_READ_BUF_SIZE
Definition: defargs.cpp:1045
static char * yy_c_buf_p
Definition: defargs.cpp:297
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
#define YY_BUFFER_EOF_PENDING
Definition: defargs.cpp:266
FILE * defargsYYin
Definition: defargs.cpp:359
size_t yy_size_t
Definition: code.cpp:203
#define EOB_ACT_CONTINUE_SCAN
Definition: defargs.cpp:179
#define yytext_ptr
Definition: defargs.cpp:368
static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 2185 of file defargs.cpp.

2186 {
2187  register yy_state_type yy_current_state;
2188  register char *yy_cp;
2189 
2190  yy_current_state = (yy_start);
2191 
2192  (yy_state_ptr) = (yy_state_buf);
2193  *(yy_state_ptr)++ = yy_current_state;
2194 
2195  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2196  {
2197  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2198  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2199  {
2200  yy_current_state = (int) yy_def[yy_current_state];
2201  if ( yy_current_state >= 263 )
2202  yy_c = yy_meta[(unsigned int) yy_c];
2203  }
2204  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2205  *(yy_state_ptr)++ = yy_current_state;
2206  }
2207 
2208  return yy_current_state;
2209 }
register char * yy_cp
Definition: defargs.cpp:1143
int yy_state_type
Definition: code.cpp:361
static yyconst flex_int16_t yy_base[315]
Definition: defargs.cpp:509
static yyconst flex_int32_t yy_meta[47]
Definition: defargs.cpp:500
#define YY_MORE_ADJ
Definition: defargs.cpp:830
static yyconst flex_int16_t yy_nxt[969]
Definition: defargs.cpp:587
static yy_state_type * yy_state_ptr
Definition: defargs.cpp:810
static yyconst flex_int16_t yy_chk[969]
Definition: defargs.cpp:697
unsigned char YY_CHAR
Definition: code.cpp:357
static yyconst flex_int16_t yy_def[315]
Definition: defargs.cpp:548
static char * yy_c_buf_p
Definition: defargs.cpp:297
static yy_state_type * yy_state_buf
Definition: defargs.cpp:810
static int yy_start
Definition: defargs.cpp:299
#define yytext_ptr
Definition: defargs.cpp:368
static yyconst flex_int32_t yy_ec[256]
Definition: defargs.cpp:468
#define YY_SC_TO_UI(c)
Definition: defargs.cpp:138
static int yy_init_globals ( void  )
static

Definition at line 2802 of file defargs.cpp.

2803 {
2804  /* Initialization is the same as for the non-reentrant scanner.
2805  * This function is called from defargsYYlex_destroy(), so don't allocate here.
2806  */
2807 
2808  (yy_buffer_stack) = 0;
2809  (yy_buffer_stack_top) = 0;
2810  (yy_buffer_stack_max) = 0;
2811  (yy_c_buf_p) = (char *) 0;
2812  (yy_init) = 0;
2813  (yy_start) = 0;
2814 
2815  (yy_state_buf) = 0;
2816  (yy_state_ptr) = 0;
2817  (yy_full_match) = 0;
2818  (yy_lp) = 0;
2819 
2820 /* Defined in main.c */
2821 #ifdef YY_STDINIT
2822  defargsYYin = stdin;
2823  defargsYYout = stdout;
2824 #else
2825  defargsYYin = (FILE *) 0;
2826  defargsYYout = (FILE *) 0;
2827 #endif
2828 
2829  /* For future reference: Set errno on error, since we are called by
2830  * defargsYYlex_init()
2831  */
2832  return 0;
2833 }
static char * yy_full_match
Definition: defargs.cpp:811
static yy_state_type * yy_state_ptr
Definition: defargs.cpp:810
static size_t yy_buffer_stack_max
Definition: defargs.cpp:273
static char * yy_c_buf_p
Definition: defargs.cpp:297
FILE * defargsYYout
Definition: defargs.cpp:359
static size_t yy_buffer_stack_top
Definition: defargs.cpp:272
FILE * defargsYYin
Definition: defargs.cpp:359
static int yy_init
Definition: defargs.cpp:298
static yy_state_type * yy_state_buf
Definition: defargs.cpp:810
static int yy_lp
Definition: defargs.cpp:812
static int yy_start
Definition: defargs.cpp:299
static YY_BUFFER_STATE * yy_buffer_stack
Definition: defargs.cpp:274
static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 2216 of file defargs.cpp.

2217 {
2218  register int yy_is_jam;
2219 
2220  register YY_CHAR yy_c = 1;
2221  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2222  {
2223  yy_current_state = (int) yy_def[yy_current_state];
2224  if ( yy_current_state >= 263 )
2225  yy_c = yy_meta[(unsigned int) yy_c];
2226  }
2227  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2228  yy_is_jam = (yy_current_state == 262);
2229  if ( ! yy_is_jam )
2230  *(yy_state_ptr)++ = yy_current_state;
2231 
2232  return yy_is_jam ? 0 : yy_current_state;
2233 }
static yyconst flex_int16_t yy_base[315]
Definition: defargs.cpp:509
static yyconst flex_int32_t yy_meta[47]
Definition: defargs.cpp:500
static yyconst flex_int16_t yy_nxt[969]
Definition: defargs.cpp:587
static yy_state_type * yy_state_ptr
Definition: defargs.cpp:810
static yyconst flex_int16_t yy_chk[969]
Definition: defargs.cpp:697
unsigned char YY_CHAR
Definition: code.cpp:357
static yyconst flex_int16_t yy_def[315]
Definition: defargs.cpp:548
static int yyread ( char *  buf,
int  max_size 
)
static

Definition at line 923 of file defargs.cpp.

924 {
925  int c=0;
926  while( c < max_size && g_inputString[g_inputPosition] )
927  {
928  *buf = g_inputString[g_inputPosition++] ;
929  c++; buf++;
930  }
931  return c;
932 }
static int g_inputPosition
Definition: defargs.cpp:898
static const char * g_inputString
Definition: defargs.cpp:897
static void yyunput ( int  c,
char *  buf_ptr 
)
static
static void yyunput ( int  c,
register char *  yy_bp 
)
static

Definition at line 2235 of file defargs.cpp.

2236 {
2237  register char *yy_cp;
2238 
2239  yy_cp = (yy_c_buf_p);
2240 
2241  /* undo effects of setting up defargsYYtext */
2242  *yy_cp = (yy_hold_char);
2243 
2244  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2245  { /* need to shift things up to make room */
2246  /* +2 for EOB chars. */
2247  register int number_to_move = (yy_n_chars) + 2;
2248  register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2249  YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2250  register char *source =
2251  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2252 
2253  while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2254  *--dest = *--source;
2255 
2256  yy_cp += (int) (dest - source);
2257  yy_bp += (int) (dest - source);
2258  YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2259  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2260 
2261  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2262  YY_FATAL_ERROR( "flex scanner push-back overflow" );
2263  }
2264 
2265  *--yy_cp = (char) c;
2266 
2267  (yytext_ptr) = yy_bp;
2268  (yy_hold_char) = *yy_cp;
2269  (yy_c_buf_p) = yy_cp;
2270 }
static char yy_hold_char
Definition: defargs.cpp:292
static int yy_n_chars
Definition: defargs.cpp:293
register char * yy_cp
Definition: defargs.cpp:1143
#define YY_CURRENT_BUFFER_LVALUE
Definition: defargs.cpp:289
if(!(yy_init))
Definition: defargs.cpp:1151
register char * yy_bp
Definition: defargs.cpp:1143
static char * yy_c_buf_p
Definition: defargs.cpp:297
#define YY_FATAL_ERROR(msg)
Definition: defargs.cpp:1107
#define yytext_ptr
Definition: defargs.cpp:368

Variable Documentation

int defargsYY_flex_debug = 0

Definition at line 808 of file defargs.cpp.

FILE * defargsYYin = (FILE *) 0

Definition at line 359 of file defargs.cpp.

int defargsYYleng

Definition at line 294 of file defargs.cpp.

int defargsYYlineno = 1

Definition at line 365 of file defargs.cpp.

FILE * defargsYYout = (FILE *) 0

Definition at line 359 of file defargs.cpp.

char * defargsYYtext

Definition at line 832 of file defargs.cpp.

int g_argCurlyCount
static

Definition at line 911 of file defargs.cpp.

ArgumentList* g_argList
static

Definition at line 899 of file defargs.cpp.

int g_argRoundCount
static

Definition at line 909 of file defargs.cpp.

int g_argSharpCount
static

Definition at line 910 of file defargs.cpp.

QCString* g_copyArgValue
static

Definition at line 900 of file defargs.cpp.

QCString g_curArgArray
static

Definition at line 906 of file defargs.cpp.

QCString g_curArgAttrib
static

Definition at line 905 of file defargs.cpp.

QCString g_curArgDefValue
static

Definition at line 902 of file defargs.cpp.

QCString g_curArgDocs
static

Definition at line 904 of file defargs.cpp.

QCString g_curArgName
static

Definition at line 903 of file defargs.cpp.

QCString g_curArgTypeName
static

Definition at line 901 of file defargs.cpp.

QCString g_curTypeConstraint
static

Definition at line 907 of file defargs.cpp.

QCString g_delimiter
static

Definition at line 916 of file defargs.cpp.

QCString g_extraTypeChars
static

Definition at line 908 of file defargs.cpp.

int g_inputPosition
static

Definition at line 898 of file defargs.cpp.

const char* g_inputString
static

Definition at line 897 of file defargs.cpp.

int g_lastDocChar
static

Definition at line 914 of file defargs.cpp.

int g_lastDocContext
static

Definition at line 913 of file defargs.cpp.

int g_lastExtendsContext
static

Definition at line 915 of file defargs.cpp.

int g_readArgContext
static

Definition at line 912 of file defargs.cpp.

yyconst flex_int16_t yy_accept[264]
static

Definition at line 435 of file defargs.cpp.

yyconst flex_int16_t yy_acclist[333]
static

Definition at line 394 of file defargs.cpp.

register int yy_act

Definition at line 1144 of file defargs.cpp.

yyconst flex_int16_t yy_base[315]
static

Definition at line 509 of file defargs.cpp.

register char * yy_bp

Definition at line 1143 of file defargs.cpp.

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 274 of file defargs.cpp.

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 273 of file defargs.cpp.

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 272 of file defargs.cpp.

char* yy_c_buf_p = (char *) 0
static

Definition at line 297 of file defargs.cpp.

yyconst flex_int16_t yy_chk[969]
static

Definition at line 697 of file defargs.cpp.

register char* yy_cp

Definition at line 1143 of file defargs.cpp.

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: code.cpp:361

The main scanner function which does all the work.

Definition at line 1141 of file defargs.cpp.

yyconst flex_int16_t yy_def[315]
static

Definition at line 548 of file defargs.cpp.

int yy_did_buffer_switch_on_eof
static

Definition at line 304 of file defargs.cpp.

yyconst flex_int32_t yy_ec[256]
static

Definition at line 468 of file defargs.cpp.

int yy_full_lp
static

Definition at line 814 of file defargs.cpp.

char* yy_full_match
static

Definition at line 811 of file defargs.cpp.

int* yy_full_state
static

Definition at line 815 of file defargs.cpp.

char yy_hold_char
static

Definition at line 292 of file defargs.cpp.

int yy_init = 0
static

Definition at line 298 of file defargs.cpp.

int yy_looking_for_trail_begin = 0
static

Definition at line 813 of file defargs.cpp.

int yy_lp
static

Definition at line 812 of file defargs.cpp.

yyconst flex_int32_t yy_meta[47]
static
Initial value:
=
{ 0,
1, 2, 3, 1, 1, 1, 1, 1, 4, 5,
6, 1, 1, 1, 7, 7, 7, 7, 8, 1,
1, 1, 9, 9, 9, 9, 1, 10, 1, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 1, 1
}

Definition at line 500 of file defargs.cpp.

int yy_n_chars
static

Definition at line 293 of file defargs.cpp.

yyconst flex_int16_t yy_nxt[969]
static

Definition at line 587 of file defargs.cpp.

int yy_start = 0
static

Definition at line 299 of file defargs.cpp.

yy_state_type* yy_state_buf =0
static

Definition at line 810 of file defargs.cpp.

yy_state_type * yy_state_ptr =0
static

Definition at line 810 of file defargs.cpp.