Author: Ronan Lamy <[email protected]>
Branch: rffi-parser-2
Changeset: r89562:58a2143f6b9d
Date: 2017-01-14 16:20 +0000
http://bitbucket.org/pypy/pypy/changeset/58a2143f6b9d/

Log:    fix translation

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -148,6 +148,7 @@
     headers = include_dir.listdir('*.h') + include_dir.listdir('*.inl')
     for name in ["pypy_macros.h"] + FUNCTIONS_BY_HEADER.keys():
         headers.append(udir.join(name))
+    headers.append(parse_dir / 'cpyext_object.h')
     _copy_header_files(headers, dstdir)
 
     if copy_numpy_headers:
diff --git a/pypy/module/cpyext/cparser.py b/pypy/module/cpyext/cparser.py
--- a/pypy/module/cpyext/cparser.py
+++ b/pypy/module/cpyext/cparser.py
@@ -749,6 +749,8 @@
                 self.add_macro(name, obj)
         self._Config._compilation_info_ = self.build_eci()
         for name, TYPE in rffi_platform.configure(self._Config).iteritems():
+            # hack: prevent the source from being pasted into common_header.h
+            del TYPE._hints['eci']
             if name in self._TYPES:
                 self._TYPES[name].become(TYPE)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to