avoid GCC warning about '/*' in generated C comments
authorStefan Behnel <scoder@users.berlios.de>
Sun, 23 Nov 2008 18:46:46 +0000 (19:46 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 23 Nov 2008 18:46:46 +0000 (19:46 +0100)
Cython/Compiler/Code.py

index 13bf31458f6367e40e039fb976d9da731b27ee59..f83b800ce4635d92a4821ddb3dbe5f965b0c4461 100644 (file)
@@ -336,6 +336,8 @@ class GlobalState(object):
         except KeyError:
             F = [u' * ' + line.rstrip().replace(
                     u'*/', u'*[inserted by cython to avoid comment closer]/'
+                    ).replace(
+                    u'/*', u'/[inserted by cython to avoid comment start]*'
                     ).encode('ASCII', 'replace') # + Py2 auto-decode to unicode
                  for line in source_desc.get_lines()]
             if len(F) == 0: F.append(u'')