[pypy-svn] r26567 - pypy/dist/pypy/rpython/rctypes/tool
arigo at codespeak.net
arigo at codespeak.net
Sat Apr 29 11:30:59 CEST 2006
Author: arigo
Date: Sat Apr 29 11:30:58 2006
New Revision: 26567
Modified:
pypy/dist/pypy/rpython/rctypes/tool/ctypes_platform.py
Log:
Revert this change: '_pad' is not the only name that could start with an
underscore. There might be real C field names that start with an
underscore, so it's a problem that must be solved elsewhere...
Modified: pypy/dist/pypy/rpython/rctypes/tool/ctypes_platform.py
==============================================================================
--- pypy/dist/pypy/rpython/rctypes/tool/ctypes_platform.py (original)
+++ pypy/dist/pypy/rpython/rctypes/tool/ctypes_platform.py Sat Apr 29 11:30:58 2006
@@ -187,7 +187,7 @@
for i, cell in enumerate(layout):
if cell is not None:
continue
- layout_addfield(layout, i, ctypes.c_char, 'pad%d' % (n,))
+ layout_addfield(layout, i, ctypes.c_char, '_pad%d' % (n,))
n += 1
# build the ctypes Structure
More information about the Pypy-commit
mailing list