diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 3977 |
1 files changed, 3977 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp new file mode 100644 index 0000000..0ec0b50 --- /dev/null +++ b/src/config.cpp @@ -0,0 +1,3977 @@ +#define yy_create_buffer configYY_create_buffer +#define yy_delete_buffer configYY_delete_buffer +#define yy_scan_buffer configYY_scan_buffer +#define yy_scan_string configYY_scan_string +#define yy_scan_bytes configYY_scan_bytes +#define yy_flex_debug configYY_flex_debug +#define yy_init_buffer configYY_init_buffer +#define yy_flush_buffer configYY_flush_buffer +#define yy_load_buffer_state configYY_load_buffer_state +#define yy_switch_to_buffer configYY_switch_to_buffer +#define yyin configYYin +#define yyleng configYYleng +#define yylex configYYlex +#define yyout configYYout +#define yyrestart configYYrestart +#define yytext configYYtext + +/* A lexical scanner generated by flex */ + +/* Scanner skeleton version: + * $Header$ + */ + +#define FLEX_SCANNER +#define YY_FLEX_MAJOR_VERSION 2 +#define YY_FLEX_MINOR_VERSION 5 + +#include <stdio.h> + + +/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ +#ifdef c_plusplus +#ifndef __cplusplus +#define __cplusplus +#endif +#endif + + +#ifdef __cplusplus + +#include <stdlib.h> +#include <unistd.h> + +/* Use prototypes in function declarations. */ +#define YY_USE_PROTOS + +/* The "const" storage-class-modifier is valid. */ +#define YY_USE_CONST + +#else /* ! __cplusplus */ + +#if __STDC__ + +#define YY_USE_PROTOS +#define YY_USE_CONST + +#endif /* __STDC__ */ +#endif /* ! __cplusplus */ + +#ifdef __TURBOC__ + #pragma warn -rch + #pragma warn -use +#include <io.h> +#include <stdlib.h> +#define YY_USE_CONST +#define YY_USE_PROTOS +#endif + +#ifdef YY_USE_CONST +#define yyconst const +#else +#define yyconst +#endif + + +#ifdef YY_USE_PROTOS +#define YY_PROTO(proto) proto +#else +#define YY_PROTO(proto) () +#endif + +/* Returned upon end-of-file. */ +#define YY_NULL 0 + +/* Promotes a possibly negative, possibly signed char to an unsigned + * integer for use as an array index. If the signed char is negative, + * we want to instead treat it as an 8-bit unsigned char, hence the + * double cast. + */ +#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) + +/* Enter a start condition. This macro really ought to take a parameter, + * but we do it the disgusting crufty way forced on us by the ()-less + * definition of BEGIN. + */ +#define BEGIN yy_start = 1 + 2 * + +/* Translate the current start state into a value that can be later handed + * to BEGIN to return to the state. The YYSTATE alias is for lex + * compatibility. + */ +#define YY_START ((yy_start - 1) / 2) +#define YYSTATE YY_START + +/* Action number for EOF rule of a given start state. */ +#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) + +/* Special action meaning "start processing a new file". */ +#define YY_NEW_FILE yyrestart( yyin ) + +#define YY_END_OF_BUFFER_CHAR 0 + +/* Size of default input buffer. */ +#define YY_BUF_SIZE 16384 + +typedef struct yy_buffer_state *YY_BUFFER_STATE; + +extern int yyleng; +extern FILE *yyin, *yyout; + +#define EOB_ACT_CONTINUE_SCAN 0 +#define EOB_ACT_END_OF_FILE 1 +#define EOB_ACT_LAST_MATCH 2 + +/* The funky do-while in the following #define is used to turn the definition + * int a single C statement (which needs a semi-colon terminator). This + * avoids problems with code like: + * + * if ( condition_holds ) + * yyless( 5 ); + * else + * do_something_else(); + * + * Prior to using the do-while the compiler would get upset at the + * "else" because it interpreted the "if" statement as being all + * done when it reached the ';' after the yyless() call. + */ + +/* Return all but the first 'n' matched characters back to the input stream. */ + +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + *yy_cp = yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } \ + while ( 0 ) + +#define unput(c) yyunput( c, yytext_ptr ) + +/* The following is because we cannot portably get our hands on size_t + * (without autoconf's help, which isn't available because we want + * flex-generated scanners to compile on their own). + */ +typedef unsigned int yy_size_t; + + +struct yy_buffer_state + { + FILE *yy_input_file; + + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + yy_size_t yy_buf_size; + + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; + + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; + + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; + + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; + + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; + + int yy_buffer_status; +#define YY_BUFFER_NEW 0 +#define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +#define YY_BUFFER_EOF_PENDING 2 + }; + +static YY_BUFFER_STATE yy_current_buffer = 0; + +/* We provide macros for accessing buffer states in case in the + * future we want to put the buffer states in a more general + * "scanner state". + */ +#define YY_CURRENT_BUFFER yy_current_buffer + + +/* yy_hold_char holds the character lost when yytext is formed. */ +static char yy_hold_char; + +static int yy_n_chars; /* number of characters read into yy_ch_buf */ + + +int yyleng; + +/* Points to current character in buffer. */ +static char *yy_c_buf_p = (char *) 0; +static int yy_init = 1; /* whether we need to initialize */ +static int yy_start = 0; /* start state number */ + +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... + */ +static int yy_did_buffer_switch_on_eof; + +void yyrestart YY_PROTO(( FILE *input_file )); + +void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); +void yy_load_buffer_state YY_PROTO(( void )); +YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); +void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); +void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); +void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); +#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) + +YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); +YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); +YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); + +static void *yy_flex_alloc YY_PROTO(( yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void yy_flex_free YY_PROTO(( void * )); + +#define yy_new_buffer yy_create_buffer + +#define yy_set_interactive(is_interactive) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_is_interactive = is_interactive; \ + } + +#define yy_set_bol(at_bol) \ + { \ + if ( ! yy_current_buffer ) \ + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ + yy_current_buffer->yy_at_bol = at_bol; \ + } + +#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) + + +#define yywrap() 1 +#define YY_SKIP_YYWRAP +typedef unsigned char YY_CHAR; +FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; +typedef int yy_state_type; +extern char *yytext; +#define yytext_ptr yytext + +static yy_state_type yy_get_previous_state YY_PROTO(( void )); +static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); +static int yy_get_next_buffer YY_PROTO(( void )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); + +/* Done after the current pattern has been matched and before the + * corresponding action - sets up yytext. + */ +#define YY_DO_BEFORE_ACTION \ + yytext_ptr = yy_bp; \ + yyleng = (int) (yy_cp - yy_bp); \ + yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yy_c_buf_p = yy_cp; + +#define YY_NUM_RULES 92 +#define YY_END_OF_BUFFER 93 +static yyconst short int yy_accept[929] = + { 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 93, 90, 91, 90, + 90, 2, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 87, 90, 78, 75, 79, 2, 90, + 78, 78, 85, 86, 77, 76, 86, 86, 84, 82, + 82, 84, 84, 84, 90, 0, 89, 0, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 0, 88, 78, 80, 78, 85, 86, + 77, 86, 83, 81, 0, 0, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 78, 86, 1, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 1, 1, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 74, 0, 29, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 0, + 40, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 0, 13, 74, 74, 74, + + 74, 74, 0, 14, 74, 74, 0, 30, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 0, 12, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 74, 74, 74, 0, 23, 0, 35, + 74, 0, 41, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 0, 17, 74, 74, 74, 0, 42, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 74, 74, 0, 28, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 0, 7, + 74, 74, 0, 20, 74, 0, 37, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 0, 15, + 74, 74, 74, 74, 74, 74, 0, 16, 74, 74, + 74, 74, 74, 0, 45, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 0, 10, 0, + 9, 0, 6, 74, 74, 74, 74, 0, 73, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 0, 43, 74, + + 74, 74, 74, 74, 74, 74, 74, 74, 0, 27, + 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, + 0, 50, 74, 74, 74, 74, 74, 74, 0, 26, + 0, 72, 0, 19, 74, 74, 0, 11, 0, 8, + 74, 74, 74, 74, 74, 0, 3, 74, 0, 62, + 0, 44, 74, 74, 74, 74, 74, 74, 74, 74, + 74, 74, 0, 61, 0, 47, 74, 74, 74, 74, + 74, 74, 0, 36, 0, 31, 74, 0, 49, 74, + 74, 74, 74, 74, 74, 74, 74, 0, 63, 74, + 74, 0, 22, 74, 74, 74, 74, 74, 74, 74, + + 74, 74, 74, 74, 74, 0, 60, 74, 74, 74, + 74, 74, 74, 0, 38, 74, 74, 0, 48, 74, + 74, 74, 74, 74, 0, 34, 74, 74, 74, 74, + 0, 71, 0, 4, 74, 0, 67, 74, 74, 74, + 74, 74, 74, 74, 74, 74, 74, 74, 0, 46, + 0, 59, 74, 74, 74, 74, 74, 0, 24, 74, + 0, 52, 74, 0, 21, 0, 53, 0, 39, 74, + 74, 74, 74, 0, 64, 74, 74, 0, 33, 0, + 32, 74, 74, 0, 18, 74, 74, 74, 74, 0, + 5, 0, 65, 74, 74, 0, 54, 74, 74, 74, + + 0, 69, 74, 74, 74, 0, 68, 0, 70, 74, + 74, 74, 0, 58, 0, 57, 0, 56, 0, 66, + 0, 55, 0, 25, 74, 0, 51, 0 + } ; + +static yyconst int yy_ec[256] = + { 0, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, + 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 1, 5, 6, 7, 1, 1, 1, 8, + 9, 1, 1, 1, 1, 1, 1, 10, 11, 11, + 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, + 12, 1, 1, 1, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 1, 39, 1, 1, 40, 1, 41, 41, 41, 42, + + 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, + 41, 41, 41, 41, 41, 41, 41, 41, 41, 43, + 41, 41, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1 + } ; + +static yyconst int yy_meta[45] = + { 0, + 1, 2, 2, 2, 2, 3, 2, 1, 4, 5, + 5, 1, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 6, 1, 5, + 6, 6, 6, 1 + } ; + +static yyconst short int yy_base[940] = + { 0, + 0, 1, 45, 0, 87, 88, 131, 174, 218, 262, + 305, 348, 100, 101, 392, 436, 1227, 1228, 1228, 3, + 1183, 1228, 0, 1201, 0, 0, 1, 0, 2, 1207, + 10, 7, 1210, 1209, 1208, 1187, 79, 1186, 1201, 83, + 1204, 1199, 1202, 1228, 6, 0, 1228, 1228, 0, 1206, + 12, 1170, 0, 0, 1210, 1228, 95, 1168, 1228, 1228, + 1228, 1202, 109, 1166, 1199, 114, 1228, 1197, 0, 95, + 1180, 1184, 1173, 1182, 1189, 13, 1170, 1185, 1186, 128, + 1174, 1173, 1170, 1179, 1169, 1180, 127, 1158, 1159, 3, + 1158, 1161, 1170, 1157, 131, 1165, 134, 1172, 1151, 1153, + + 6, 1152, 1151, 118, 1228, 0, 1228, 1170, 0, 0, + 1177, 1168, 1228, 1228, 1168, 1134, 1158, 1154, 1160, 1132, + 1154, 1153, 1129, 1137, 1136, 1138, 1152, 1124, 1149, 1137, + 1137, 1147, 123, 1142, 1134, 1140, 1139, 1131, 1135, 1129, + 1135, 1130, 1117, 1132, 1135, 1130, 1116, 1105, 1116, 1126, + 1102, 1117, 1124, 1117, 1121, 1104, 1119, 1105, 1104, 1112, + 1092, 1113, 1116, 1103, 1086, 1085, 1228, 1090, 1112, 1087, + 1110, 1104, 1081, 8, 1089, 1079, 1105, 1103, 133, 1092, + 1087, 1081, 1087, 1099, 1095, 1070, 1069, 1078, 1067, 1066, + 1088, 1071, 1073, 1076, 1069, 1070, 1083, 1062, 1070, 137, + + 1063, 1065, 1074, 1053, 1075, 1074, 1058, 1059, 1075, 1072, + 1071, 1057, 1053, 1062, 1069, 1060, 0, 0, 1048, 1065, + 1047, 1063, 1036, 1044, 1061, 1043, 1032, 1050, 1055, 1045, + 1054, 1037, 1049, 1041, 1048, 1047, 110, 1035, 1033, 1032, + 1046, 1025, 169, 1017, 1040, 1034, 1037, 155, 1027, 1025, + 1011, 1010, 1013, 1015, 1015, 1006, 1008, 1016, 1025, 1027, + 0, 1010, 1008, 1019, 1021, 997, 1015, 1011, 1002, 1007, + 1015, 1014, 990, 998, 1003, 1010, 1001, 1001, 1008, 997, + 990, 1004, 989, 995, 978, 1000, 999, 975, 982, 985, + 997, 998, 997, 977, 982, 983, 979, 988, 971, 971, + + 974, 984, 968, 959, 159, 1228, 980, 984, 981, 74, + 978, 962, 961, 952, 959, 962, 976, 967, 955, 171, + 1228, 965, 945, 112, 944, 965, 944, 964, 959, 960, + 948, 945, 960, 947, 957, 947, 955, 172, 950, 930, + 929, 928, 939, 186, 938, 925, 191, 937, 923, 949, + 921, 928, 927, 941, 941, 935, 928, 941, 921, 915, + 938, 910, 909, 927, 926, 922, 905, 927, 910, 906, + 924, 912, 170, 902, 921, 905, 910, 895, 900, 919, + 906, 910, 916, 899, 911, 896, 901, 894, 898, 902, + 905, 908, 895, 888, 189, 190, 1228, 905, 904, 892, + + 894, 901, 195, 1228, 883, 884, 197, 1228, 883, 884, + 177, 894, 880, 875, 886, 865, 877, 884, 870, 885, + 872, 875, 866, 869, 880, 869, 870, 853, 879, 878, + 858, 861, 862, 854, 865, 872, 856, 853, 862, 864, + 854, 862, 848, 858, 850, 845, 847, 202, 204, 833, + 230, 859, 856, 838, 837, 854, 850, 231, 1228, 847, + 841, 851, 837, 830, 844, 847, 846, 834, 833, 826, + 832, 841, 836, 812, 214, 836, 824, 832, 831, 814, + 829, 215, 832, 817, 825, 810, 825, 807, 823, 810, + 824, 805, 803, 804, 807, 815, 807, 238, 814, 152, + + 239, 808, 807, 812, 799, 800, 242, 1228, 243, 1228, + 804, 247, 1228, 799, 809, 808, 800, 802, 778, 787, + 788, 783, 798, 793, 784, 779, 778, 772, 784, 786, + 793, 773, 774, 777, 770, 788, 787, 786, 758, 757, + 766, 765, 762, 762, 273, 775, 759, 775, 762, 771, + 760, 754, 768, 751, 757, 761, 274, 764, 761, 275, + 758, 276, 1228, 277, 753, 752, 278, 1228, 759, 749, + 750, 738, 732, 754, 739, 745, 747, 279, 737, 740, + 752, 744, 746, 745, 280, 731, 216, 728, 719, 281, + 724, 738, 736, 729, 741, 728, 720, 725, 731, 269, + + 724, 293, 301, 302, 728, 313, 1228, 717, 726, 714, + 314, 714, 728, 715, 711, 708, 708, 711, 315, 1228, + 722, 703, 316, 1228, 709, 317, 1228, 717, 719, 708, + 708, 686, 642, 15, 80, 318, 62, 100, 319, 1228, + 88, 155, 144, 159, 172, 174, 320, 1228, 184, 321, + 195, 198, 189, 322, 1228, 224, 235, 222, 225, 235, + 237, 279, 333, 279, 274, 282, 283, 334, 1228, 335, + 1228, 336, 1228, 322, 314, 354, 355, 356, 1228, 357, + 310, 328, 358, 359, 322, 336, 331, 351, 342, 370, + 356, 372, 373, 360, 360, 365, 363, 378, 1228, 360, + + 366, 370, 363, 358, 351, 400, 401, 390, 404, 1228, + 377, 378, 379, 378, 380, 412, 413, 400, 444, 382, + 417, 1228, 399, 408, 397, 398, 409, 396, 445, 1228, + 447, 1228, 448, 1228, 449, 398, 450, 1228, 451, 1228, + 403, 453, 405, 414, 403, 456, 1228, 405, 464, 1228, + 465, 1228, 437, 439, 438, 454, 446, 457, 457, 461, + 477, 460, 480, 1228, 481, 1228, 467, 459, 460, 470, + 471, 488, 489, 1228, 492, 1228, 464, 494, 1228, 480, + 496, 475, 471, 489, 491, 475, 507, 508, 1228, 490, + 486, 511, 1228, 484, 498, 514, 515, 487, 519, 502, + + 494, 509, 488, 498, 499, 530, 1228, 507, 503, 504, + 505, 521, 536, 537, 1228, 538, 517, 541, 1228, 527, + 514, 529, 530, 549, 550, 1228, 537, 553, 519, 555, + 556, 1228, 557, 1228, 558, 561, 1228, 562, 535, 554, + 541, 560, 574, 561, 547, 577, 578, 564, 580, 1228, + 581, 1228, 556, 583, 570, 558, 561, 592, 1228, 578, + 595, 1228, 596, 597, 1228, 598, 1228, 599, 1228, 600, + 567, 588, 604, 611, 1228, 597, 594, 615, 1228, 616, + 1228, 601, 618, 619, 1228, 591, 593, 594, 624, 627, + 1228, 630, 1228, 631, 619, 633, 1228, 601, 612, 638, + + 639, 1228, 642, 644, 645, 646, 1228, 647, 1228, 650, + 651, 636, 658, 1228, 659, 1228, 662, 1228, 663, 1228, + 664, 1228, 665, 1228, 666, 667, 1228, 1228, 679, 685, + 691, 697, 703, 709, 711, 717, 666, 723, 726 + } ; + +static yyconst short int yy_def[940] = + { 0, + 929, 929, 928, 3, 929, 929, 930, 930, 931, 931, + 932, 932, 933, 933, 934, 934, 928, 928, 928, 928, + 928, 928, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 928, 928, 936, 928, 928, 936, 928, + 936, 936, 937, 938, 928, 928, 938, 938, 928, 928, + 928, 928, 928, 928, 939, 928, 928, 928, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 928, 928, 936, 928, 936, 937, 938, + 928, 938, 928, 928, 939, 928, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 936, 938, 928, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 936, 938, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 935, 928, 928, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 928, + 928, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 928, 928, 935, 935, 935, + + 935, 935, 928, 928, 935, 935, 928, 928, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 928, 928, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 935, 935, 935, 928, 928, 928, 928, + 935, 928, 928, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 928, 928, 935, 935, 935, 928, 928, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 935, 935, 928, 928, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 928, 928, + 935, 935, 928, 928, 935, 928, 928, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 928, 928, + 935, 935, 935, 935, 935, 935, 928, 928, 935, 935, + 935, 935, 935, 928, 928, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 928, 928, 928, + 928, 928, 928, 935, 935, 935, 935, 928, 928, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 928, 928, 935, + + 935, 935, 935, 935, 935, 935, 935, 935, 928, 928, + 935, 935, 935, 935, 935, 935, 935, 935, 935, 935, + 928, 928, 935, 935, 935, 935, 935, 935, 928, 928, + 928, 928, 928, 928, 935, 935, 928, 928, 928, 928, + 935, 935, 935, 935, 935, 928, 928, 935, 928, 928, + 928, 928, 935, 935, 935, 935, 935, 935, 935, 935, + 935, 935, 928, 928, 928, 928, 935, 935, 935, 935, + 935, 935, 928, 928, 928, 928, 935, 928, 928, 935, + 935, 935, 935, 935, 935, 935, 935, 928, 928, 935, + 935, 928, 928, 935, 935, 935, 935, 935, 935, 935, + + 935, 935, 935, 935, 935, 928, 928, 935, 935, 935, + 935, 935, 935, 928, 928, 935, 935, 928, 928, 935, + 935, 935, 935, 935, 928, 928, 935, 935, 935, 935, + 928, 928, 928, 928, 935, 928, 928, 935, 935, 935, + 935, 935, 935, 935, 935, 935, 935, 935, 928, 928, + 928, 928, 935, 935, 935, 935, 935, 928, 928, 935, + 928, 928, 935, 928, 928, 928, 928, 928, 928, 935, + 935, 935, 935, 928, 928, 935, 935, 928, 928, 928, + 928, 935, 935, 928, 928, 935, 935, 935, 935, 928, + 928, 928, 928, 935, 935, 928, 928, 935, 935, 935, + + 928, 928, 935, 935, 935, 928, 928, 928, 928, 935, + 935, 935, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 935, 928, 928, 0, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928 + } ; + +static yyconst short int yy_nxt[1273] = + { 0, + 928, 320, 19, 19, 66, 67, 66, 104, 105, 104, + 928, 321, 73, 66, 67, 66, 928, 147, 74, 161, + 71, 77, 81, 75, 162, 79, 76, 78, 148, 72, + 84, 86, 87, 225, 82, 80, 125, 126, 20, 20, + 226, 85, 696, 21, 21, 18, 18, 19, 18, 18, + 22, 18, 18, 18, 23, 23, 18, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 23, 34, 35, + 23, 36, 37, 38, 39, 40, 41, 23, 42, 43, + 23, 23, 23, 20, 23, 23, 23, 23, 21, 44, + 44, 92, 697, 368, 93, 94, 66, 67, 66, 98, + + 369, 700, 60, 60, 61, 61, 62, 62, 95, 99, + 66, 67, 66, 113, 100, 66, 67, 66, 117, 104, + 105, 104, 118, 701, 289, 45, 45, 702, 381, 119, + 21, 21, 18, 47, 18, 48, 49, 50, 63, 63, + 130, 140, 131, 64, 64, 231, 141, 153, 156, 290, + 142, 382, 184, 253, 143, 132, 305, 154, 144, 133, + 305, 157, 185, 254, 565, 232, 306, 703, 704, 51, + 306, 705, 320, 396, 52, 18, 47, 18, 48, 49, + 50, 296, 321, 397, 566, 435, 297, 403, 298, 469, + 458, 396, 407, 436, 307, 299, 403, 404, 407, 300, + + 459, 397, 408, 507, 470, 509, 404, 706, 408, 707, + 708, 711, 51, 508, 712, 510, 713, 52, 18, 18, + 47, 18, 18, 22, 18, 18, 18, 18, 18, 18, + 409, 512, 458, 535, 545, 650, 714, 536, 537, 562, + 567, 513, 459, 507, 509, 538, 546, 651, 512, 563, + 568, 715, 716, 508, 510, 717, 20, 18, 513, 718, + 719, 21, 18, 18, 47, 18, 18, 22, 18, 18, + 18, 18, 18, 18, 606, 619, 623, 562, 626, 567, + 639, 647, 654, 665, 607, 620, 624, 563, 627, 568, + 640, 648, 655, 666, 668, 720, 723, 724, 725, 726, + + 20, 18, 670, 672, 669, 21, 55, 56, 18, 48, + 22, 50, 671, 673, 606, 678, 619, 623, 626, 698, + 639, 647, 709, 654, 607, 679, 620, 624, 627, 699, + 640, 648, 710, 655, 721, 668, 670, 672, 727, 728, + 735, 736, 741, 57, 722, 669, 671, 673, 58, 55, + 56, 18, 48, 22, 50, 729, 731, 678, 733, 737, + 739, 742, 743, 744, 745, 730, 732, 679, 734, 738, + 740, 746, 748, 749, 751, 753, 754, 755, 756, 698, + 757, 747, 758, 750, 752, 759, 57, 760, 761, 699, + 762, 58, 18, 18, 19, 18, 18, 18, 18, 18, + + 18, 763, 765, 18, 767, 709, 768, 769, 770, 771, + 772, 764, 766, 773, 775, 710, 777, 781, 721, 782, + 783, 784, 785, 774, 776, 786, 787, 790, 722, 791, + 20, 794, 795, 796, 797, 21, 18, 18, 19, 18, + 18, 18, 18, 18, 18, 778, 729, 18, 731, 733, + 788, 737, 739, 798, 792, 779, 730, 746, 732, 734, + 789, 738, 740, 780, 793, 749, 751, 747, 799, 800, + 801, 802, 803, 804, 20, 750, 752, 805, 806, 21, + 808, 763, 765, 809, 810, 811, 812, 813, 807, 814, + 773, 764, 766, 775, 816, 778, 817, 818, 820, 815, + + 774, 821, 822, 776, 823, 779, 824, 819, 825, 788, + 827, 828, 792, 829, 830, 831, 833, 835, 826, 789, + 836, 838, 793, 839, 840, 832, 834, 841, 842, 843, + 837, 806, 844, 845, 846, 847, 848, 849, 814, 851, + 853, 807, 818, 854, 855, 856, 857, 850, 815, 852, + 858, 825, 819, 860, 861, 863, 864, 831, 833, 866, + 859, 826, 836, 868, 862, 870, 865, 832, 834, 867, + 871, 872, 837, 869, 873, 874, 876, 877, 878, 880, + 882, 849, 851, 883, 884, 875, 886, 887, 879, 881, + 888, 850, 852, 858, 885, 889, 861, 890, 864, 866, + + 868, 892, 894, 859, 895, 896, 862, 891, 865, 867, + 869, 893, 874, 898, 899, 897, 878, 880, 900, 901, + 884, 903, 875, 904, 905, 906, 879, 881, 890, 902, + 885, 892, 908, 910, 896, 907, 911, 912, 891, 913, + 901, 893, 909, 915, 897, 917, 919, 906, 908, 914, + 902, 921, 923, 916, 925, 918, 920, 907, 909, 913, + 915, 922, 924, 917, 919, 921, 923, 926, 926, 914, + 916, 109, 695, 918, 920, 922, 924, 927, 927, 18, + 18, 18, 18, 18, 18, 46, 46, 46, 46, 46, + 46, 53, 53, 53, 53, 53, 53, 54, 54, 54, + + 54, 54, 54, 59, 59, 59, 59, 59, 59, 65, + 65, 65, 65, 65, 65, 69, 69, 106, 694, 106, + 106, 106, 106, 110, 693, 692, 110, 110, 110, 115, + 115, 115, 691, 690, 689, 688, 687, 686, 685, 684, + 683, 682, 681, 680, 677, 676, 675, 674, 667, 664, + 663, 662, 661, 660, 659, 658, 657, 656, 653, 652, + 649, 646, 645, 644, 643, 642, 641, 638, 637, 636, + 635, 634, 633, 632, 631, 630, 629, 628, 625, 622, + 621, 618, 617, 616, 615, 614, 613, 612, 611, 610, + 609, 608, 605, 604, 603, 602, 601, 600, 599, 598, + + 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, + 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, + 577, 576, 575, 574, 573, 572, 571, 570, 569, 564, + 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, + 551, 550, 549, 548, 547, 544, 543, 542, 541, 540, + 539, 534, 533, 532, 531, 530, 529, 528, 527, 526, + 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, + 515, 514, 511, 506, 505, 504, 503, 502, 501, 500, + 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, + 489, 488, 487, 486, 485, 484, 483, 482, 481, 480, + + 479, 478, 477, 476, 475, 474, 473, 472, 471, 468, + 467, 466, 465, 464, 463, 462, 461, 460, 457, 456, + 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, + 445, 444, 443, 442, 441, 440, 439, 438, 437, 434, + 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, + 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, + 413, 412, 411, 410, 406, 405, 402, 401, 400, 399, + 398, 395, 394, 393, 392, 391, 390, 389, 388, 387, + 386, 385, 384, 383, 380, 379, 378, 377, 376, 375, + 374, 373, 372, 371, 370, 367, 366, 365, 364, 363, + + 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, + 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, + 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, + 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, + 322, 319, 318, 317, 316, 315, 314, 313, 312, 311, + 310, 309, 308, 304, 303, 302, 301, 295, 294, 293, + 292, 291, 288, 287, 286, 285, 284, 283, 282, 281, + 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, + 270, 269, 268, 267, 266, 265, 264, 263, 262, 261, + 260, 259, 258, 257, 256, 255, 252, 251, 250, 249, + + 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, + 238, 237, 236, 235, 234, 233, 230, 229, 228, 227, + 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, + 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, + 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, + 194, 193, 192, 191, 190, 189, 188, 187, 186, 183, + 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, + 172, 171, 170, 169, 168, 167, 114, 166, 111, 165, + 164, 163, 160, 159, 158, 155, 152, 151, 150, 149, + 146, 145, 139, 138, 137, 136, 135, 134, 129, 128, + + 127, 124, 123, 122, 121, 120, 116, 114, 68, 107, + 112, 111, 108, 107, 103, 102, 101, 97, 96, 91, + 90, 89, 88, 83, 70, 68, 928, 17, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928 + } ; + +static yyconst short int yy_chk[1273] = + { 0, + 0, 261, 1, 2, 20, 20, 20, 45, 45, 45, + 0, 261, 26, 51, 51, 51, 0, 90, 26, 101, + 25, 27, 29, 26, 101, 28, 26, 27, 90, 25, + 31, 32, 32, 174, 29, 28, 76, 76, 1, 2, + 174, 31, 634, 1, 2, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, + 6, 37, 635, 310, 37, 37, 57, 57, 57, 40, + + 310, 637, 13, 14, 13, 14, 13, 14, 37, 40, + 63, 63, 63, 63, 40, 66, 66, 66, 70, 104, + 104, 104, 70, 638, 237, 5, 6, 641, 324, 70, + 5, 6, 7, 7, 7, 7, 7, 7, 13, 14, + 80, 87, 80, 13, 14, 179, 87, 95, 97, 237, + 87, 324, 133, 200, 87, 80, 248, 95, 87, 80, + 305, 97, 133, 200, 500, 179, 248, 642, 643, 7, + 305, 644, 320, 338, 7, 8, 8, 8, 8, 8, + 8, 243, 320, 338, 500, 373, 243, 344, 243, 411, + 395, 396, 347, 373, 248, 243, 403, 344, 407, 243, + + 395, 396, 347, 448, 411, 449, 403, 645, 407, 646, + 649, 651, 8, 448, 652, 449, 653, 8, 9, 9, + 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, + 347, 451, 458, 475, 482, 587, 656, 475, 475, 498, + 501, 451, 458, 507, 509, 475, 482, 587, 512, 498, + 501, 657, 658, 507, 509, 659, 9, 9, 512, 660, + 661, 9, 10, 10, 10, 10, 10, 10, 10, 10, + 10, 10, 10, 10, 545, 557, 560, 562, 564, 567, + 578, 585, 590, 600, 545, 557, 560, 562, 564, 567, + 578, 585, 590, 600, 602, 662, 664, 665, 666, 667, + + 10, 10, 603, 604, 602, 10, 11, 11, 11, 11, + 11, 11, 603, 604, 606, 611, 619, 623, 626, 636, + 639, 647, 650, 654, 606, 611, 619, 623, 626, 636, + 639, 647, 650, 654, 663, 668, 670, 672, 674, 675, + 681, 682, 685, 11, 663, 668, 670, 672, 11, 12, + 12, 12, 12, 12, 12, 676, 677, 678, 680, 683, + 684, 686, 687, 688, 689, 676, 677, 678, 680, 683, + 684, 690, 691, 692, 693, 694, 695, 696, 697, 698, + 700, 690, 701, 692, 693, 702, 12, 703, 704, 698, + 705, 12, 15, 15, 15, 15, 15, 15, 15, 15, + + 15, 706, 707, 15, 708, 709, 711, 712, 713, 714, + 715, 706, 707, 716, 717, 709, 718, 720, 721, 723, + 724, 725, 726, 716, 717, 727, 728, 736, 721, 741, + 15, 743, 744, 745, 748, 15, 16, 16, 16, 16, + 16, 16, 16, 16, 16, 719, 729, 16, 731, 733, + 735, 737, 739, 753, 742, 719, 729, 746, 731, 733, + 735, 737, 739, 719, 742, 749, 751, 746, 754, 755, + 756, 757, 758, 759, 16, 749, 751, 760, 761, 16, + 762, 763, 765, 767, 768, 769, 770, 771, 761, 772, + 773, 763, 765, 775, 777, 778, 780, 781, 782, 772, + + 773, 783, 784, 775, 785, 778, 786, 781, 787, 788, + 790, 791, 792, 794, 795, 796, 797, 798, 787, 788, + 799, 800, 792, 801, 802, 796, 797, 803, 804, 805, + 799, 806, 808, 809, 810, 811, 812, 813, 814, 816, + 817, 806, 818, 820, 821, 822, 823, 813, 814, 816, + 824, 825, 818, 827, 828, 829, 830, 831, 833, 835, + 824, 825, 836, 838, 828, 839, 830, 831, 833, 835, + 840, 841, 836, 838, 842, 843, 844, 845, 846, 847, + 848, 849, 851, 853, 854, 843, 855, 856, 846, 847, + 857, 849, 851, 858, 854, 860, 861, 863, 864, 866, + + 868, 870, 871, 858, 872, 873, 861, 863, 864, 866, + 868, 870, 874, 876, 877, 873, 878, 880, 882, 883, + 884, 886, 874, 887, 888, 889, 878, 880, 890, 883, + 884, 892, 894, 895, 896, 889, 898, 899, 890, 900, + 901, 892, 894, 903, 896, 904, 905, 906, 908, 900, + 901, 910, 911, 903, 912, 904, 905, 906, 908, 913, + 915, 910, 911, 917, 919, 921, 923, 925, 926, 913, + 915, 937, 633, 917, 919, 921, 923, 925, 926, 929, + 929, 929, 929, 929, 929, 930, 930, 930, 930, 930, + 930, 931, 931, 931, 931, 931, 931, 932, 932, 932, + + 932, 932, 932, 933, 933, 933, 933, 933, 933, 934, + 934, 934, 934, 934, 934, 935, 935, 936, 632, 936, + 936, 936, 936, 938, 631, 630, 938, 938, 938, 939, + 939, 939, 629, 628, 625, 622, 621, 618, 617, 616, + 615, 614, 613, 612, 610, 609, 608, 605, 601, 599, + 598, 597, 596, 595, 594, 593, 592, 591, 589, 588, + 586, 584, 583, 582, 581, 580, 579, 577, 576, 575, + 574, 573, 572, 571, 570, 569, 566, 565, 561, 559, + 558, 556, 555, 554, 553, 552, 551, 550, 549, 548, + 547, 546, 544, 543, 542, 541, 540, 539, 538, 537, + + 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, + 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, + 516, 515, 514, 511, 506, 505, 504, 503, 502, 499, + 497, 496, 495, 494, 493, 492, 491, 490, 489, 488, + 487, 486, 485, 484, 483, 481, 480, 479, 478, 477, + 476, 474, 473, 472, 471, 470, 469, 468, 467, 466, + 465, 464, 463, 462, 461, 460, 457, 456, 455, 454, + 453, 452, 450, 447, 446, 445, 444, 443, 442, 441, + 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, + 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, + + 420, 419, 418, 417, 416, 415, 414, 413, 412, 410, + 409, 406, 405, 402, 401, 400, 399, 398, 394, 393, + 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, + 382, 381, 380, 379, 378, 377, 376, 375, 374, 372, + 371, 370, 369, 368, 367, 366, 365, 364, 363, 362, + 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, + 351, 350, 349, 348, 346, 345, 343, 342, 341, 340, + 339, 337, 336, 335, 334, 333, 332, 331, 330, 329, + 328, 327, 326, 325, 323, 322, 319, 318, 317, 316, + 315, 314, 313, 312, 311, 309, 308, 307, 304, 303, + + 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, + 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, + 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, + 272, 271, 270, 269, 268, 267, 266, 265, 264, 263, + 262, 260, 259, 258, 257, 256, 255, 254, 253, 252, + 251, 250, 249, 247, 246, 245, 244, 242, 241, 240, + 239, 238, 236, 235, 234, 233, 232, 231, 230, 229, + 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, + 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, + 206, 205, 204, 203, 202, 201, 199, 198, 197, 196, + + 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, + 185, 184, 183, 182, 181, 180, 178, 177, 176, 175, + 173, 172, 171, 170, 169, 168, 166, 165, 164, 163, + 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, + 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, + 142, 141, 140, 139, 138, 137, 136, 135, 134, 132, + 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, + 121, 120, 119, 118, 117, 116, 115, 112, 111, 108, + 103, 102, 100, 99, 98, 96, 94, 93, 92, 91, + 89, 88, 86, 85, 84, 83, 82, 81, 79, 78, + + 77, 75, 74, 73, 72, 71, 68, 65, 64, 62, + 58, 55, 52, 50, 43, 42, 41, 39, 38, 36, + 35, 34, 33, 30, 24, 21, 17, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928 + } ; + +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + +/* The intent behind this definition is that it'll catch + * any uses of REJECT which flex missed. + */ +#define REJECT reject_used_but_not_detected +#define yymore() yymore_used_but_not_detected +#define YY_MORE_ADJ 0 +#define YY_RESTORE_YY_MORE_OFFSET +char *yytext; +#line 1 "config.l" +#define INITIAL 0 +/****************************************************************************** + * + * $Id$ + * + * Copyright (C) 1997-1999 by Dimitri van Heesch. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software + * for any purpose. It is provided "as is" without express or implied warranty. + * See the GNU General Public License for more details. + * + * All output generated with Doxygen is not covered by this license. + * + */ +#line 18 "config.l" + +/* + * includes + */ +#include <stdio.h> +#include <iostream.h> +#include <assert.h> +#include <ctype.h> + +#include <qfileinfo.h> +#include <qdir.h> +#include <qtextstream.h> + +#include "config.h" +#include "version.h" + +#ifdef DOXYWIZARD +#include <stdarg.h> +void err(const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + vfprintf(stderr, fmt, args); + va_end(args); +} +void warn(const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + vfprintf(stderr, fmt, args); + va_end(args); +} +#else +#include "doxygen.h" +#include "message.h" +#include "pre.h" +#include "version.h" +#include "language.h" +#endif + +#define YY_NEVER_INTERACTIVE 1 + +/* ----------------------------------------------------------------- + * + * exported variables + */ + + +QCString Config::projectName; +QCString Config::projectNumber; +QCString Config::outputDir; +QCString Config::htmlOutputDir; +QCString Config::latexOutputDir; +QCString Config::manOutputDir; +QCString Config::outputLanguage; +QCString Config::headerFile; +QCString Config::latexHeaderFile; +QCString Config::footerFile; +QCString Config::cgiName; +QCString Config::cgiURL; +QCString Config::docURL; +QCString Config::binAbsPath; +QCString Config::docAbsPath; +QCString Config::perlPath; +QCString Config::genTagFile; +QCString Config::inputFilter; +QCString Config::paperType; +QCString Config::manExtension; +QCString Config::htmlStyleSheet; +QStrList Config::includePath; +QStrList Config::examplePath; +QStrList Config::imagePath; +QStrList Config::inputSources; +QStrList Config::excludeSources; +QStrList Config::filePatternList; +QStrList Config::excludePatternList; +QStrList Config::examplePatternList; +QStrList Config::imagePatternList; +QStrList Config::tagFileList; +QStrList Config::extDocPathList; +QStrList Config::predefined; +QStrList Config::extraPackageList; +QStrList Config::stripFromPath; +bool Config::quietFlag = FALSE; +bool Config::recursiveFlag = FALSE; +bool Config::allExtFlag = FALSE; +bool Config::searchEngineFlag = FALSE; +bool Config::extractAllFlag = FALSE; +bool Config::extractPrivateFlag = FALSE; +bool Config::noIndexFlag = FALSE; +bool Config::hideMemberFlag = FALSE; +bool Config::hideClassFlag = FALSE; +bool Config::macroExpansionFlag = FALSE; +bool Config::onlyPredefinedFlag = FALSE; +bool Config::fullPathNameFlag = FALSE; +bool Config::compactLatexFlag = FALSE; +bool Config::internalDocsFlag = FALSE; +bool Config::caseSensitiveNames = FALSE; +bool Config::sourceBrowseFlag = FALSE; +bool Config::htmlHelpFlag = FALSE; +bool Config::alphaIndexFlag = FALSE; +bool Config::pdfHyperFlag = FALSE; +bool Config::alwaysDetailsFlag = FALSE; +bool Config::autoBriefFlag = TRUE; +bool Config::warningFlag = TRUE; +bool Config::generateHtml = TRUE; +bool Config::generateLatex = TRUE; +bool Config::generateMan = TRUE; +bool Config::preprocessingFlag = TRUE; +bool Config::briefMemDescFlag = TRUE; +bool Config::searchIncludeFlag = TRUE; +bool Config::classDiagramFlag = TRUE; +bool Config::repeatBriefFlag = TRUE; +bool Config::verbatimHeaderFlag = TRUE; +bool Config::htmlAlignMemberFlag = TRUE; +bool Config::inheritDocsFlag = TRUE; +bool Config::inlineInfoFlag = TRUE; +int Config::tabSize = 8; +int Config::colsInAlphaIndex = 5; + +/* ----------------------------------------------------------------- + * + * static variables + */ + +static const char * inputString; +static int inputPosition; +static int yyLineNr; +static QCString tmpString; +static QCString * s=0; +static bool * b=0; +static QStrList * l=0; +static int lastState; +static int lastEnvState; +static QCString elemStr; +static QCString tabSizeString; +static QCString colsInAlphaIndexString; + +/* ----------------------------------------------------------------- + */ +#undef YY_INPUT +#define YY_INPUT(buf,result,max_size) result=yyread(buf,max_size); + +static int yyread(char *buf,int max_size) +{ + int c=0; + while( c < max_size && inputString[inputPosition] ) + { + *buf = inputString[inputPosition++] ; + c++; buf++; + } + return c; +} + +#define Start 1 + +#define SkipComment 2 + +#define GetString 3 + +#define GetBool 4 + +#define GetStrList 5 + +#define GetQuotedString 6 + +#define GetEnvVar 7 + + +/* Macros after this point can all be overridden by user definitions in + * section 1. + */ + +#ifndef YY_SKIP_YYWRAP +#ifdef __cplusplus +extern "C" int yywrap YY_PROTO(( void )); +#else +extern int yywrap YY_PROTO(( void )); +#endif +#endif + +#ifndef YY_NO_UNPUT +static void yyunput YY_PROTO(( int c, char *buf_ptr )); +#endif + +#ifndef yytext_ptr +static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); +#endif + +#ifdef YY_NEED_STRLEN +static int yy_flex_strlen YY_PROTO(( yyconst char * )); +#endif + +#ifndef YY_NO_INPUT +#ifdef __cplusplus +static int yyinput YY_PROTO(( void )); +#else +static int input YY_PROTO(( void )); +#endif +#endif + +#if YY_STACK_USED +static int yy_start_stack_ptr = 0; +static int yy_start_stack_depth = 0; +static int *yy_start_stack = 0; +#ifndef YY_NO_PUSH_STATE +static void yy_push_state YY_PROTO(( int new_state )); +#endif +#ifndef YY_NO_POP_STATE +static void yy_pop_state YY_PROTO(( void )); +#endif +#ifndef YY_NO_TOP_STATE +static int yy_top_state YY_PROTO(( void )); +#endif + +#else +#define YY_NO_PUSH_STATE 1 +#define YY_NO_POP_STATE 1 +#define YY_NO_TOP_STATE 1 +#endif + +#ifdef YY_MALLOC_DECL +YY_MALLOC_DECL +#else +#if __STDC__ +#ifndef __cplusplus +#include <stdlib.h> +#endif +#else +/* Just try to get by without declaring the routines. This will fail + * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) + * or sizeof(void*) != sizeof(int). + */ +#endif +#endif + +/* Amount of stuff to slurp up with each read. */ +#ifndef YY_READ_BUF_SIZE +#define YY_READ_BUF_SIZE 8192 +#endif + +/* Copy whatever the last rule matched to the standard output. */ + +#ifndef ECHO +/* This used to be an fputs(), but since the string might contain NUL's, + * we now use fwrite(). + */ +#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) +#endif + +/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, + * is returned in "result". + */ +#ifndef YY_INPUT +#define YY_INPUT(buf,result,max_size) \ + if ( yy_current_buffer->yy_is_interactive ) \ + { \ + int c = '*', n; \ + for ( n = 0; n < max_size && \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ + buf[n] = (char) c; \ + if ( c == '\n' ) \ + buf[n++] = (char) c; \ + if ( c == EOF && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); \ + result = n; \ + } \ + else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ + && ferror( yyin ) ) \ + YY_FATAL_ERROR( "input in flex scanner failed" ); +#endif + +/* No semi-colon after return; correct usage is to write "yyterminate();" - + * we don't want an extra ';' after the "return" because that will cause + * some compilers to complain about unreachable statements. + */ +#ifndef yyterminate +#define yyterminate() return YY_NULL +#endif + +/* Number of entries by which start-condition stack grows. */ +#ifndef YY_START_STACK_INCR +#define YY_START_STACK_INCR 25 +#endif + +/* Report a fatal error. */ +#ifndef YY_FATAL_ERROR +#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) +#endif + +/* Default declaration of generated scanner - a define so the user can + * easily add parameters. + */ +#ifndef YY_DECL +#define YY_DECL int yylex YY_PROTO(( void )) +#endif + +/* Code executed at the beginning of each rule, after yytext and yyleng + * have been set up. + */ +#ifndef YY_USER_ACTION +#define YY_USER_ACTION +#endif + +/* Code executed at the end of each rule. */ +#ifndef YY_BREAK +#define YY_BREAK break; +#endif + +#define YY_RULE_SETUP \ + YY_USER_ACTION + +YY_DECL + { + register yy_state_type yy_current_state; + register char *yy_cp, *yy_bp; + register int yy_act; + +#line 184 "config.l" + + + + if ( yy_init ) + { + yy_init = 0; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! yy_start ) + yy_start = 1; /* first start state */ + + if ( ! yyin ) + yyin = stdin; + + if ( ! yyout ) + yyout = stdout; + + if ( ! yy_current_buffer ) + yy_current_buffer = + yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_load_buffer_state(); + } + + while ( 1 ) /* loops until end-of-file is reached */ + { + yy_cp = yy_c_buf_p; + + /* Support of yytext. */ + *yy_cp = yy_hold_char; + + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; + + yy_current_state = yy_start; +yy_match: + do + { + register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 929 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + ++yy_cp; + } + while ( yy_base[yy_current_state] != 1228 ); + +yy_find_action: + yy_act = yy_accept[yy_current_state]; + if ( yy_act == 0 ) + { /* have to back up */ + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + yy_act = yy_accept[yy_current_state]; + } + + YY_DO_BEFORE_ACTION; + + +do_action: /* This label is used only to access EOF actions. */ + + + switch ( yy_act ) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yy_hold_char; + yy_cp = yy_last_accepting_cpos; + yy_current_state = yy_last_accepting_state; + goto yy_find_action; + +case 1: +YY_RULE_SETUP +#line 186 "config.l" + + YY_BREAK +case 2: +YY_RULE_SETUP +#line 187 "config.l" +{ BEGIN(SkipComment); } + YY_BREAK +case 3: +YY_RULE_SETUP +#line 188 "config.l" +{ BEGIN(GetString); s=&Config::projectName; } + YY_BREAK +case 4: +YY_RULE_SETUP +#line 189 "config.l" +{ BEGIN(GetString); s=&Config::projectNumber; } + YY_BREAK +case 5: +YY_RULE_SETUP +#line 190 "config.l" +{ BEGIN(GetString); s=&Config::outputDir; } + YY_BREAK +case 6: +YY_RULE_SETUP +#line 191 "config.l" +{ BEGIN(GetString); s=&Config::htmlOutputDir; } + YY_BREAK +case 7: +YY_RULE_SETUP +#line 192 "config.l" +{ BEGIN(GetString); s=&Config::manOutputDir; } + YY_BREAK +case 8: +YY_RULE_SETUP +#line 193 "config.l" +{ BEGIN(GetString); s=&Config::latexOutputDir; } + YY_BREAK +case 9: +YY_RULE_SETUP +#line 194 "config.l" +{ BEGIN(GetString); s=&Config::headerFile; } + YY_BREAK +case 10: +YY_RULE_SETUP +#line 195 "config.l" +{ BEGIN(GetString); s=&Config::footerFile; } + YY_BREAK +case 11: +YY_RULE_SETUP +#line 196 "config.l" +{ BEGIN(GetString); s=&Config::latexHeaderFile; } + YY_BREAK +case 12: +YY_RULE_SETUP +#line 197 "config.l" +{ BEGIN(GetString); s=&Config::cgiName; } + YY_BREAK +case 13: +YY_RULE_SETUP +#line 198 "config.l" +{ BEGIN(GetString); s=&Config::cgiURL; } + YY_BREAK +case 14: +YY_RULE_SETUP +#line 199 "config.l" +{ BEGIN(GetString); s=&Config::docURL; } + YY_BREAK +case 15: +YY_RULE_SETUP +#line 200 "config.l" +{ BEGIN(GetString); s=&Config::binAbsPath; } + YY_BREAK +case 16: +YY_RULE_SETUP +#line 201 "config.l" +{ BEGIN(GetString); s=&Config::docAbsPath; } + YY_BREAK +case 17: +YY_RULE_SETUP +#line 202 "config.l" +{ BEGIN(GetString); s=&Config::perlPath; } + YY_BREAK +case 18: +YY_RULE_SETUP +#line 203 "config.l" +{ BEGIN(GetString); s=&Config::genTagFile; } + YY_BREAK +case 19: +YY_RULE_SETUP +#line 204 "config.l" +{ BEGIN(GetString); s=&Config::inputFilter; } + YY_BREAK +case 20: +YY_RULE_SETUP +#line 205 "config.l" +{ BEGIN(GetString); s=&Config::paperType; } + YY_BREAK +case 21: +YY_RULE_SETUP +#line 206 "config.l" +{ BEGIN(GetString); s=&Config::outputLanguage; } + YY_BREAK +case 22: +YY_RULE_SETUP +#line 207 "config.l" +{ BEGIN(GetString); s=&Config::manExtension; } + YY_BREAK +case 23: +YY_RULE_SETUP +#line 208 "config.l" +{ BEGIN(GetString); s=&tabSizeString; } + YY_BREAK +case 24: +YY_RULE_SETUP +#line 209 "config.l" +{ BEGIN(GetString); s=&Config::htmlStyleSheet; } + YY_BREAK +case 25: +YY_RULE_SETUP +#line 210 "config.l" +{ BEGIN(GetString); s=&colsInAlphaIndexString; } + YY_BREAK +case 26: +YY_RULE_SETUP +#line 211 "config.l" +{ BEGIN(GetStrList); l=&Config::includePath; elemStr=""; } + YY_BREAK +case 27: +YY_RULE_SETUP +#line 212 "config.l" +{ BEGIN(GetStrList); l=&Config::examplePath; elemStr=""; } + YY_BREAK +case 28: +YY_RULE_SETUP +#line 213 "config.l" +{ BEGIN(GetStrList); l=&Config::imagePath; elemStr=""; } + YY_BREAK +case 29: +YY_RULE_SETUP +#line 214 "config.l" +{ BEGIN(GetStrList); l=&Config::inputSources; elemStr=""; } + YY_BREAK +case 30: +YY_RULE_SETUP +#line 215 "config.l" +{ BEGIN(GetStrList); l=&Config::excludeSources; elemStr=""; } + YY_BREAK +case 31: +YY_RULE_SETUP +#line 216 "config.l" +{ BEGIN(GetStrList); l=&Config::filePatternList; elemStr=""; } + YY_BREAK +case 32: +YY_RULE_SETUP +#line 217 "config.l" +{ BEGIN(GetStrList); l=&Config::excludePatternList; elemStr=""; } + YY_BREAK +case 33: +YY_RULE_SETUP +#line 218 "config.l" +{ BEGIN(GetStrList); l=&Config::examplePatternList; elemStr=""; } + YY_BREAK +case 34: +YY_RULE_SETUP +#line 219 "config.l" +{ BEGIN(GetStrList); l=&Config::imagePatternList; elemStr=""; } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 220 "config.l" +{ BEGIN(GetStrList); l=&Config::tagFileList; elemStr=""; } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 221 "config.l" +{ BEGIN(GetStrList); l=&Config::extDocPathList; elemStr=""; } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 222 "config.l" +{ BEGIN(GetStrList); l=&Config::predefined; elemStr=""; } + YY_BREAK +case 38: +YY_RULE_SETUP +#line 223 "config.l" +{ BEGIN(GetStrList); l=&Config::extraPackageList; elemStr=""; } + YY_BREAK +case 39: +YY_RULE_SETUP +#line 224 "config.l" +{ BEGIN(GetStrList); l=&Config::stripFromPath; elemStr=""; } + YY_BREAK +case 40: +YY_RULE_SETUP +#line 225 "config.l" +{ BEGIN(GetBool); b=&Config::quietFlag; } + YY_BREAK +case 41: +YY_RULE_SETUP +#line 226 "config.l" +{ BEGIN(GetBool); b=&Config::warningFlag; } + YY_BREAK +case 42: +YY_RULE_SETUP +#line 227 "config.l" +{ BEGIN(GetBool); b=&Config::recursiveFlag; } + YY_BREAK +case 43: +YY_RULE_SETUP +#line 228 "config.l" +{ BEGIN(GetBool); b=&Config::allExtFlag; } + YY_BREAK +case 44: +YY_RULE_SETUP +#line 229 "config.l" +{ BEGIN(GetBool); b=&Config::searchEngineFlag; } + YY_BREAK +case 45: +YY_RULE_SETUP +#line 230 "config.l" +{ BEGIN(GetBool); b=&Config::extractAllFlag; } + YY_BREAK +case 46: +YY_RULE_SETUP +#line 231 "config.l" +{ BEGIN(GetBool); b=&Config::extractPrivateFlag; } + YY_BREAK +case 47: +YY_RULE_SETUP +#line 232 "config.l" +{ BEGIN(GetBool); b=&Config::noIndexFlag; } + YY_BREAK +case 48: +YY_RULE_SETUP +#line 233 "config.l" +{ BEGIN(GetBool); b=&Config::generateLatex; } + YY_BREAK +case 49: +YY_RULE_SETUP +#line 234 "config.l" +{ BEGIN(GetBool); b=&Config::generateHtml; } + YY_BREAK +case 50: +YY_RULE_SETUP +#line 235 "config.l" +{ BEGIN(GetBool); b=&Config::generateMan; } + YY_BREAK +case 51: +YY_RULE_SETUP +#line 236 "config.l" +{ BEGIN(GetBool); b=&Config::preprocessingFlag; } + YY_BREAK +case 52: +YY_RULE_SETUP +#line 237 "config.l" +{ BEGIN(GetBool); b=&Config::macroExpansionFlag; } + YY_BREAK +case 53: +YY_RULE_SETUP +#line 238 "config.l" +{ BEGIN(GetBool); b=&Config::searchIncludeFlag; } + YY_BREAK +case 54: +YY_RULE_SETUP +#line 239 "config.l" +{ BEGIN(GetBool); b=&Config::briefMemDescFlag; } + YY_BREAK +case 55: +YY_RULE_SETUP +#line 240 "config.l" +{ BEGIN(GetBool); b=&Config::alwaysDetailsFlag; } + YY_BREAK +case 56: +YY_RULE_SETUP +#line 241 "config.l" +{ BEGIN(GetBool); b=&Config::hideMemberFlag; } + YY_BREAK +case 57: +YY_RULE_SETUP +#line 242 "config.l" +{ BEGIN(GetBool); b=&Config::hideClassFlag; } + YY_BREAK +case 58: +YY_RULE_SETUP +#line 243 "config.l" +{ BEGIN(GetBool); b=&Config::onlyPredefinedFlag; } + YY_BREAK +case 59: +YY_RULE_SETUP +#line 244 "config.l" +{ BEGIN(GetBool); b=&Config::fullPathNameFlag; } + YY_BREAK +case 60: +YY_RULE_SETUP +#line 245 "config.l" +{ BEGIN(GetBool); b=&Config::classDiagramFlag; } + YY_BREAK +case 61: +YY_RULE_SETUP +#line 246 "config.l" +{ BEGIN(GetBool); b=&Config::compactLatexFlag; } + YY_BREAK +case 62: +YY_RULE_SETUP +#line 247 "config.l" +{ BEGIN(GetBool); b=&Config::repeatBriefFlag; } + YY_BREAK +case 63: +YY_RULE_SETUP +#line 248 "config.l" +{ BEGIN(GetBool); b=&Config::internalDocsFlag; } + YY_BREAK +case 64: +YY_RULE_SETUP +#line 249 "config.l" +{ BEGIN(GetBool); b=&Config::caseSensitiveNames; } + YY_BREAK +case 65: +YY_RULE_SETUP +#line 250 "config.l" +{ BEGIN(GetBool); b=&Config::verbatimHeaderFlag; } + YY_BREAK +case 66: +YY_RULE_SETUP +#line 251 "config.l" +{ BEGIN(GetBool); b=&Config::htmlAlignMemberFlag; } + YY_BREAK +case 67: +YY_RULE_SETUP +#line 252 "config.l" +{ BEGIN(GetBool); b=&Config::sourceBrowseFlag; } + YY_BREAK +case 68: +YY_RULE_SETUP +#line 253 "config.l" +{ BEGIN(GetBool); b=&Config::autoBriefFlag; } + YY_BREAK +case 69: +YY_RULE_SETUP +#line 254 "config.l" +{ BEGIN(GetBool); b=&Config::htmlHelpFlag; } + YY_BREAK +case 70: +YY_RULE_SETUP +#line 255 "config.l" +{ BEGIN(GetBool); b=&Config::alphaIndexFlag; } + YY_BREAK +case 71: +YY_RULE_SETUP +#line 256 "config.l" +{ BEGIN(GetBool); b=&Config::pdfHyperFlag; } + YY_BREAK +case 72: +YY_RULE_SETUP +#line 257 "config.l" +{ BEGIN(GetBool); b=&Config::inheritDocsFlag; } + YY_BREAK +case 73: +YY_RULE_SETUP +#line 258 "config.l" +{ BEGIN(GetBool); b=&Config::inlineInfoFlag; } + YY_BREAK +case 74: +YY_RULE_SETUP +#line 259 "config.l" +{ err("Warning: ignoring unknown tag `%s' at line %d\n",yytext,yyLineNr); } + YY_BREAK +case 75: +YY_RULE_SETUP +#line 260 "config.l" +{ yyLineNr++; BEGIN(Start); } + YY_BREAK +case 76: +YY_RULE_SETUP +#line 261 "config.l" +{ + yyLineNr++; + if (elemStr.length()>0) + { + //printf("elemStr1=`%s'\n",elemStr.data()); + l->append(elemStr); + } + BEGIN(Start); + } + YY_BREAK +case 77: +YY_RULE_SETUP +#line 270 "config.l" +{ + if (elemStr.length()>0) + { + //printf("elemStr2=`%s'\n",elemStr.data()); + l->append(elemStr); + } + elemStr.resize(0); + } + YY_BREAK +case 78: +YY_RULE_SETUP +#line 278 "config.l" +{ (*s)+=yytext; } + YY_BREAK +case 79: +YY_RULE_SETUP +#line 279 "config.l" +{ lastState=YY_START; + BEGIN(GetQuotedString); + tmpString.resize(0); + } + YY_BREAK +case 80: +YY_RULE_SETUP +#line 283 "config.l" +{ + //printf(">> Enter env\n"); + lastEnvState=YY_START; + BEGIN(GetEnvVar); + } + YY_BREAK +case 81: +YY_RULE_SETUP +#line 288 "config.l" +{ + yytext[yyleng-1]='\0'; + const char *env=getenv(yytext); + int i; + int l=strlen(env); + //printf("env name=`%s' text=`%s'\n",yytext,env); + for (i=l-1;i>=0;i--) unput(env[i]); + BEGIN(lastEnvState); + } + YY_BREAK +case 82: +YY_RULE_SETUP +#line 297 "config.l" +{ + //printf("Quoted String = `%s'\n",tmpString.data()); + if (lastState==GetString) + (*s)+=tmpString; + else + elemStr+=tmpString; + if (*yytext=='\n') + { + err("Warning: Missing end quote (\") on line %d\n",yyLineNr); + yyLineNr++; + } + BEGIN(lastState); + } + YY_BREAK +case 83: +YY_RULE_SETUP +#line 310 "config.l" +{ + tmpString+='"'; + } + YY_BREAK +case 84: +YY_RULE_SETUP +#line 313 "config.l" +{ tmpString+=*yytext; } + YY_BREAK +case 85: +YY_RULE_SETUP +#line 314 "config.l" +{ + QCString bs=yytext; + bs=bs.upper(); + if (bs=="YES") + *b=TRUE; + else if (bs=="NO") + *b=FALSE; + else + { + *b=FALSE; + warn("Warning: Invalid value `%s' for " + "boolean tag in line %d; use YES or NO\n", + bs.data(),yyLineNr); + } + } + YY_BREAK +case 86: +YY_RULE_SETUP +#line 329 "config.l" +{ + elemStr+=yytext; + } + YY_BREAK +case 87: +YY_RULE_SETUP +#line 332 "config.l" +{ yyLineNr++; BEGIN(Start); } + YY_BREAK +case 88: +YY_RULE_SETUP +#line 333 "config.l" +{ yyLineNr++; BEGIN(Start); } + YY_BREAK +case 89: +YY_RULE_SETUP +#line 334 "config.l" +{ yyLineNr++; } + YY_BREAK +case 90: +YY_RULE_SETUP +#line 335 "config.l" + + YY_BREAK +case 91: +YY_RULE_SETUP +#line 336 "config.l" +{ yyLineNr++ ; } + YY_BREAK +case 92: +YY_RULE_SETUP +#line 338 "config.l" +ECHO; + YY_BREAK +case YY_STATE_EOF(INITIAL): +case YY_STATE_EOF(Start): +case YY_STATE_EOF(SkipComment): +case YY_STATE_EOF(GetString): +case YY_STATE_EOF(GetBool): +case YY_STATE_EOF(GetStrList): +case YY_STATE_EOF(GetQuotedString): +case YY_STATE_EOF(GetEnvVar): + yyterminate(); + + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; + + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between yy_current_buffer and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yy_n_chars = yy_current_buffer->yy_n_chars; + yy_current_buffer->yy_input_file = yyin; + yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; + } + + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + { /* This was really a NUL. */ + yy_state_type yy_next_state; + + yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ + + yy_next_state = yy_try_NUL_trans( yy_current_state ); + + yy_bp = yytext_ptr + YY_MORE_ADJ; + + if ( yy_next_state ) + { + /* Consume the NUL. */ + yy_cp = ++yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yy_c_buf_p; + goto yy_find_action; + } + } + + else switch ( yy_get_next_buffer() ) + { + case EOB_ACT_END_OF_FILE: + { + yy_did_buffer_switch_on_eof = 0; + + if ( yywrap() ) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = + yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yy_c_buf_p = + &yy_current_buffer->yy_ch_buf[yy_n_chars]; + + yy_current_state = yy_get_previous_state(); + + yy_cp = yy_c_buf_p; + yy_bp = yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR( + "fatal flex scanner internal error--no action found" ); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of yylex */ + + +/* yy_get_next_buffer - try to read in a new buffer + * + * Returns a code representing an action: + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file + */ + +static int yy_get_next_buffer() + { + register char *dest = yy_current_buffer->yy_ch_buf; + register char *source = yytext_ptr; + register int number_to_move, i; + int ret_val; + + if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) + YY_FATAL_ERROR( + "fatal flex scanner internal error--end of buffer missed" ); + + if ( yy_current_buffer->yy_fill_buffer == 0 ) + { /* Don't try to fill the buffer, so this is an EOF. */ + if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } + + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } + + /* Try to read more data. */ + + /* First move last chars to start of buffer. */ + number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; + + for ( i = 0; i < number_to_move; ++i ) + *(dest++) = *(source++); + + if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + yy_current_buffer->yy_n_chars = yy_n_chars = 0; + + else + { + int num_to_read = + yy_current_buffer->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) + { /* Not enough room in the buffer - grow it. */ +#ifdef YY_USES_REJECT + YY_FATAL_ERROR( +"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); +#else + + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = yy_current_buffer; + + int yy_c_buf_p_offset = + (int) (yy_c_buf_p - b->yy_ch_buf); + + if ( b->yy_is_our_buffer ) + { + int new_size = b->yy_buf_size * 2; + + if ( new_size <= 0 ) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; + + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yy_flex_realloc( (void *) b->yy_ch_buf, + b->yy_buf_size + 2 ); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = 0; + + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( + "fatal error - scanner input buffer overflow" ); + + yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + + num_to_read = yy_current_buffer->yy_buf_size - + number_to_move - 1; +#endif + } + + if ( num_to_read > YY_READ_BUF_SIZE ) + num_to_read = YY_READ_BUF_SIZE; + + /* Read in more data. */ + YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), + yy_n_chars, num_to_read ); + + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + if ( yy_n_chars == 0 ) + { + if ( number_to_move == YY_MORE_ADJ ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart( yyin ); + } + + else + { + ret_val = EOB_ACT_LAST_MATCH; + yy_current_buffer->yy_buffer_status = + YY_BUFFER_EOF_PENDING; + } + } + + else + ret_val = EOB_ACT_CONTINUE_SCAN; + + yy_n_chars += number_to_move; + yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; + yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + + yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; + + return ret_val; + } + + +/* yy_get_previous_state - get the state just before the EOB char was reached */ + +static yy_state_type yy_get_previous_state() + { + register yy_state_type yy_current_state; + register char *yy_cp; + + yy_current_state = yy_start; + + for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) + { + register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 44); + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 929 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + } + + return yy_current_state; + } + + +/* yy_try_NUL_trans - try to make a transition on the NUL character + * + * synopsis + * next_state = yy_try_NUL_trans( current_state ); + */ + +#ifdef YY_USE_PROTOS +static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) +#else +static yy_state_type yy_try_NUL_trans( yy_current_state ) +yy_state_type yy_current_state; +#endif + { + register int yy_is_jam; + register char *yy_cp = yy_c_buf_p; + + register YY_CHAR yy_c = 44; + if ( yy_accept[yy_current_state] ) + { + yy_last_accepting_state = yy_current_state; + yy_last_accepting_cpos = yy_cp; + } + while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) + { + yy_current_state = (int) yy_def[yy_current_state]; + if ( yy_current_state >= 929 ) + yy_c = yy_meta[(unsigned int) yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_is_jam = (yy_current_state == 928); + + return yy_is_jam ? 0 : yy_current_state; + } + + +#ifndef YY_NO_UNPUT +#ifdef YY_USE_PROTOS +static void yyunput( int c, register char *yy_bp ) +#else +static void yyunput( c, yy_bp ) +int c; +register char *yy_bp; +#endif + { + register char *yy_cp = yy_c_buf_p; + + /* undo effects of setting up yytext */ + *yy_cp = yy_hold_char; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ + register int number_to_move = yy_n_chars + 2; + register char *dest = &yy_current_buffer->yy_ch_buf[ + yy_current_buffer->yy_buf_size + 2]; + register char *source = + &yy_current_buffer->yy_ch_buf[number_to_move]; + + while ( source > yy_current_buffer->yy_ch_buf ) + *--dest = *--source; + + yy_cp += (int) (dest - source); + yy_bp += (int) (dest - source); + yy_current_buffer->yy_n_chars = + yy_n_chars = yy_current_buffer->yy_buf_size; + + if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) + YY_FATAL_ERROR( "flex scanner push-back overflow" ); + } + + *--yy_cp = (char) c; + + + yytext_ptr = yy_bp; + yy_hold_char = *yy_cp; + yy_c_buf_p = yy_cp; + } +#endif /* ifndef YY_NO_UNPUT */ + + +#ifdef __cplusplus +static int yyinput() +#else +static int input() +#endif + { + int c; + + *yy_c_buf_p = yy_hold_char; + + if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) + /* This was really a NUL. */ + *yy_c_buf_p = '\0'; + + else + { /* need more input */ + int offset = yy_c_buf_p - yytext_ptr; + ++yy_c_buf_p; + + switch ( yy_get_next_buffer() ) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ + + /* Reset buffer status. */ + yyrestart( yyin ); + + /* fall through */ + + case EOB_ACT_END_OF_FILE: + { + if ( yywrap() ) + return EOF; + + if ( ! yy_did_buffer_switch_on_eof ) + YY_NEW_FILE; +#ifdef __cplusplus + return yyinput(); +#else + return input(); +#endif + } + + case EOB_ACT_CONTINUE_SCAN: + yy_c_buf_p = yytext_ptr + offset; + break; + } + } + } + + c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ + *yy_c_buf_p = '\0'; /* preserve yytext */ + yy_hold_char = *++yy_c_buf_p; + + + return c; + } + + +#ifdef YY_USE_PROTOS +void yyrestart( FILE *input_file ) +#else +void yyrestart( input_file ) +FILE *input_file; +#endif + { + if ( ! yy_current_buffer ) + yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); + + yy_init_buffer( yy_current_buffer, input_file ); + yy_load_buffer_state(); + } + + +#ifdef YY_USE_PROTOS +void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) +#else +void yy_switch_to_buffer( new_buffer ) +YY_BUFFER_STATE new_buffer; +#endif + { + if ( yy_current_buffer == new_buffer ) + return; + + if ( yy_current_buffer ) + { + /* Flush out information for old buffer. */ + *yy_c_buf_p = yy_hold_char; + yy_current_buffer->yy_buf_pos = yy_c_buf_p; + yy_current_buffer->yy_n_chars = yy_n_chars; + } + + yy_current_buffer = new_buffer; + yy_load_buffer_state(); + + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yy_did_buffer_switch_on_eof = 1; + } + + +#ifdef YY_USE_PROTOS +void yy_load_buffer_state( void ) +#else +void yy_load_buffer_state() +#endif + { + yy_n_chars = yy_current_buffer->yy_n_chars; + yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; + yyin = yy_current_buffer->yy_input_file; + yy_hold_char = *yy_c_buf_p; + } + + +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) +#else +YY_BUFFER_STATE yy_create_buffer( file, size ) +FILE *file; +int size; +#endif + { + YY_BUFFER_STATE b; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + + b->yy_is_our_buffer = 1; + + yy_init_buffer( b, file ); + + return b; + } + + +#ifdef YY_USE_PROTOS +void yy_delete_buffer( YY_BUFFER_STATE b ) +#else +void yy_delete_buffer( b ) +YY_BUFFER_STATE b; +#endif + { + if ( ! b ) + return; + + if ( b == yy_current_buffer ) + yy_current_buffer = (YY_BUFFER_STATE) 0; + + if ( b->yy_is_our_buffer ) + yy_flex_free( (void *) b->yy_ch_buf ); + + yy_flex_free( (void *) b ); + } + + +#ifndef YY_ALWAYS_INTERACTIVE +#ifndef YY_NEVER_INTERACTIVE +extern int isatty YY_PROTO(( int )); +#endif +#endif + +#ifdef YY_USE_PROTOS +void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) +#else +void yy_init_buffer( b, file ) +YY_BUFFER_STATE b; +FILE *file; +#endif + + + { + yy_flush_buffer( b ); + + b->yy_input_file = file; + b->yy_fill_buffer = 1; + +#if YY_ALWAYS_INTERACTIVE + b->yy_is_interactive = 1; +#else +#if YY_NEVER_INTERACTIVE + b->yy_is_interactive = 0; +#else + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; +#endif +#endif + } + + +#ifdef YY_USE_PROTOS +void yy_flush_buffer( YY_BUFFER_STATE b ) +#else +void yy_flush_buffer( b ) +YY_BUFFER_STATE b; +#endif + + { + if ( ! b ) + return; + + b->yy_n_chars = 0; + + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + + b->yy_buf_pos = &b->yy_ch_buf[0]; + + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; + + if ( b == yy_current_buffer ) + yy_load_buffer_state(); + } + + +#ifndef YY_NO_SCAN_BUFFER +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) +#else +YY_BUFFER_STATE yy_scan_buffer( base, size ) +char *base; +yy_size_t size; +#endif + { + YY_BUFFER_STATE b; + + if ( size < 2 || + base[size-2] != YY_END_OF_BUFFER_CHAR || + base[size-1] != YY_END_OF_BUFFER_CHAR ) + /* They forgot to leave room for the EOB's. */ + return 0; + + b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + + b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = 0; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; + + yy_switch_to_buffer( b ); + + return b; + } +#endif + + +#ifndef YY_NO_SCAN_STRING +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) +#else +YY_BUFFER_STATE yy_scan_string( yy_str ) +yyconst char *yy_str; +#endif + { + int len; + for ( len = 0; yy_str[len]; ++len ) + ; + + return yy_scan_bytes( yy_str, len ); + } +#endif + + +#ifndef YY_NO_SCAN_BYTES +#ifdef YY_USE_PROTOS +YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) +#else +YY_BUFFER_STATE yy_scan_bytes( bytes, len ) +yyconst char *bytes; +int len; +#endif + { + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; + + /* Get memory for full buffer, including space for trailing EOB's. */ + n = len + 2; + buf = (char *) yy_flex_alloc( n ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + + for ( i = 0; i < len; ++i ) + buf[i] = bytes[i]; + + buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; + + b = yy_scan_buffer( buf, n ); + if ( ! b ) + YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; + } +#endif + + +#ifndef YY_NO_PUSH_STATE +#ifdef YY_USE_PROTOS +static void yy_push_state( int new_state ) +#else +static void yy_push_state( new_state ) +int new_state; +#endif + { + if ( yy_start_stack_ptr >= yy_start_stack_depth ) + { + yy_size_t new_size; + + yy_start_stack_depth += YY_START_STACK_INCR; + new_size = yy_start_stack_depth * sizeof( int ); + + if ( ! yy_start_stack ) + yy_start_stack = (int *) yy_flex_alloc( new_size ); + + else + yy_start_stack = (int *) yy_flex_realloc( + (void *) yy_start_stack, new_size ); + + if ( ! yy_start_stack ) + YY_FATAL_ERROR( + "out of memory expanding start-condition stack" ); + } + + yy_start_stack[yy_start_stack_ptr++] = YY_START; + + BEGIN(new_state); + } +#endif + + +#ifndef YY_NO_POP_STATE +static void yy_pop_state() + { + if ( --yy_start_stack_ptr < 0 ) + YY_FATAL_ERROR( "start-condition stack underflow" ); + + BEGIN(yy_start_stack[yy_start_stack_ptr]); + } +#endif + + +#ifndef YY_NO_TOP_STATE +static int yy_top_state() + { + return yy_start_stack[yy_start_stack_ptr - 1]; + } +#endif + +#ifndef YY_EXIT_FAILURE +#define YY_EXIT_FAILURE 2 +#endif + +#ifdef YY_USE_PROTOS +static void yy_fatal_error( yyconst char msg[] ) +#else +static void yy_fatal_error( msg ) +char msg[]; +#endif + { + (void) fprintf( stderr, "%s\n", msg ); + exit( YY_EXIT_FAILURE ); + } + + + +/* Redefine yyless() so it works in section 3 code. */ + +#undef yyless +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + yytext[yyleng] = yy_hold_char; \ + yy_c_buf_p = yytext + n; \ + yy_hold_char = *yy_c_buf_p; \ + *yy_c_buf_p = '\0'; \ + yyleng = n; \ + } \ + while ( 0 ) + + +/* Internal utility routines. */ + +#ifndef yytext_ptr +#ifdef YY_USE_PROTOS +static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) +#else +static void yy_flex_strncpy( s1, s2, n ) +char *s1; +yyconst char *s2; +int n; +#endif + { + register int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +#endif + +#ifdef YY_NEED_STRLEN +#ifdef YY_USE_PROTOS +static int yy_flex_strlen( yyconst char *s ) +#else +static int yy_flex_strlen( s ) +yyconst char *s; +#endif + { + register int n; + for ( n = 0; s[n]; ++n ) + ; + + return n; + } +#endif + + +#ifdef YY_USE_PROTOS +static void *yy_flex_alloc( yy_size_t size ) +#else +static void *yy_flex_alloc( size ) +yy_size_t size; +#endif + { + return (void *) malloc( size ); + } + +#ifdef YY_USE_PROTOS +static void *yy_flex_realloc( void *ptr, yy_size_t size ) +#else +static void *yy_flex_realloc( ptr, size ) +void *ptr; +yy_size_t size; +#endif + { + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return (void *) realloc( (char *) ptr, size ); + } + +#ifdef YY_USE_PROTOS +static void yy_flex_free( void *ptr ) +#else +static void yy_flex_free( ptr ) +void *ptr; +#endif + { + free( ptr ); + } + +#if YY_MAIN +int main() + { + yylex(); + return 0; + } +#endif +#line 338 "config.l" + + +/*@ ---------------------------------------------------------------------------- + */ + + +void dumpConfig() +{ + printf("projectName=`%s'\n",Config::projectName.data()); + printf("outputDir=`%s'\n", Config::outputDir.data()); + printf("headerFile=`%s'\n", Config::headerFile.data()); + printf("footerFile=`%s'\n", Config::footerFile.data()); + char *ip=Config::includePath.first(); + while (ip) + { + printf("includePath=`%s'\n",ip); + ip=Config::includePath.next(); + } + printf("quiet=`%d'\n", Config::quietFlag); + printf("warnings=`%d'\n", Config::warningFlag); + char *is=Config::inputSources.first(); + while (is) + { + printf("inputSources=`%s'\n",is); + is=Config::inputSources.next(); + } + char *fp=Config::filePatternList.first(); + while (fp) + { + printf("filePattern=`%s'\n",fp); + fp=Config::filePatternList.next(); + } + printf("recusive=`%d'\n",Config::recursiveFlag); + printf("inputFilter=`%s'\n",Config::inputFilter.data()); + char *tf=Config::tagFileList.first(); + while (tf) + { + printf("tagFile=`%s'\n",tf); + tf=Config::tagFileList.next(); + } + printf("allExternals=`%d'\n",Config::allExtFlag); + printf("searchEngine=`%d'\n",Config::searchEngineFlag); + printf("cgiName=`%s'\n",Config::cgiName.data()); + printf("cgiURL=`%s'\n",Config::cgiURL.data()); + printf("docURL=`%s'\n",Config::docURL.data()); + printf("binAbsPath=`%s'\n",Config::binAbsPath.data()); + char *ed=Config::extDocPathList.first(); + while (ed) + { + printf("binAbsPathFile=`%s'\n",ed); + ed=Config::extDocPathList.next(); + } +} + +void Config::init() +{ + Config::projectName.resize(0); + Config::projectNumber.resize(0); + Config::outputDir.resize(0); + Config::htmlOutputDir = "html"; + Config::latexOutputDir ="latex"; + Config::manOutputDir ="man"; + Config::outputLanguage = "English"; + Config::headerFile.resize(0); + Config::latexHeaderFile.resize(0); + Config::footerFile.resize(0); + Config::cgiName = "search.cgi"; + Config::cgiURL.resize(0); + Config::docURL.resize(0); + Config::binAbsPath = "/usr/local/bin/"; + Config::docAbsPath.resize(0); + Config::perlPath = "/usr/bin/perl"; + Config::genTagFile.resize(0); + Config::inputFilter.resize(0); + Config::paperType = "a4wide"; + Config::manExtension = ".3"; + Config::htmlStyleSheet.resize(0); + Config::includePath.clear(); + Config::examplePath.clear(); + Config::imagePath.clear(); + Config::inputSources.clear(); + Config::excludeSources.clear(); + Config::filePatternList.clear(); + Config::examplePatternList.clear(); + Config::imagePatternList.clear(); + Config::excludePatternList.clear(); + Config::tagFileList.clear(); + Config::extDocPathList.clear(); + Config::predefined.clear(); + Config::extraPackageList.clear(); + Config::stripFromPath.clear(); + Config::tabSize=8; + Config::colsInAlphaIndex=5; + Config::quietFlag = FALSE; + Config::recursiveFlag = FALSE; + Config::allExtFlag = FALSE; + Config::searchEngineFlag = FALSE; + Config::extractAllFlag = FALSE; + Config::extractPrivateFlag = FALSE; + Config::noIndexFlag = FALSE; + Config::hideMemberFlag = FALSE; + Config::hideClassFlag = FALSE; + Config::macroExpansionFlag = FALSE; + Config::onlyPredefinedFlag = FALSE; + Config::fullPathNameFlag = FALSE; + Config::compactLatexFlag = FALSE; + Config::internalDocsFlag = FALSE; + Config::caseSensitiveNames = FALSE; + Config::sourceBrowseFlag = FALSE; + Config::htmlHelpFlag = FALSE; + Config::alphaIndexFlag = FALSE; + Config::pdfHyperFlag = FALSE; + Config::alwaysDetailsFlag = FALSE; + Config::warningFlag = TRUE; + Config::generateHtml = TRUE; + Config::generateLatex = TRUE; + Config::generateMan = TRUE; + Config::preprocessingFlag = TRUE; + Config::briefMemDescFlag = TRUE; + Config::searchIncludeFlag = TRUE; + Config::classDiagramFlag = TRUE; + Config::repeatBriefFlag = TRUE; + Config::verbatimHeaderFlag = TRUE; + Config::htmlAlignMemberFlag = TRUE; + Config::autoBriefFlag = TRUE; + Config::inheritDocsFlag = TRUE; + Config::inlineInfoFlag = TRUE; +} + +void writeTemplateConfig(QFile *f,bool sl) +{ + QTextStream t(f); +#ifdef DOXYWIZARD + t << "# Doxygen configuration generated by Doxywizard version " << versionString << endl; +#else + t << "# Doxyfile " << versionString << endl << endl; +#endif + if (!sl) + { + t << "# This file describes the settings to be used by doxygen for a project\n"; + t << "#\n"; + t << "# All text after a hash (#) is considered a comment and will be ignored\n"; + t << "# The format is:\n"; + t << "# TAG = value [value, ...]\n"; + t << "# Values that contain spaces should be placed between quotes (\" \")\n"; + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# General configuration options\n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# The PROJECT_NAME tag is a single word (or a sequence of word surrounded\n"; + t << "# by quotes) that should identify the project. \n"; + t << "\n"; + } + t << "PROJECT_NAME =\n"; + if (!sl) + { + t << "\n"; + t << "# The PROJECT_NUMBER tag can be used to enter a project or revision number.\n" ; + t << "# This could be handy for archiving the generated documentation or \n"; + t << "# if some version control system is used.\n"; + t << "\n"; + } + t << "PROJECT_NUMBER =\n"; + if (!sl) + { + t << "\n"; + t << "# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) \n"; + t << "# base path where the generated documentation will be put. \n"; + t << "# If a relative path is entered, it will be relative to the location \n"; + t << "# where doxygen was started. If left blank the current directory will be used.\n"; + t << "\n"; + } + t << "OUTPUT_DIRECTORY =\n"; + if (!sl) + { + t << "\n"; + t << "# The OUTPUT_LANGUAGE tag is used to specify the language in which all\n"; + t << "# documentation generated by doxygen is written. Doxygen will use this\n"; + t << "# information to generate all constant output in the proper language.\n"; + t << "# The default language is English, other supported languages are: \n"; + t << "# Dutch, French, Italian, Czech, Swedish, German and Japanese\n"; + t << "\n"; + } + t << "OUTPUT_LANGUAGE = English\n"; + if (!sl) + { + t << "\n"; + t << "# The QUIET tag can be used to turn on/off the messages that are generated\n"; + t << "# by doxygen. Possible values are YES and NO. If left blank NO is used.\n"; + t << "\n"; + } + t << "QUIET = NO\n"; + if (!sl) + { + t << "\n"; + t << "# The WARNINGS tag can be used to turn on/off the warning messages that are\n"; + t << "# generated by doxygen. Possible values are YES and NO. If left blank\n"; + t << "# NO is used.\n"; + t << "\n"; + } + t << "WARNINGS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The DISABLE_INDEX tag can be used to turn on/off the condensed index at\n"; + t << "# top of each HTML page. The value NO (the default) enables the index and\n"; + t << "# the value YES disables it.\n"; + t << "\n"; + } + t << "DISABLE_INDEX = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the EXTRACT_ALL tag is set to YES all classes and functions will be\n"; + t << "# included in the documentation, even if no documentation was available.\n"; + t << "\n"; + } + t << "EXTRACT_ALL = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the EXTRACT_PRIVATE tag is set to YES all private members of a class\n"; + t << "# will be included in the documentation.\n"; + t << "\n"; + } + t << "EXTRACT_PRIVATE = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all\n"; + t << "# undocumented members inside documented classes or files.\n"; + t << "\n"; + } + t << "HIDE_UNDOC_MEMBERS = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the HIDE_UNDOC_CLASSESS tag is set to YES, Doxygen will hide all\n"; + t << "# undocumented classes.\n"; + t << "\n"; + } + t << "HIDE_UNDOC_CLASSES = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will\n"; + t << "# include brief member descriptions after the members that are listed in \n"; + t << "# the file and class documentation (similar to JavaDoc).\n"; + t << "# Set to NO to disable this.\n"; + t << "\n"; + } + t << "BRIEF_MEMBER_DESC = YES\n"; + if (!sl) + { + t << "\n"; + t << "# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend\n"; + t << "# the brief description of a member or function before the detailed description.\n"; + t << "# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the \n"; + t << "# brief descriptions will be completely suppressed.\n"; + t << "\n"; + } + t << "REPEAT_BRIEF = YES\n"; + if (!sl) + { + t <<"\n"; + t << "# If the ALWAYS_DETAILS_SEC and REPEAT_BRIEF tags are both set to YES then\n"; + t << "# Doxygen will generate a detailed section even if there is only a brief\n"; + t << "# description.\n"; + t <<"\n"; + } + t << "ALWAYS_DETAILED_SEC = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full\n"; + t << "# path before files name in the file list and in the header files. If set\n" ; + t << "# to NO the shortest path that makes the file name unique will be used.\n"; + t << "\n"; + } + t << "FULL_PATH_NAMES = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag\n"; + t << "# can be used to strip a user defined part of the path. Stripping is\n" ; + t << "# only done if one of the specified strings matches the left-hand part of\n"; + t << "# the path.\n"; + t << "\n"; + } + t << "STRIP_FROM_PATH =\n"; + if (!sl) + { + t << "\n"; + t << "# The INTERNAL_DOCS tag determines if documentation\n"; + t << "# that is typed after a \\internal command is included. If the tag is set \n"; + t << "# to NO (the default) then the documentation will be excluded.\n"; + t << "# Set it to YES to include the internal documentation.\n"; + t << "\n"; + } + t << "INTERNAL_DOCS = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will\n"; + t << "# generate a class diagram (in Html and LaTeX) for classes with base or\n"; + t << "# super classes. Setting the tag to NO turns the diagrams off.\n"; + t << "\n"; + } + t << "CLASS_DIAGRAMS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# If the SOURCE_BROWSER tag is set to YES than the body of a member or\n"; + t << "# function will be appended as a block of code to the documentation of.\n"; + t << "# that member or function.\n"; + t << "\n"; + } + t << "SOURCE_BROWSER = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the CASE_SENSE_NAMES tag is set to NO (the default) then Doxygen\n"; + t << "# will only generate file names in lower case letters. If set to\n"; + t << "# YES upper case letters are also allowed. This is useful if you have\n"; + t << "# classes or files whose names only differ in case and if your file system\n"; + t << "# supports case sensitive file names.\n"; + t << "\n"; + } + t << "CASE_SENSE_NAMES = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen\n"; + t << "# will generate a verbatim copy of the header file for each class for\n"; + t << "# which an include is specified. Set to NO to disable this.\n"; + t << "\n"; + } + t << "VERBATIM_HEADERS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# If the JAVADOC_AUTOBRIEF tag is set to YES (the default) then Doxygen\n"; + t << "# will interpret the first line (until the first dot) of a JavaDoc-style\n"; + t << "# comment as the brief description. If set to NO, the Javadoc-style will\n"; + t << "# behave just like the Qt-style comments.\n"; + t << "\n"; + } + t << "JAVADOC_AUTOBRIEF = YES\n"; + if (!sl) + { + t << "\n"; + t << "# if the INHERIT_DOCS tag is set to YES (the default) then an undocumented\n"; + t << "# member inherits the documentation from any documented member that it\n"; + t << "# reimplements.\n"; + t << "\n"; + } + t << "INHERIT_DOCS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# if the INLINE_INFO tag is set to YES (the default) then a tag [inline]\n"; + t << "# is inserted in the documentation for inline members.\n"; + t << "\n"; + } + t << "INLINE_INFO = YES\n"; + if (!sl) + { + t << "\n"; + t << "# the TAB_SIZE tag can be used to set the number of spaces in a tab\n"; + t << "# Doxygen uses this value to replace tabs by spaces in code fragments.\n"; + t << "\n"; + } + t << "TAB_SIZE = 8\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# configuration options related to the input files\n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# The INPUT tag can be used to specify the files and/or directories that contain \n"; + t << "# documented source files. You may enter file names like \"myfile.cpp\" or \n"; + t << "# directories like \"/usr/src/myproject\". Separate the files or directories \n"; + t << "# with spaces.\n"; + t << "\n"; + } + t << "INPUT =\n"; + if (!sl) + { + t << "\n"; + t << "# If the value of the INPUT tag contains directories, you can use the \n"; + t << "# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp \n"; + t << "# and *.h) to filter out the source-files in the directories. If left \n"; + t << "# blank all files are included.\n"; + t << "\n"; + } + t << "FILE_PATTERNS =\n"; + if (!sl) + { + t << "\n"; + t << "# The RECURSIVE tag can be used to turn specify whether or not subdirectories\n"; + t << "# should be searched for input files as well. Possible values are YES and NO.\n"; + t << "# If left blank NO is used.\n"; + t << "\n"; + } + t << "RECURSIVE = NO\n"; + if (!sl) + { + t << "\n"; + t << "# The EXCLUDE tag can be used to specify files and/or directories that should\n"; + t << "# excluded from the INPUT source files. This way you can easily exclude a \n"; + t << "# subdirectory from a directory tree whose root is specified with the INPUT tag.\n"; + t << "\n"; + } + t << "EXCLUDE =\n"; + if (!sl) + { + t << "\n"; + t << "# If the value of the INPUT tag contains directories, you can use the\n"; + t << "# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude\n"; + t << "# certain files from those directories.\n"; + t << "\n"; + } + t << "EXCLUDE_PATTERNS =\n"; + if (!sl) + { + t << "\n"; + t << "# The EXAMPLE_PATH tag can be used to specify one or more files or \n"; + t << "# directories that contain example code fragments that are included (see \n"; + t << "# the \\include command).\n"; + t << "\n"; + } + t << "EXAMPLE_PATH =\n"; + if (!sl) + { + t << "\n"; + t << "# If the value of the EXAMPLE_PATH tag contains directories, you can use the\n"; + t << "# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp \n"; + t << "# and *.h) to filter out the source-files in the directories. If left \n"; + t << "# blank all files are included.\n"; + t << "\n"; + } + t << "EXAMPLE_PATTERNS =\n"; + + if (!sl) + { + t << "\n"; + t << "# The IMAGE_PATH tag can be used to specify one or more files or \n"; + t << "# directories that contain image that are included in the documentation (see \n"; + t << "# the \\image command).\n"; + t << "\n"; + } + t << "IMAGE_PATH =\n"; + if (!sl) + { + t << "\n"; + t << "# If the value of the IMAGE_PATH tag contains directories, you can use the\n"; + t << "# IMAGE_PATTERNS tag to specify one or more wildcard pattern (like *.gif \n"; + t << "# and *.eps) to filter out the image files in the directories. If left \n"; + t << "# blank all files are included.\n"; + t << "\n"; + } + t << "IMAGE_PATTERNS =\n"; + if (!sl) + { + t << "\n"; + t << "# The INPUT_FILTER tag can be used to specify a program that doxygen should\n"; + t << "# invoke to filter for each input file. Doxygen will invoke the filter program \n"; + t << "# by executing (via popen()) the command <filter> <input-file>, where <filter>\n"; + t << "# is the value of the INPUT_FILTER tag, and <input-file> is the name of an\n"; + t << "# input file. Doxygen will then use the output that the filter program writes\n"; + t << "# to standard output.\n"; + t << "\n"; + } + t << "INPUT_FILTER =\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# configuration options related to the HTML output\n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# If the GENERATE_HTML tag is set to YES (the default) Doxygen will\n"; + t << "# generate HTML output\n"; + t << "\n"; + } + t << "GENERATE_HTML = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.\n"; + t << "# If a relative path is entered the value of OUTPUT_DIRECTORY will be\n"; + t << "# put in front of it. If left blank `html' will be used as the default path.\n"; + t << "\n"; + } + t << "HTML_OUTPUT =\n"; + if (!sl) + { + t << "\n"; + t << "# The HTML_HEADER tag can be used to specify a personal HTML header for \n"; + t << "# each generated HTML page. If it is left blank doxygen will generate a \n"; + t << "# standard header.\n"; + t << "\n"; + } + t << "HTML_HEADER =\n"; + if (!sl) + { + t << "\n"; + t << "# The HTML_FOOTER tag can be used to specify a personal HTML footer for \n"; + t << "# each generated HTML page. If it is left blank doxygen will generate a \n"; + t << "# standard footer.\n"; + t << "\n"; + } + t << "HTML_FOOTER =\n"; + if (!sl) + { + t << "\n"; + t << "# The HTML_STYLESHEET tag can be used to specify a user defined cascading\n"; + t << "# style sheet that is used by each HTML page. It can be used to \n"; + t << "# fine-tune the look of the HTML output. If the tag is left blank doxygen\n"; + t << "# will generate a default style sheet\n"; + t << "\n"; + } + t << "HTML_STYLESHEET =\n"; + if (!sl) + { + t << "\n"; + t << "# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,\n"; + t << "# files or namespaces will be aligned in HTML using tables. If set to\n"; + t << "# NO a bullet list will be used.\n"; + t << "\n"; + } + t << "HTML_ALIGN_MEMBERS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# If the GENERATE_HTMLHELP tag is set to YES, additional index files\n"; + t << "# will be generated that can be used as input for tools like the\n"; + t << "# Microsoft HTML help workshop to generate a compressed HTML help file (.chm)\n"; + t << "# of the generated HTML documentation.\n"; + t << "\n"; + } + t << "GENERATE_HTMLHELP = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index\n"; + t << "# of all compounds will be generated. Enable this if the project\n"; + t << "# contains a lot of classes, structs, unions or interfaces.\n"; + t << "\n"; + } + t << "ALPHABETICAL_INDEX = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then\n"; + t << "# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns\n"; + t << "# in which this list will be split (can be a number in the range [1..20])\n"; + t << "\n"; + } + t << "COLS_IN_ALPHA_INDEX = 5\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# configuration options related to the LaTeX output\n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will\n"; + t << "# generate Latex output.\n"; + t << "\n"; + } + t << "GENERATE_LATEX = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.\n"; + t << "# If a relative path is entered the value of OUTPUT_DIRECTORY will be\n"; + t << "# put in front of it. If left blank `latex' will be used as the default path.\n"; + t << "\n"; + } + t << "LATEX_OUTPUT =\n"; + if (!sl) + { + t << "\n"; + t << "# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact\n"; + t << "# LaTeX documents. This may be useful for small projects and may help to\n"; + t << "# save some trees in general.\n"; + t << "\n"; + } + t << "COMPACT_LATEX = NO\n"; + if (!sl) + { + t << "\n"; + t << "# The PAPER_TYPE tag can be used to set the paper type that is used\n"; + t << "# by the printer. Possible values are: a4, a4wide, letter, legal and \n"; + t << "# executive. If left blank a4wide will be used.\n"; + t << "\n"; + } + t << "PAPER_TYPE = a4wide\n"; + if (!sl) + { + t << "\n"; + t << "# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX\n"; + t << "# packages that should be included in the LaTeX output.\n"; + t << "\n"; + } + t << "EXTRA_PACKAGES =\n"; + if (!sl) + { + t << "\n"; + t << "# The LATEX_HEADER tag can be used to specify a personal LaTeX header for \n"; + t << "# the generated latex document. The header should contain everything until\n"; + t << "# the first chapter. If it is left blank doxygen will generate a \n"; + t << "# standard header. Notice: only use this tag if you know what you are doing!\n"; + t << "\n"; + } + t << "LATEX_HEADER =\n"; + if (!sl) + { + t << "\n"; + t << "# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated\n"; + t << "# is prepared for conversion to pdf (using ps2pdf). The pdf file will\n"; + t << "# contain links (just like the HTML output) instead of page references\n"; + t << "# This makes the output suitable for online browsing using a pdf viewer.\n"; + t << "\n"; + } + t << "PDF_HYPERLINKS = NO\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# configuration options related to the man page output\n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# If the GENERATE_MAN tag is set to YES (the default) Doxygen will\n"; + t << "# generate man pages\n"; + t << "\n"; + } + t << "GENERATE_MAN = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The MAN_OUTPUT tag is used to specify where the man pages will be put.\n"; + t << "# If a relative path is entered the value of OUTPUT_DIRECTORY will be\n"; + t << "# put in front of it. If left blank `man' will be used as the default path.\n"; + t << "\n"; + } + t << "MAN_OUTPUT =\n"; + if (!sl) + { + t << "\n"; + t << "# The MAN_EXTENSION tag determines the extension that is added to\n"; + t << "# the generated man pages (default is the subroutine's section .3)\n"; + t << "\n"; + } + t << "MAN_EXTENSION = .3\n"; + + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# Configuration options related to the preprocessor \n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will\n"; + t << "# evaluate all C-preprocessor directives found in the sources and include\n"; + t << "# files.\n"; + t << "\n"; + } + t << "ENABLE_PREPROCESSING = YES\n"; + if (!sl) + { + t << "\n"; + t << "# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro\n"; + t << "# names in the source code. If set to NO (the default) only conditional \n"; + t << "# compilation will be performed.\n"; + t << "\n"; + } + t << "MACRO_EXPANSION = NO\n"; + if (!sl) + { + t << "\n"; + t << "# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files\n"; + t << "# in the INCLUDE_PATH (see below) will be search if a #include is found.\n"; + t << "\n"; + } + t << "SEARCH_INCLUDES = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The INCLUDE_PATH tag can be used to specify one or more directories that\n"; + t << "# contain include files that are not input files but should be processed by\n"; + t << "# the preprocessor.\n" ; + t << "\n"; + } + t << "INCLUDE_PATH =\n"; + if (!sl) + { + t << "\n"; + t << "# The PREDEFINED tag can be used to specify one or more macro names that\n"; + t << "# are defined before the preprocessor is started (similar to the -D option of\n"; + t << "# gcc). The argument of the tag is a list of macros of the form: name\n"; + t << "# or name=definition (no spaces). If the definition and the = are \n"; + t << "# omitted =1 is assumed.\n"; + t << "\n"; + } + t << "PREDEFINED =\n"; + if (!sl) + { + t << "\n"; + t << "# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES\n"; + t << "# then the macro expansion is limited to the macros specified with the\n"; + t << "# PREDEFINED tag.\n"; + t << "\n"; + } + t << "EXPAND_ONLY_PREDEF = NO\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# Configuration options related to external references \n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# The TAGFILES tag can be used to specify one or more tagfiles. \n"; + t << "\n"; + } + t << "TAGFILES =\n"; + if (!sl) + { + t << "\n"; + t << "# When a file name is specified after GENERATE_TAGFILE, doxygen will create\n"; + t << "# a tag file that is based on the input files it reads.\n"; + t << "\n"; + } + t << "GENERATE_TAGFILE =\n"; + if (!sl) + { + t << "\n"; + t << "# If the ALLEXTERNALS tag is set to YES all external classes will be listed\n"; + t << "# in the class index. If set to NO only the inherited external classes\n"; + t << "# will be listed.\n"; + t << "\n"; + } + t << "ALLEXTERNALS = NO\n"; + if (!sl) + { + t << "\n"; + t << "# The PERL_PATH should be the absolute path and name of the perl script\n"; + t << "# interpreter (i.e. the result of `which perl').\n"; + t << "\n"; + } + t << "PERL_PATH = /usr/bin/perl\n"; + if (!sl) + { + t << "\n"; + } + t << "#---------------------------------------------------------------------------\n"; + t << "# Configuration options related to the search engine \n"; + t << "#---------------------------------------------------------------------------\n"; + if (!sl) + { + t << "\n"; + t << "# The SEARCHENGINE tag specifies whether or not a search engine should be \n"; + t << "# used. If set to NO the values of all tags below this one will be ignored.\n"; + t << "\n"; + } + t << "SEARCHENGINE = NO\n"; + if (!sl) + { + t << "\n"; + t << "# The CGI_NAME tag should be the name of the CGI script that\n"; + t << "# starts the search engine (doxysearch) with the correct parameters.\n"; + t << "# A script with this name will be generated by doxygen.\n"; + t << "\n"; + } + t << "CGI_NAME = search.cgi\n"; + if (!sl) + { + t << "\n"; + t << "# The CGI_URL tag should be the absolute URL to the directory where the\n"; + t << "# cgi binaries are located. See the documentation of your http daemon for \n"; + t << "# details.\n"; + t << "\n"; + } + t << "CGI_URL =\n"; + if (!sl) + { + t << "\n"; + t << "# The DOC_URL tag should be the absolute URL to the directory where the\n"; + t << "# documentation is located. If left blank the absolute path to the \n"; + t << "# documentation, with file:// prepended to it, will be used.\n"; + t << "\n"; + } + t << "DOC_URL =\n"; + if (!sl) + { + t << "\n"; + t << "# The DOC_ABSPATH tag should be the absolute path to the directory where the\n"; + t << "# documentation is located. If left blank the directory on the local machine\n"; + t << "# will be used.\n"; + t << "\n"; + } + t << "DOC_ABSPATH =\n"; + if (!sl) + { + t << "\n"; + t << "# The BIN_ABSPATH tag must point to the directory where the doxysearch binary\n"; + t << "# is installed.\n"; + t << "\n"; + } + t << "BIN_ABSPATH = /usr/local/bin/\n"; + if (!sl) + { + t << "\n"; + t << "# The EXT_DOC_PATHS tag can be used to specify one or more paths to \n"; + t << "# documentation generated for other projects. This allows doxysearch to search\n"; + t << "# the documentation for these projects as well.\n"; + t << "\n"; + } + t << "EXT_DOC_PATHS =\n"; +} + +void checkConfig() +{ + //if (projectName.length()>0) + //{ + // projectName[0]=toupper(projectName[0]); + //} + + if (tabSizeString.isEmpty()) + { + Config::tabSize=8; + } + else + { + bool ok; + int ts = tabSizeString.toInt(&ok); + if (!ok || ts<1 || ts>16) + { + warn("Warning: argument of TAB_SIZE is not a valid number, using tab size of 8 spaces!\n"); + ts=8; + } + Config::tabSize = ts; + } + + if (colsInAlphaIndexString.isEmpty()) + { + Config::colsInAlphaIndex=5; + } + else + { + bool ok; + int cols = colsInAlphaIndexString.toInt(&ok); + if (!ok || cols<1 || cols>20) + { + warn("Warning: argument of COLS_IN_ALPHA_INDEX is not a valid number in the range [1..20]!\n" + "Using the default of 5 columns!\n"); + cols = 5; + } + Config::colsInAlphaIndex=cols; + } + + // set default man page extension if non is given by the user + if (Config::manExtension.isEmpty()) + { + Config::manExtension=".3"; + } + + Config::paperType = Config::paperType.lower().stripWhiteSpace(); + if (Config::paperType.isEmpty()) + { + Config::paperType = "a4wide"; + } + if (Config::paperType!="a4" && Config::paperType!="a4wide" && Config::paperType!="letter" && + Config::paperType!="legal" && Config::paperType!="executive") + { + err("Error: Unknown page type specified"); + } + + Config::outputLanguage=Config::outputLanguage.stripWhiteSpace(); + if (Config::outputLanguage.isEmpty()) + { + Config::outputLanguage = "English"; +#ifndef DOXYWIZARD + setTranslator("English"); +#endif + } + else + { +#ifndef DOXYWIZARD + if (!setTranslator(Config::outputLanguage)) + { + err("Error: Output language %s not supported! Using English instead.\n", + Config::outputLanguage.data()); + } +#endif + } + + // Test to see if output directory is valid + if (Config::outputDir.isEmpty()) + Config::outputDir=QDir::currentDirPath(); + else + { + QDir dir(Config::outputDir); + if (!dir.exists()) + { + dir.setPath(QDir::currentDirPath()); + if (!dir.mkdir(Config::outputDir)) + { + err("Error: tag OUTPUT_DIRECTORY: Output directory `%s' does not " + "exist and cannot be created\n",Config::outputDir.data()); + exit(1); + } + else if (!Config::quietFlag) + { + err("Notice: Output directory `%s' does not exist. " + "I have created it for you.\n", Config::outputDir.data()); + } + dir.cd(Config::outputDir); + } + Config::outputDir=dir.absPath(); + } + + if (Config::htmlOutputDir.isEmpty() && Config::generateHtml) + { + Config::htmlOutputDir=Config::outputDir+"/html"; + } + else if (Config::htmlOutputDir && Config::htmlOutputDir[0]!='/') + { + Config::htmlOutputDir.prepend(Config::outputDir+'/'); + } + QDir htmlDir(Config::htmlOutputDir); + if (!htmlDir.exists() && !htmlDir.mkdir(Config::htmlOutputDir)) + { + err("Could not create output directory %s\n",Config::htmlOutputDir.data()); + exit(1); + } + + if (Config::latexOutputDir.isEmpty() && Config::generateLatex) + { + Config::latexOutputDir=Config::outputDir+"/latex"; + } + else if (Config::latexOutputDir && Config::latexOutputDir[0]!='/') + { + Config::latexOutputDir.prepend(Config::outputDir+'/'); + } + QDir latexDir(Config::latexOutputDir); + if (!latexDir.exists() && !latexDir.mkdir(Config::latexOutputDir)) + { + err("Could not create output directory %s\n",Config::latexOutputDir.data()); + exit(1); + } + + if (Config::manOutputDir.isEmpty() && Config::generateMan) + { + Config::manOutputDir=Config::outputDir+"/man"; + } + else if (Config::manOutputDir && Config::manOutputDir[0]!='/') + { + Config::manOutputDir.prepend(Config::outputDir+'/'); + } + QDir manDir(Config::manOutputDir); + if (!manDir.exists() && !manDir.mkdir(Config::manOutputDir)) + { + err("Could not create output directory %s\n",Config::manOutputDir.data()); + exit(1); + } + + // Test to see if HTML header is valid + if (Config::headerFile.length()>0) + { + QFileInfo fi(Config::headerFile); + if (!fi.exists()) + { + err("Error: tag HTML_HEADER: header file `%s' " + "does not exist\n",Config::headerFile.data()); + exit(1); + } + } + // Test to see if HTML footer is valid + if (Config::footerFile.length()>0) + { + QFileInfo fi(Config::footerFile); + if (!fi.exists()) + { + err("Error: tag HTML_FOOTER: footer file `%s' " + "does not exist\n",Config::footerFile.data()); + exit(1); + } + } + // Test to see if LaTeX header is valid + if (Config::latexHeaderFile.length()>0) + { + QFileInfo fi(Config::latexHeaderFile); + if (!fi.exists()) + { + err("Error: tag LATEX_HEADER: header file `%s' " + "does not exist\n",Config::latexHeaderFile.data()); + exit(1); + } + } + // check include path + char *s=Config::includePath.first(); + while (s) + { + QFileInfo fi(s); + if (!fi.exists()) err("Warning: tag INCLUDE_PATH: include path `%s' " + "does not exist\n",s); +#ifndef DOXYWIZARD + addSearchDir(fi.absFilePath()); +#endif + s=Config::includePath.next(); + } + // check input + if (Config::inputSources.count()==0) + { + err("Error: tag INPUT: no input files specified after the INPUT tag.\n"); + exit(1); + } + else + { + s=Config::inputSources.first(); + while (s) + { + QFileInfo fi(s); + if (!fi.exists()) + { + err("Error: tag INPUT: input source `%s' does not exist\n",s); + exit(1); + } + s=Config::inputSources.next(); + } + } + + // add default pattern if needed + if (Config::filePatternList.count()==0) + { + Config::filePatternList.append("*"); + } + + // add default pattern if needed + if (Config::examplePatternList.count()==0) + { + Config::examplePatternList.append("*"); + } + + // add default pattern if needed + if (Config::imagePatternList.count()==0) + { + Config::imagePatternList.append("*"); + } + + // more checks needed if and only if the search engine is enabled. + if (Config::searchEngineFlag) + { + // check cgi name + if (Config::cgiName.length()==0) + { + err("Error: tag CGI_NAME: no cgi script name after the CGI_NAME tag.\n"); + exit(1); + } + // check cgi URL + if (Config::cgiURL.length()==0) + { + err("Error: tag CGI_URL: no URL to cgi directory specified.\n"); + exit(1); + } + else if (Config::cgiURL.left(7)!="http://") + { + err("Error: tag CGI_URL: URL to cgi directory is invalid (must " + "start with http://).\n"); + exit(1); + } + // check documentation URL + if (Config::docURL.length()==0) + { + Config::docURL = Config::outputDir.copy().prepend("file://").append("html"); + } + else if (Config::docURL.left(7)!="http://" && Config::docURL.left(7)!="file://") + { + err("Error: tag DOC_URL: URL to documentation is invalid or " + "not absolute.\n"); + exit(1); + } + // check absolute documentation path + if (Config::docAbsPath.length()==0) + { + Config::docAbsPath = Config::outputDir+"/html"; + } + else if (Config::docAbsPath[0]!='/' && Config::docAbsPath[1]!=':') + { + err("Error: tag DOC_ABSPATH: path is not absolute!\n"); + exit(1); + } + // check path to doxysearch + if (Config::binAbsPath.length()==0) + { + err("Error: tag BIN_ABSPATH: no absolute path to doxysearch " + "specified.\n"); + exit(1); + } + else if (Config::binAbsPath[0]!='/' && Config::binAbsPath[1]!=':') + { + err("Error: tag BIN_ABSPATH: path is not absolute!\n"); + exit(1); + } + + // check perl path + bool found=FALSE; + if (Config::perlPath.length()==0) + { + QFileInfo fi; + fi.setFile("/usr/bin/perl"); + if (fi.exists()) + { + Config::perlPath="/usr/bin/perl"; + found=TRUE; + } + else + { + fi.setFile("/usr/local/bin/perl"); + if (fi.exists()) + { + Config::perlPath="/usr/local/bin/perl"; + found=TRUE; + } + } + } + if (!found) + { + QFileInfo fi(Config::perlPath); + if (!fi.exists()) + { + warn("Warning: tag PERL_PATH: perl interpreter not found at default or" + "user specified (%s) location\n", + Config::perlPath.data()); + } + } + } +} + +void parseConfig(const QCString &s) +{ + inputString = s; + inputPosition = 0; + yyLineNr = 1; + configYYrestart( configYYin ); + BEGIN( Start ); + configYYlex(); +} + +//extern "C" { // some bogus code to keep the compiler happy +// int configYYwrap() { return 1 ; } +//} |