diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-08-29 16:55:26 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2000-08-29 16:55:26 (GMT) |
commit | 26ded37d33ae68d85d5ae4b2e5555ff6ed944a44 (patch) | |
tree | 6cbbe764d1beb5389d2e9247c672b7af04684260 /addon | |
parent | 8726fc640f878611e395b1d821661cff56a49e13 (diff) | |
download | Doxygen-26ded37d33ae68d85d5ae4b2e5555ff6ed944a44.zip Doxygen-26ded37d33ae68d85d5ae4b2e5555ff6ed944a44.tar.gz Doxygen-26ded37d33ae68d85d5ae4b2e5555ff6ed944a44.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"); //----------------------------------------------------------------------------------------------- |