diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-18 23:57:25 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 03:18:14 +0300 |
commit | 752d2080b7af5b2bdd1328d17c87ccc5501c1e6a (patch) | |
tree | f0aa7d8c272cd101640c39bb9740c4feda7a4a0b /unix/modffi.c | |
parent | 44ee42de50776210293ef7edea9089e5327142e2 (diff) |
modffi: Mark 'p' type spec deprecated, replace with 'P'.
'p' in struct module is "pascal string". 'P' is void*.
Diffstat (limited to 'unix/modffi.c')
-rw-r--r-- | unix/modffi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/modffi.c b/unix/modffi.c index 7b8e43874..bdaa3b2b4 100644 --- a/unix/modffi.c +++ b/unix/modffi.c @@ -63,7 +63,8 @@ STATIC ffi_type *char2ffi_type(char c) case 'L': return &ffi_type_ulong; case 'f': return &ffi_type_float; case 'd': return &ffi_type_double; - case 'p': + case 'p': // Deprecated - conflicts with struct module + case 'P': case 's': return &ffi_type_pointer; case 'v': return &ffi_type_void; default: return NULL; |