[pypy-commit] pypy release-2.3.x: add more macros (tests?)
mattip
noreply at buildbot.pypy.org
Mon May 5 09:03:54 CEST 2014
Author: mattip <matti.picus at gmail.com>
Branch: release-2.3.x
Changeset: r71273:3f7cffa4d3ed
Date: 2014-05-05 10:03 +0300
http://bitbucket.org/pypy/pypy/changeset/3f7cffa4d3ed/
Log: add more macros (tests?)
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
@@ -902,7 +902,9 @@
("SIZEOF_TIME_T", rffi.TIME_T),
("SIZEOF_LONG", rffi.LONG),
("SIZEOF_SHORT", rffi.SHORT),
- ("SIZEOF_INT", rffi.INT)
+ ("SIZEOF_INT", rffi.INT),
+ ("SIZEOF_FLOAT", rffi.FLOAT),
+ ("SIZEOF_DOUBLE", rffi.DOUBLE),
]:
pypy_macros.append("#define %s %s" % (macro_name, rffi.sizeof(size)))
pypy_macros.append('')
More information about the pypy-commit
mailing list