projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8f3c9e
)
avoid GCC warning about '/*' in generated C comments
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 23 Nov 2008 18:46:46 +0000
(19:46 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 23 Nov 2008 18:46:46 +0000
(19:46 +0100)
Cython/Compiler/Code.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Code.py
b/Cython/Compiler/Code.py
index 13bf31458f6367e40e039fb976d9da731b27ee59..f83b800ce4635d92a4821ddb3dbe5f965b0c4461 100644
(file)
--- a/
Cython/Compiler/Code.py
+++ b/
Cython/Compiler/Code.py
@@
-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'')