diff options
author | Armin Rigo <arigo@tunes.org> | 2015-05-26 16:32:42 +0200 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2015-05-26 16:32:42 +0200 |
commit | 8482526f1807d0c5c7f0eca3734df0de6b173f3c (patch) | |
tree | 58f8628c51d506897ac4043214a22dba1971285f /cffi/parse_c_type.h | |
parent | ab11623cb6104ecde1805cdc7d3e03774d2a9a7e (diff) | |
download | cffi-8482526f1807d0c5c7f0eca3734df0de6b173f3c.tar.gz |
ffi.addressof(lib, "function") now returns a regular cdata function pointer
Diffstat (limited to 'cffi/parse_c_type.h')
-rw-r--r-- | cffi/parse_c_type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cffi/parse_c_type.h b/cffi/parse_c_type.h index 8fa4f46..8c2ba4d 100644 --- a/cffi/parse_c_type.h +++ b/cffi/parse_c_type.h @@ -83,7 +83,8 @@ struct _cffi_global_s { const char *name; void *address; _cffi_opcode_t type_op; - size_t size; // 0 if unknown + void *size_or_direct_fn; // OP_GLOBAL_VAR: size, or 0 if unknown + // OP_CPYTHON_BLTN_*: addr of direct function }; struct _cffi_getconst_s { |