code comments
authorStefan Behnel <scoder@users.berlios.de>
Fri, 6 Jun 2008 19:39:23 +0000 (21:39 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 6 Jun 2008 19:39:23 +0000 (21:39 +0200)
Cython/Compiler/ModuleNode.py

index 587cd2c50294155994536391ca967417f4374fce..b65985cce685c416c1d9e568fae4b83e190fcb11 100644 (file)
@@ -363,12 +363,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
 
     def generate_declarations_for_modules(self, env, modules, code):
         code.putln("")
-        code.putln("/* Declarations */")
+        code.putln("/* Type declarations */")
         vtab_list, vtabslot_list = self.sort_type_hierarchy(modules, env)
         self.generate_type_definitions(
             env, modules, vtab_list, vtabslot_list, code)
         for module in modules:
             defined_here = module is env
+            code.putln("/* Module declarations from %s */" %
+                       module.qualified_name.encode("ASCII", "ignore"))
             self.generate_global_declarations(module, code, defined_here)
             self.generate_cfunction_predeclarations(module, code, defined_here)