[glibmm] gmmproc: Improve the search for documentation of enums.



commit 8d4160aa7c2b696224cdd3eb4848ee56625392df
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Mon Jan 7 12:51:33 2013 +0100

    gmmproc: Improve the search for documentation of enums.
    
    * tools/pm/Enum.pm, build_element_list(): Search for value documentation
    before custom substitutions are applied to the element name. Bug #544694.

 ChangeLog        |    7 +++++++
 tools/pm/Enum.pm |    8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fd83066..b362104 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-01-07  Kjell Ahlstedt  <kjell ahlstedt bredband net>
+
+	gmmproc: Improve the search for documentation of enums.
+
+	* tools/pm/Enum.pm, build_element_list(): Search for value documentation
+	before custom substitutions are applied to the element name. Bug #544694.
+
 2013-01-03  Josà Alburquerque  <jaalburquerque gmail com>
 
 	giomm: Add the TlsConnection class.
diff --git a/tools/pm/Enum.pm b/tools/pm/Enum.pm
index 20b1b6d..6f3bf21 100644
--- a/tools/pm/Enum.pm
+++ b/tools/pm/Enum.pm
@@ -317,16 +317,16 @@ sub build_element_list($$$$)
     my $name  = $$elem_names[$i];
     my $value = $$elem_values[$i];
 
+    my $docs  =
+      DocsParser::lookup_enum_value_documentation("$$self{c_type}",
+        "$$self{c_prefix}$name");
+
     for(my $ii = 0; $ii < scalar(@subst_in); ++$ii)
     {
       $name  =~ s/${subst_in[$ii]}/${subst_out[$ii]}/;
       $value =~ s/${subst_in[$ii]}/${subst_out[$ii]}/;
     }
 
-    my $docs  =
-      DocsParser::lookup_enum_value_documentation("$$self{c_type}",
-        "$$self{c_prefix}$name");
-
     if($docs ne "")
     {
       # Make sure the docs is indented the right number of spaces.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]