summaryrefslogtreecommitdiffstats
path: root/addon/configgen/configgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-31 18:09:08 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2000-07-31 18:09:08 (GMT)
commite139c0246413d3803028572dcafe9f065f4c9eab (patch)
tree8b6d1855a77a3cfa84674b2918bdb7c6478b94ae /addon/configgen/configgen.cpp
parent3876f92c80e9cc62af30916f0ccdeb83cdc2ff05 (diff)
downloadDoxygen-e139c0246413d3803028572dcafe9f065f4c9eab.zip
Doxygen-e139c0246413d3803028572dcafe9f065f4c9eab.tar.gz
Doxygen-e139c0246413d3803028572dcafe9f065f4c9eab.tar.bz2
Release-1.2.0-20000731
Diffstat (limited to 'addon/configgen/configgen.cpp')
-rw-r--r--addon/configgen/configgen.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp
index 3fd3c1b..eeba328 100644
--- a/addon/configgen/configgen.cpp
+++ b/addon/configgen/configgen.cpp
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
-#define MAX_OPTION_LENGTH 22
+#define MAX_OPTION_LENGTH 23
static QString spaces=" ";
@@ -259,10 +259,17 @@ class ConfigList : public ConfigOption
const char * short_,const char * long_,WidgetType w=String);
virtual void printRules(QTextStream &t)
{
+ // rule for assignment
t << "<Start>\"" << cfgName << "\"[ \\t]*\"=\"";
t << spaces.left(MAX_OPTION_LENGTH-cfgName.length());
t << "{ BEGIN(GetStrList); l=&Config::" << varName;
t << "; l->clear(); elemStr=\"\"; }" << endl;
+
+ // rule for appending
+ t << "<Start>\"" << cfgName << "\"[ \\t]*\"+=\"";
+ t << spaces.left(MAX_OPTION_LENGTH-cfgName.length()-1);
+ t << "{ BEGIN(GetStrList); l=&Config::" << varName;
+ t << "; elemStr=\"\"; }" << endl;
}
virtual void printInit(QTextStream &t)
{