Author: Armin Rigo <ar...@tunes.org>
Branch: cpy-extension
Changeset: r332:7c0fddd94775
Date: 2012-06-14 13:20 +0200
http://bitbucket.org/cffi/cffi/changeset/7c0fddd94775/

Log:    Add a warning.

diff --git a/cffi/cparser.py b/cffi/cparser.py
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -14,7 +14,8 @@
     return _parser_cache
 
 def _preprocess(csource):
-    # Remove comments
+    # Remove comments.  NOTE: this only work because the cdef() section
+    # should not contain any string literal!
     csource = _r_comment.sub(' ', csource)
     # Replace "...}" with "__dotdotdotNUM__}".  This construction should
     # occur only at the end of enums; at the end of structs we have "...;}"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to