[glibmm/glibmm-2-18] Fix --module option for enum.pl to work



commit 7a79abc71d53feb192a2fcb765810d3325406451
Author: Siavash Safi <siavash siavashs org>
Date:   Tue May 19 18:50:27 2009 +0430

    Fix --module option for enum.pl to work
---
 ChangeLog     |    4 ++++
 tools/enum.pl |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 65cca95..e587080 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-19  Siavash Safi  <siavash siavashs org>
+
+	* tools/enum.pl: Fix --module option to work
+
 2009-04-27  Siavash Safi  <siavash siavashs org>
 
 	* gio/src/file.ccg: Added the missing defenitions for
diff --git a/tools/enum.pl b/tools/enum.pl
index 97804c5..f1b6cbe 100644
--- a/tools/enum.pl
+++ b/tools/enum.pl
@@ -103,7 +103,7 @@ sub process
 
   my $entity = "enum";
   $c_name =~ /^([A-Z][a-z]*)/;
-  $module = $1;
+  $module = $1 if ($module eq "none");
   $def =~ s/$module//;
 
   @c_name=();



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