[pygccxml-commit] SF.net SVN: pygccxml: [1348] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2008-06-24 06:52:40
|
Revision: 1348
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1348&view=rev
Author: roman_yakovenko
Date: 2008-06-23 23:52:49 -0700 (Mon, 23 Jun 2008)
Log Message:
-----------
bug fix: code generation for arrays defined in global namespace
Thanks to Hans Meine
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/global_variable.py
pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp
Modified: pyplusplus_dev/pyplusplus/code_creators/global_variable.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/global_variable.py 2008-06-24 05:23:42 UTC (rev 1347)
+++ pyplusplus_dev/pyplusplus/code_creators/global_variable.py 2008-06-24 06:52:49 UTC (rev 1348)
@@ -122,7 +122,7 @@
def _create_namespaces(self):
ns_names = declarations.declaration_path( self.declaration.parent )
- if len(ns_names) > 1 and ns_names[0] == '::':
+ if len(ns_names) >= 1 and ns_names[0] == '::':
ns_names = ns_names[1:]
return ns_names
Modified: pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp 2008-06-24 05:23:42 UTC (rev 1347)
+++ pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp 2008-06-24 06:52:49 UTC (rev 1348)
@@ -21,4 +21,7 @@
}
+
+extern const char someSin[256];
+
#endif//__global_variables_to_be_exported_hpp__
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|