[pypy-commit] cffi cffi-1.0: Long
arigo
noreply at buildbot.pypy.org
Tue Apr 14 17:28:47 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r1703:2be5c31726b0
Date: 2015-04-14 16:16 +0200
http://bitbucket.org/cffi/cffi/changeset/2be5c31726b0/
Log: Long
diff --git a/new/realize_c_type.c b/new/realize_c_type.c
--- a/new/realize_c_type.c
+++ b/new/realize_c_type.c
@@ -16,6 +16,10 @@
x = new_primitive_type("int");
break;
+ case _CFFI_PRIM_LONG:
+ x = new_primitive_type("long");
+ break;
+
default:
PyErr_Format(PyExc_NotImplementedError, "prim=%d", num);
return NULL;
diff --git a/new/test_realize_c_type.py b/new/test_realize_c_type.py
--- a/new/test_realize_c_type.py
+++ b/new/test_realize_c_type.py
@@ -15,6 +15,8 @@
check("int")
check("int *")
check("int*", "int *")
+ check("long int", "long")
+ check("long")
def test_noop():
check("int(*)", "int *")
More information about the pypy-commit
mailing list