diff options
Diffstat (limited to 'addon/configgen')
-rw-r--r-- | addon/configgen/config_templ.l | 25 | ||||
-rw-r--r-- | addon/configgen/configgen.cpp | 13 |
2 files changed, 38 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l index 69886d7..6b6b248 100644 --- a/addon/configgen/config_templ.l +++ b/addon/configgen/config_templ.l @@ -519,6 +519,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) diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp index 6f62235..69dcca3 100644 --- a/addon/configgen/configgen.cpp +++ b/addon/configgen/configgen.cpp @@ -1046,6 +1046,19 @@ void init() "will result in a user defined paragraph with heading \"Side Effects:\". \n" "You can put \\n's in the value part of an alias to insert newlines. \n" ); + ConfigInt::add( "maxInitLines", + "MAX_INITIALIZER_LINES", + "30", + "when do we hide values of variable and defines?", + "The MAX_INITIALIZER_LINES tag determines the maximum number of lines \n" + "the initial value of a variable or define consist of for it to appear in \n" + "the documentation. If the initializer consists of more lines than specified \n" + "here it will be hidden. Use a value of 0 to hide initializers completely. \n" + "The appearance of the initializer of individual variables and defines in the \n" + "documentation can be controlled using \\showinitializer or \\hideinitializer \n" + "command in the documentation regardless of this setting. \n", + 0,10000 + ); ConfigBool::add( "optimizeForCFlag", "OPTIMIZE_OUTPUT_FOR_C", "FALSE", |