Fix namespace conversion functions.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 27 Aug 2010 07:42:47 +0000 (00:42 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 27 Aug 2010 07:42:47 +0000 (00:42 -0700)
Cython/Compiler/PyrexTypes.py

index 68437e3dfba2a20a42c8862d109aa1f2609f0d6f..993d784af3fe185a145be5fda459ee3adb2ec9a8 100755 (executable)
@@ -233,7 +233,7 @@ class CTypedefType(BaseType):
 
     def _create_utility_code(self, template_utility_code,
                              template_function_name):
-        type_name = self.typedef_cname.replace(" ","_")
+        type_name = self.typedef_cname.replace(" ","_").replace("::","__")
         utility_code = template_utility_code.specialize(
             type     = self.typedef_cname,
             TypeName = type_name)