We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4039a26 commit e95b6b5Copy full SHA for e95b6b5
unix/modffi.c
@@ -51,6 +51,10 @@
51
* s - as argument, the same as "p", as return value, causes string
52
* to be allocated and returned, instead of pointer value.
53
*
54
+ * TODO:
55
+ * O - mp_obj_t, passed as is (mostly useful as callback param)
56
+ * C - callback function
57
+ *
58
* Note: all constraint specified by typecode can be not enforced at this time,
59
* but may be later.
60
*/
@@ -108,6 +112,7 @@ STATIC ffi_type *char2ffi_type(char c)
108
112
case 'L': return &ffi_type_ulong;
109
113
case 'f': return &ffi_type_float;
110
114
case 'd': return &ffi_type_double;
115
+ case 'C': // (*)()
111
116
case 'P': // const void*
117
case 'p': // void*
118
case 's': return &ffi_type_pointer;
0 commit comments