[glibmm] generate_wrap_init.pl: Allow to use nested namespaces for whole module.



commit 0162a65ffc82c377ec5a4c78a3fe8092d62154f8
Author: Marcin Kolny <marcin kolny flytronic pl>
Date:   Wed Jul 29 13:06:43 2015 +0200

    generate_wrap_init.pl: Allow to use nested namespaces for whole module.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=753013
    
        * tools/generate_wrap_init.pl.in: add support for nested namespaces in
          --namespace parameter, i.e. --namespace=Gst::Bad. It requires to
          store all classes from module at least in Gst::Bad namespace, but
          allows to use this namespace in wrap_init.h class.

 tools/generate_wrap_init.pl.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/generate_wrap_init.pl.in b/tools/generate_wrap_init.pl.in
index 1381dfe..f49fe2f 100644
--- a/tools/generate_wrap_init.pl.in
+++ b/tools/generate_wrap_init.pl.in
@@ -66,7 +66,7 @@ while ($ARGV[0] =~ /^-/)
 {
   if ($ARGV[0] =~ /--namespace=(\S+)/)
   {
-    push(@namespace_whole, $1);
+    push(@namespace_whole, split('::', $1));
 
     if($parent_dir eq "")
       { $parent_dir = lc($1) . "mm"; }


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