diff options
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/src/config.l b/src/config.l index 77cff87..6786b88 100644 --- a/src/config.l +++ b/src/config.l @@ -1,4 +1,4 @@ -/* This file was generated by configgen on Sat Jan 27 18:27:33 2001 +/* This file was generated by configgen on Sat Feb 3 18:53:38 2001 * from config_templ.l * * DO NOT EDIT! @@ -107,6 +107,7 @@ QStrList Config::sectionFilterList; bool Config::generateTodoList = TRUE; bool Config::generateTestList = TRUE; QStrList Config::aliasList; +int Config::maxInitLines = 30; bool Config::optimizeForCFlag = FALSE; bool Config::quietFlag = FALSE; bool Config::warningFlag = TRUE; @@ -214,6 +215,7 @@ static QStack<ConfigFileState> includeStack; static int includeDepth; static QCString tabSizeString; +static QCString maxInitLinesString; static QCString colsInAlphaIndexString; static QCString enumValuesPerLineString; static QCString treeViewWidthString; @@ -379,6 +381,7 @@ static void readIncludeFile(const char *incName) <Start>"GENERATE_TESTLIST"[ \t]*"=" { BEGIN(GetBool); b=&Config::generateTestList; } <Start>"ALIASES"[ \t]*"=" { BEGIN(GetStrList); l=&Config::aliasList; l->clear(); elemStr=""; } <Start>"ALIASES"[ \t]*"+=" { BEGIN(GetStrList); l=&Config::aliasList; elemStr=""; } +<Start>"MAX_INITIALIZER_LINES"[ \t]*"=" { BEGIN(GetString); s=&maxInitLinesString; s->resize(0); } <Start>"OPTIMIZE_OUTPUT_FOR_C"[ \t]*"=" { BEGIN(GetBool); b=&Config::optimizeForCFlag; } <Start>"QUIET"[ \t]*"=" { BEGIN(GetBool); b=&Config::quietFlag; } <Start>"WARNINGS"[ \t]*"=" { BEGIN(GetBool); b=&Config::warningFlag; } @@ -628,6 +631,7 @@ void dumpConfig() is=Config::aliasList.next(); } } + printf("maxInitLines=`%d'\n",Config::maxInitLines); printf("optimizeForCFlag=`%d'\n",Config::optimizeForCFlag); printf("# configuration options related to warning and progress messages\n"); printf("quietFlag=`%d'\n",Config::quietFlag); @@ -857,6 +861,7 @@ void Config::init() Config::generateTodoList = TRUE; Config::generateTestList = TRUE; Config::aliasList.clear(); + Config::maxInitLines = 30; Config::optimizeForCFlag = FALSE; Config::quietFlag = FALSE; Config::warningFlag = TRUE; @@ -1384,6 +1389,21 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t << "\n"; + t << "# The MAX_INITIALIZER_LINES tag determines the maximum number of lines \n"; + t << "# the initial value of a variable or define consist of for it to appear in \n"; + t << "# the documentation. If the initializer consists of more lines than specified \n"; + t << "# here it will be hidden. Use a value of 0 to hide initializers completely. \n"; + t << "# The appearance of the initializer of individual variables and defines in the \n"; + t << "# documentation can be controlled using \\showinitializer or \\hideinitializer \n"; + t << "# command in the documentation regardless of this setting. \n"; + t << "\n"; + } + t << "MAX_INITIALIZER_LINES = "; + writeIntValue(t,Config::maxInitLines); + t << "\n"; + if (!sl) + { + t << "\n"; t << "# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources \n"; t << "# only. Doxygen will then generate output that is more tailored for C. \n"; t << "# For instance some of the names that are used will be different. The list \n"; @@ -2430,6 +2450,31 @@ void configStrToVal() } Config::maxDotGraphHeight=height; } + + if (maxInitLinesString.isEmpty()) + { + Config::maxInitLines=30; + } + else + { + bool ok; + int maxLines =maxInitLinesString.toInt(&ok); + if (!ok) + { + warn_cont("Warning: argument of MAX_DOT_GRAPH_WIDTH is not a valid number in the range [100..30000]!\n" + "Using the default of 1024 pixels!\n"); + maxLines=30; + } + else if (maxLines<0) // clip to lower bound + { + maxLines=0; + } + else if (maxLines>10000) // clip to upper bound + { + maxLines=10000; + } + Config::maxInitLines=maxLines; + } } static void substEnvVarsInString(QCString &s) |