config.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <qfileinfo.h>
#include <qfile.h>
#include <qdir.h>
#include <qtextstream.h>
#include <qregexp.h>
#include <qptrstack.h>
#include "config.h"
#include "version.h"
#include "lang_cfg.h"
Include dependency graph for config.cpp:

Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | ConfigFileState |
Defines | |
#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 |
#define | FLEX_SCANNER |
#define | YY_FLEX_MAJOR_VERSION 2 |
#define | YY_FLEX_MINOR_VERSION 5 |
#define | yyconst |
#define | YY_PROTO(proto) () |
#define | YY_NULL 0 |
#define | YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
#define | BEGIN yy_start = 1 + 2 * |
#define | YY_START ((yy_start - 1) / 2) |
#define | YYSTATE YY_START |
#define | YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
#define | YY_NEW_FILE yyrestart( yyin ) |
#define | YY_END_OF_BUFFER_CHAR 0 |
#define | YY_BUF_SIZE 16384 |
#define | EOB_ACT_CONTINUE_SCAN 0 |
#define | EOB_ACT_END_OF_FILE 1 |
#define | EOB_ACT_LAST_MATCH 2 |
#define | yyless(n) |
#define | unput(c) yyunput( c, yytext_ptr ) |
#define | YY_BUFFER_NEW 0 |
#define | YY_BUFFER_NORMAL 1 |
#define | YY_BUFFER_EOF_PENDING 2 |
#define | YY_CURRENT_BUFFER yy_current_buffer |
#define | YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
#define | yy_new_buffer yy_create_buffer |
#define | yy_set_interactive(is_interactive) |
#define | yy_set_bol(at_bol) |
#define | YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
#define | yywrap() 1 |
#define | YY_SKIP_YYWRAP |
#define | yytext_ptr yytext |
#define | YY_DO_BEFORE_ACTION |
#define | YY_NUM_RULES 24 |
#define | YY_END_OF_BUFFER 25 |
#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 |
#define | INITIAL 0 |
#define | Config_getString(val) getString(__FILE__,__LINE__,val) |
#define | Config_getInt(val) getInt(__FILE__,__LINE__,val) |
#define | Config_getList(val) getList(__FILE__,__LINE__,val) |
#define | Config_getEnum(val) getEnum(__FILE__,__LINE__,val) |
#define | Config_getBool(val) getBool(__FILE__,__LINE__,val) |
#define | MAX_INCLUDE_DEPTH 10 |
#define | YY_NEVER_INTERACTIVE 1 |
#define | YY_INPUT(buf, result, max_size) result=yyread(buf,max_size); |
#define | YY_NO_UNPUT 1 |
#define | Start 1 |
#define | SkipComment 2 |
#define | SkipInvalid 3 |
#define | GetString 4 |
#define | GetBool 5 |
#define | GetStrList 6 |
#define | GetQuotedString 7 |
#define | GetEnvVar 8 |
#define | Include 9 |
#define | YY_NO_PUSH_STATE 1 |
#define | YY_NO_POP_STATE 1 |
#define | YY_NO_TOP_STATE 1 |
#define | YY_READ_BUF_SIZE 8192 |
#define | ECHO (void) fwrite( yytext, yyleng, 1, yyout ) |
#define | yyterminate() return YY_NULL |
#define | YY_START_STACK_INCR 25 |
#define | YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
#define | YY_DECL int yylex YY_PROTO(( void )) |
#define | YY_BREAK break; |
#define | YY_RULE_SETUP YY_USER_ACTION |
#define | YY_EXIT_FAILURE 2 |
#define | yyless(n) |
#define | PUTENV putenv |
#define | SEP ":" |
Typedefs | |
typedef yy_buffer_state * | YY_BUFFER_STATE |
typedef unsigned int | yy_size_t |
typedef unsigned char | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | configYYrestart () |
void | configYY_switch_to_buffer () |
void | configYY_load_buffer_state () |
YY_BUFFER_STATE | configYY_create_buffer () |
void | configYY_delete_buffer () |
void | configYY_init_buffer () |
void | configYY_flush_buffer () |
YY_BUFFER_STATE | configYY_scan_buffer () |
YY_BUFFER_STATE | configYY_scan_string () |
YY_BUFFER_STATE | configYY_scan_bytes () |
void * | yy_flex_alloc () |
void * | yy_flex_realloc () |
void | yy_flex_free () |
yy_state_type | yy_get_previous_state () |
yy_state_type | yy_try_NUL_trans () |
int | yy_get_next_buffer () |
void | yy_fatal_error () |
void | config_err (const char *fmt,...) |
void | config_warn (const char *fmt,...) |
int | yyread (char *buf, int max_size) |
FILE * | tryPath (const char *path, const char *fileName) |
void | substEnvVarsInStrList (QStrList &sl) |
void | substEnvVarsInString (QCString &s) |
FILE * | findFile (const char *fileName) |
void | readIncludeFile (const char *incName) |
int | input () |
int | configYYlex () |
yy_state_type | yy_try_NUL_trans (yy_current_state) yy_state_type yy_current_state |
Variables | |
int | configYYleng |
FILE * | configYYin = (FILE *) 0 * configYYout = (FILE *) 0 |
FILE * | configYYout |
YY_BUFFER_STATE | yy_current_buffer = 0 |
char | yy_hold_char |
int | yy_n_chars |
char * | yy_c_buf_p = (char *) 0 |
int | yy_init = 1 |
int | yy_start = 0 |
int | yy_did_buffer_switch_on_eof |
char * | configYYtext |
short int | yy_accept [100] |
int | yy_ec [256] |
int | yy_meta [29] |
short int | yy_base [112] |
short int | yy_def [112] |
short int | yy_nxt [437] |
short int | yy_chk [437] |
yy_state_type | yy_last_accepting_state |
char * | yy_last_accepting_cpos |
const char * | inputString |
int | inputPosition |
int | yyLineNr |
QCString | yyFileName |
QCString | tmpString |
QCString * | s = 0 |
bool * | b = 0 |
QStrList * | l = 0 |
int | lastState |
QCString | elemStr |
QCString | includeName |
QStrList | includePathList |
QPtrStack< ConfigFileState > | includeStack |
int | includeDepth |
QCString | tabSizeString |
QCString | maxInitLinesString |
QCString | colsInAlphaIndexString |
QCString | enumValuesPerLineString |
QCString | treeViewWidthString |
QCString | maxDotGraphWidthString |
QCString | maxDotGraphHeightString |
Config * | config |
int | size |
FILE * | file |
int | len |
Define Documentation
|
Definition at line 96 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 559 of file config.cpp. Referenced by DoxygenPart::slotDoxClean(), and DoxygenPart::slotDoxygen(). |
|
Definition at line 558 of file config.cpp. |
|
Definition at line 556 of file config.cpp. |
|
Definition at line 557 of file config.cpp. |
|
Definition at line 555 of file config.cpp. Referenced by DoxygenPart::slotDoxClean(), and DoxygenPart::slotDoxygen(). |
|
Definition at line 1018 of file config.cpp. |
|
Definition at line 121 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 122 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 123 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 24 of file config.cpp. |
|
Definition at line 929 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 935 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 933 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 927 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 931 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 937 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 511 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 576 of file config.cpp. Referenced by readIncludeFile(). |
|
|
|
Definition at line 505 of file config.cpp. |
|
|
|
Definition at line 923 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 925 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 921 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 152 of file config.cpp. |
|
Definition at line 279 of file config.cpp. |
|
Definition at line 1077 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 114 of file config.cpp. Referenced by configYYlex(), and readIncludeFile(). |
|
Definition at line 215 of file config.cpp. |
|
Definition at line 203 of file config.cpp. |
|
Definition at line 204 of file config.cpp. |
|
Definition at line 1 of file config.cpp. Referenced by configYYlex(), and readIncludeFile(). |
|
Definition at line 224 of file config.cpp. |
|
Definition at line 1065 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 2 of file config.cpp. Referenced by configYYlex(). |
|
Value: yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; Definition at line 298 of file config.cpp. |
|
Definition at line 306 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 111 of file config.cpp. |
|
|
|
Definition at line 1058 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 6 of file config.cpp. |
|
Definition at line 25 of file config.cpp. |
|
Definition at line 26 of file config.cpp. |
|
Definition at line 253 of file config.cpp. |
|
Definition at line 8 of file config.cpp. |
|
Definition at line 7 of file config.cpp. |
|
Definition at line 817 of file config.cpp. Referenced by yy_get_next_buffer(). |
|
Definition at line 9 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 507 of file config.cpp. Referenced by yy_get_next_buffer(). |
|
Definition at line 577 of file config.cpp. |
|
Definition at line 263 of file config.cpp. |
|
Definition at line 109 of file config.cpp. |
|
Definition at line 988 of file config.cpp. |
|
Definition at line 987 of file config.cpp. |
|
Definition at line 989 of file config.cpp. |
|
Definition at line 920 of file config.cpp. |
|
Definition at line 83 of file config.cpp. |
|
Definition at line 305 of file config.cpp. |
|
Definition at line 79 of file config.cpp. |
|
Definition at line 1009 of file config.cpp. |
|
Definition at line 508 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 1080 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 90 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 3 of file config.cpp. |
|
Definition at line 5 of file config.cpp. |
|
Definition at line 4 of file config.cpp. |
|
Value: { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } Definition at line 272 of file config.cpp. |
|
Value: { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } Definition at line 265 of file config.cpp. |
|
Definition at line 283 of file config.cpp. |
|
Definition at line 102 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 1053 of file config.cpp. |
|
Definition at line 106 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 10 of file config.cpp. Referenced by configYYlex(), and readIncludeFile(). |
|
Definition at line 72 of file config.cpp. |
|
Definition at line 11 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 12 of file config.cpp. |
|
Value: 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 ) Definition at line 141 of file config.cpp. |
|
Value: 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 ) Definition at line 141 of file config.cpp. |
|
Definition at line 13 of file config.cpp. |
|
Definition at line 506 of file config.cpp. |
|
Definition at line 14 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 15 of file config.cpp. Referenced by yy_get_next_buffer(). |
|
Definition at line 103 of file config.cpp. |
|
Definition at line 1048 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 16 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 288 of file config.cpp. Referenced by configYYlex(), yy_get_next_buffer(), and yy_get_previous_state(). |
|
Definition at line 282 of file config.cpp. Referenced by configYYlex(). |
Typedef Documentation
|
Definition at line 116 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 284 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 158 of file config.cpp. |
|
Definition at line 286 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
Function Documentation
|
Definition at line 561 of file config.cpp. Referenced by configYYlex(), Config::getBool(), Config::getEnum(), Config::getInt(), Config::getList(), Config::getString(), readIncludeFile(), and tryPath(). |
|
Definition at line 568 of file config.cpp. Referenced by configYYlex(), ConfigBool::convertStrToVal(), and ConfigInt::convertStrToVal(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 856 of file config.cpp. References includePathList, s, substEnvVarsInStrList(), and tryPath(). Referenced by readIncludeFile(). |
|
Referenced by AppWizardDialog::copyFile(). |
|
Definition at line 870 of file config.cpp. References config_err(), ConfigFileState::fileName, ConfigFileState::filePtr, findFile(), includeDepth, includeStack, ConfigFileState::lineNr, MAX_INCLUDE_DEPTH, ConfigFileState::newState, ConfigFileState::oldState, substEnvVarsInString(), YY_BUF_SIZE, yy_create_buffer, yy_switch_to_buffer, and yyFileName. Referenced by configYYlex(). |
|
Referenced by readIncludeFile(). |
|
Referenced by findFile(). |
|
Definition at line 840 of file config.cpp. References config_err(). Referenced by findFile(). |
|
|
|
|
|
|
|
Referenced by yy_get_next_buffer(). |
|
Definition at line 1607 of file config.cpp. References b, yy_buffer_state::yy_buf_size, YY_BUFFER_STATE, yy_buffer_state::yy_buffer_status, yy_c_buf_p, yy_buffer_state::yy_ch_buf, yy_current_buffer, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_flex_realloc(), YY_INPUT, YY_MORE_ADJ, yy_buffer_state::yy_n_chars, yy_n_chars, yyin, yyrestart, and yytext_ptr. Referenced by configYYlex(). |
|
Definition at line 1739 of file config.cpp. References yy_accept, yy_base, YY_CHAR, yy_chk, yy_def, yy_ec, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, yy_nxt, YY_SC_TO_UI, yy_state_type, and yytext_ptr. Referenced by configYYlex(). |
|
|
|
Referenced by configYYlex(). |
|
Definition at line 819 of file config.cpp. References includeStack, inputPosition, and inputString. |
Variable Documentation
|
Definition at line 795 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 806 of file config.cpp. |
|
|
Definition at line 285 of file config.cpp. |
|
Definition at line 233 of file config.cpp. |
|
|
|
Definition at line 509 of file config.cpp. |
|
Definition at line 798 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 807 of file config.cpp. |
|
|
Definition at line 802 of file config.cpp. Referenced by configYYlex(), and readIncludeFile(). |
|
Definition at line 799 of file config.cpp. |
|
Definition at line 800 of file config.cpp. Referenced by findFile(). |
|
Definition at line 801 of file config.cpp. Referenced by configYYlex(), readIncludeFile(), and yyread(). |
|
Definition at line 790 of file config.cpp. Referenced by yyread(). |
|
Definition at line 789 of file config.cpp. Referenced by yyread(). |
|
Definition at line 796 of file config.cpp. Referenced by CppCodeCompletion::computeContext(), configYYlex(), TagCreator::parseFunctionArguments(), StoreWalker::parseFunctionArguments(), TagCreator::parseTypedef(), StoreWalker::parseTypedef(), and ConfigOption::writeStringList(). |
|
Definition at line 797 of file config.cpp. Referenced by configYYlex(). |
|
|
Definition at line 810 of file config.cpp. |
|
Definition at line 809 of file config.cpp. |
|
Definition at line 805 of file config.cpp. |
|
|
|
Definition at line 804 of file config.cpp. |
|
Definition at line 793 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 808 of file config.cpp. |
|
Initial value: { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 22, 23, 22, 22, 2, 8, 22, 8, 19, 22, 9, 13, 12, 2, 12, 12, 17, 18, 11, 10, 18, 18, 16, 14, 14, 16, 16, 7, 22, 7, 7, 0, 21, 0, 8, 0, 0, 0, 8, 3, 0, 20, 12, 12, 17, 18, 11, 18, 15, 7, 0, 7, 0, 0, 4, 12, 18, 7, 7, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 5, 0 } Definition at line 307 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Initial value: { 0, 0, 1, 29, 0, 55, 56, 82, 108, 135, 162, 190, 0, 217, 244, 58, 65, 66, 68, 271, 298, 145, 408, 408, 3, 117, 408, 0, 125, 6, 408, 7, 408, 408, 0, 0, 15, 115, 0, 0, 133, 408, 18, 107, 408, 408, 408, 62, 106, 0, 0, 70, 104, 73, 408, 122, 0, 109, 93, 118, 95, 408, 105, 408, 0, 118, 0, 0, 123, 116, 408, 0, 117, 113, 94, 105, 408, 92, 91, 408, 90, 408, 82, 0, 0, 0, 75, 66, 62, 102, 13, 408, 41, 48, 5, 9, 89, 113, 408, 408, 326, 334, 342, 350, 358, 360, 367, 375, 4, 383, 391, 399 } Definition at line 361 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 236 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 447 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 218 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Initial value: { 0, 100, 100, 99, 3, 100, 100, 100, 100, 101, 101, 99, 11, 102, 102, 103, 103, 100, 100, 104, 104, 99, 99, 99, 99, 99, 99, 105, 99, 106, 99, 99, 99, 99, 107, 107, 107, 107, 108, 109, 99, 99, 109, 109, 99, 99, 99, 99, 99, 110, 111, 110, 110, 99, 99, 99, 105, 99, 99, 99, 106, 99, 99, 99, 107, 107, 108, 109, 99, 109, 99, 110, 111, 110, 99, 99, 99, 107, 109, 99, 110, 99, 99, 107, 109, 110, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 0, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99 } Definition at line 378 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 243 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 322 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 228 of file config.cpp. |
|
Definition at line 237 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 500 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 499 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Initial value: { 0, 1, 2, 3, 4, 3, 5, 6, 7, 7, 6, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 7, 8, 8, 1 } Definition at line 354 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 230 of file config.cpp. Referenced by configYYlex(), and yy_get_next_buffer(). |
|
Definition at line 395 of file config.cpp. Referenced by configYYlex(), and yy_get_previous_state(). |
|
Definition at line 238 of file config.cpp. Referenced by configYYlex(). |
|
Definition at line 792 of file config.cpp. Referenced by configYYlex(), and readIncludeFile(). |
|
Definition at line 791 of file config.cpp. Referenced by configYYlex(). |