Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1903:e6be5709de0b
Date: 2015-05-02 20:46 +0200
http://bitbucket.org/cffi/cffi/changeset/e6be5709de0b/
Log: Add a num_types entry to help pypy's implementation
diff --git a/_cffi1/parse_c_type.h b/_cffi1/parse_c_type.h
--- a/_cffi1/parse_c_type.h
+++ b/_cffi1/parse_c_type.h
@@ -130,6 +130,7 @@
int num_enums;
int num_typenames;
const char *const *includes;
+ int num_types;
};
struct _cffi_parse_info_s {
diff --git a/_cffi1/recompiler.py b/_cffi1/recompiler.py
--- a/_cffi1/recompiler.py
+++ b/_cffi1/recompiler.py
@@ -220,6 +220,7 @@
prnt(' _cffi_includes,')
else:
prnt(' NULL, /* no includes */')
+ prnt(' %d, /* num_types */' % (len(self.cffi_types),))
prnt('};')
prnt()
#
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit