summaryrefslogtreecommitdiffstats
path: root/src/config.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-04 18:02:44 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2001-02-04 18:02:44 (GMT)
commit1b90a1cf58b6b94d00e28d8212828956e8f9d177 (patch)
tree0079dfe633e79bae80c0743850c85fb68f276f60 /src/config.l
parentf676cb79536e8d4d7a7dc2fb83b757065939eefb (diff)
downloadDoxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.zip
Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.gz
Doxygen-1b90a1cf58b6b94d00e28d8212828956e8f9d177.tar.bz2
Release-1.2.5
Diffstat (limited to 'src/config.l')
-rw-r--r--src/config.l47
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)