fix Cython code context comments in C code when annotation is enables
authorStefan Behnel <scoder@users.berlios.de>
Sat, 1 Nov 2008 05:01:48 +0000 (06:01 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 1 Nov 2008 05:01:48 +0000 (06:01 +0100)
Cython/Compiler/Annotate.py

index 4a8a27bb2493ae145c15328b1806275206132266..4796ec838629c5f9b10e665ac7b3ac94da982e91 100644 (file)
@@ -39,9 +39,8 @@ class AnnotationCCodeWriter(CCodeWriter):
         self.annotation_buffer.write(s)
         
     def mark_pos(self, pos):
-#        if pos is not None:
-#            CCodeWriter.mark_pos(self, pos)
-#        return
+        if pos is not None:
+            CCodeWriter.mark_pos(self, pos)
         if self.last_pos:
             code = self.code.get(self.last_pos[1], "")
             self.code[self.last_pos[1]] = code + self.annotation_buffer.getvalue()