summaryrefslogtreecommitdiff
path: root/ext/ffi_c/Call.c
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2012-08-04 23:16:38 +1000
committerWayne Meissner <wmeissner@gmail.com>2012-08-04 23:17:15 +1000
commitb6ffde9cc76b35df844e9f31349bcb254fe57f6b (patch)
treee066342940fd7bd0dc3c44d401610035c7a7f742 /ext/ffi_c/Call.c
parentb1cefc8a2b63a10e7ca84b7e30f970e78ba88a2e (diff)
downloadffi-b6ffde9cc76b35df844e9f31349bcb254fe57f6b.tar.gz
Convert C++ style comments to C /* */ style
Diffstat (limited to 'ext/ffi_c/Call.c')
-rw-r--r--ext/ffi_c/Call.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/ffi_c/Call.c b/ext/ffi_c/Call.c
index aa7310a..856d485 100644
--- a/ext/ffi_c/Call.c
+++ b/ext/ffi_c/Call.c
@@ -314,8 +314,10 @@ rbffi_CallFunction(int argc, VALUE* argv, void* function, FunctionType* fnInfo)
if (unlikely(fnInfo->blocking)) {
BlockingCall* bc;
- // due to the way thread switching works on older ruby variants, we
- // cannot allocate anything passed to the blocking function on the stack
+ /*
+ * due to the way thread switching works on older ruby variants, we
+ * cannot allocate anything passed to the blocking function on the stack
+ */
ffiValues = ALLOC_N(void *, fnInfo->parameterCount);
params = ALLOC_N(FFIStorage, fnInfo->parameterCount);
bc = ALLOC_N(BlockingCall, 1);
@@ -432,14 +434,13 @@ callback_param(VALUE proc, VALUE cbInfo)
return NULL ;
}
- // Handle Function pointers here
+ /* Handle Function pointers here */
if (rb_obj_is_kind_of(proc, rbffi_FunctionClass)) {
AbstractMemory* ptr;
Data_Get_Struct(proc, AbstractMemory, ptr);
return ptr->address;
}
- //callback = rbffi_NativeCallback_ForProc(proc, cbInfo);
callback = rbffi_Function_ForProc(cbInfo, proc);
RB_GC_GUARD(callback);