diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-08-29 16:55:26 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-08-29 16:55:26 (GMT) |
commit | 7a048b942ae75eae857fb7f7466926b5749799c0 (patch) | |
tree | 6cbbe764d1beb5389d2e9247c672b7af04684260 /addon | |
parent | 5ce25000172e185e0ca5b9f20538f80cbbfe0b0e (diff) | |
download | Doxygen-7a048b942ae75eae857fb7f7466926b5749799c0.zip Doxygen-7a048b942ae75eae857fb7f7466926b5749799c0.tar.gz Doxygen-7a048b942ae75eae857fb7f7466926b5749799c0.tar.bz2 |
Release-1.2.1-20000829
Diffstat (limited to 'addon')
-rw-r--r-- | addon/configgen/config_templ.l | 14 | ||||
-rw-r--r-- | addon/configgen/configgen.cpp | 12 |
2 files changed, 26 insertions, 0 deletions
diff --git a/addon/configgen/config_templ.l b/addon/configgen/config_templ.l index aab5755..98a688f 100644 --- a/addon/configgen/config_templ.l +++ b/addon/configgen/config_templ.l @@ -812,6 +812,20 @@ void checkConfig() #endif s=Config::includePath.next(); } + + // check aliases + s=Config::aliasList.first(); + while (s) + { + QRegExp re("[a-z_A-Z][a-z_A-Z0-9]*[ \t]*="); + QCString alias=s; + alias=alias.stripWhiteSpace(); + if (alias.find(re)!=0) + { + err("Illegal alias format `%s'. Use \"name=value\"\n",alias.data()); + } + s=Config::aliasList.next(); + } // check dot path if (!Config::dotPath.isEmpty()) diff --git a/addon/configgen/configgen.cpp b/addon/configgen/configgen.cpp index 4367f20..48146ee 100644 --- a/addon/configgen/configgen.cpp +++ b/addon/configgen/configgen.cpp @@ -1014,6 +1014,18 @@ void init() "disable (NO) the test list. This list is created by putting \\test \n" "commands in the documentation.\n" ); + ConfigList::add( "aliasList", + "ALIASES", + "", + "list of aliases", + "This tag can be used to specify a number of aliases that acts \n" + "as commands in the documentation. An alias has the form \"\\name=value\". \n" + "For example adding \"sideeffect=\\par Side Effects:\\n\" will allow you to \n" + "put the command \\sideeffect (or @sideeffect) in the documentation, which \n" + "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" + "Predefined commands cannot be overwritten using aliases. \n" + ); //----------------------------------------------------------------------------------------------- ConfigInfo::add( "Messages","configuration options related to warning and progress messages"); //----------------------------------------------------------------------------------------------- |