Skip to content

Commit 752d208

Browse files
committed
modffi: Mark 'p' type spec deprecated, replace with 'P'.
'p' in struct module is "pascal string". 'P' is void*.
1 parent 44ee42d commit 752d208

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

unix/modffi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ STATIC ffi_type *char2ffi_type(char c)
6363
case 'L': return &ffi_type_ulong;
6464
case 'f': return &ffi_type_float;
6565
case 'd': return &ffi_type_double;
66-
case 'p':
66+
case 'p': // Deprecated - conflicts with struct module
67+
case 'P':
6768
case 's': return &ffi_type_pointer;
6869
case 'v': return &ffi_type_void;
6970
default: return NULL;

0 commit comments

Comments
 (0)