Commit 752d2080 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

modffi: Mark 'p' type spec deprecated, replace with 'P'.

'p' in struct module is "pascal string". 'P' is void*.
parent 44ee42de
...@@ -63,7 +63,8 @@ STATIC ffi_type *char2ffi_type(char c) ...@@ -63,7 +63,8 @@ STATIC ffi_type *char2ffi_type(char c)
case 'L': return &ffi_type_ulong; case 'L': return &ffi_type_ulong;
case 'f': return &ffi_type_float; case 'f': return &ffi_type_float;
case 'd': return &ffi_type_double; case 'd': return &ffi_type_double;
case 'p': case 'p': // Deprecated - conflicts with struct module
case 'P':
case 's': return &ffi_type_pointer; case 's': return &ffi_type_pointer;
case 'v': return &ffi_type_void; case 'v': return &ffi_type_void;
default: return NULL; default: return NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment