aboutsummaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/interface.c b/interface.c
index 2a9a106..e40ed86 100644
--- a/interface.c
+++ b/interface.c
@@ -68,17 +68,21 @@ void cleanPutr(double r) {
void cleanSetReturnType(long i) {
switch (i) {
case 0:
- return_type = &ffi_type_slong;
+ return_type = &ffi_type_slong;
return_val = calloc(sizeof(long), 1);
break;
case 1:
- return_type = &ffi_type_pointer;
+ return_type = &ffi_type_pointer;
return_val = calloc(sizeof(char*), 1);
break;
case 2:
- return_type = &ffi_type_double;
+ return_type = &ffi_type_double;
return_val = calloc(sizeof(double), 1);
break;
+ case 3:
+ return_type = &ffi_type_void;
+ return_val = calloc(sizeof(void), 1);
+ break;
}
}