diff options
author | Daniel Elstner <danielk@openismus.com> | 2009-08-18 16:22:04 +0200 |
---|---|---|
committer | Daniel Elstner <danielk@openismus.com> | 2009-08-18 16:22:04 +0200 |
commit | 3a7b67111ca50d612be4b83aaf8ad9b3e326da5f (patch) | |
tree | 7c2549e151846cc9b0636d0f1c7a29895e1aa585 /tools | |
parent | 7ba424569975a0ddd9fc6d34c3f3eda6d1dd05a8 (diff) | |
download | glibmm-3a7b67111ca50d612be4b83aaf8ad9b3e326da5f.tar.gz |
Implement parametric Doxygen alias @since{m,n}
* docs/reference/Doxyfile.in (ALIASES): Define a parametrized alias
@since{major,minor} to replace the old @newin?p?* aliases which had
to be defined manually for every version number used.
(PREDEFINED): Predefine G_GNUC_NORETURN, G_GNUC_NULL_TERMINATED and
G_GNUC_PURE to the empty expansion. Remove GTKMM_* macros.
* tools/pm/DocsParser.pm (convert_tags_to_doxygen): Change "Since:"
substitution to output the new generic @since alias.
* {glib,gio}/src/*.hg, {glib,gio}/{glib,gio}mm/*.h: Change all uses
of @newin?p?* to @since{major,minor}.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pm/DocsParser.pm | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/pm/DocsParser.pm b/tools/pm/DocsParser.pm index c78b6711..70bcf0da 100644 --- a/tools/pm/DocsParser.pm +++ b/tools/pm/DocsParser.pm @@ -371,17 +371,8 @@ sub convert_tags_to_doxygen($) # Remove all para tags (from tmpl sgml files). s"</?para>""g; - # Use our doxgen since/newin tags: - # TODO: Do this generically, regardless of the number: - s"Since: 2\.2"\@newin2p2"mg; - s"Since: 2\.4"\@newin2p4"mg; - s"Since: 2\.6"\@newin2p6"mg; - s"Since: 2\.8"\@newin2p8"mg; - s"Since: 2\.10"\@newin2p10"mg; - s"Since: 2\.12"\@newin2p12"mg; - s"Since: 2\.14"\@newin2p14"mg; - s"Since: 2\.16"\@newin2p16"mg; - s"Since: 2\.18"\@newin2p18"mg; + # Use our Doxygen @since alias: + s/\bSince:\s*(\d+)\.(\d+)\b/\@since{$1,$2}/g; s"\b->\b"->"g; |