Repository: lucy-clownfish
Updated Branches:
  refs/heads/master e6cf0653c -> a6568feb3


Remove support for void* return types

Assuming that a void pointer is a reference SV is fragile. The intention
of the mapping was to support bindings for the To_Host method. But
calling To_Host from the host language would simply return an identical
object, so I can't see a need to bind this method.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/6de3da67
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/6de3da67
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/6de3da67

Branch: refs/heads/master
Commit: 6de3da67cdd82c20da5b069d042fe5719ffa46c8
Parents: e6cf065
Author: Nick Wellnhofer <[email protected]>
Authored: Thu Jul 31 13:28:05 2014 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Mon Sep 1 13:29:43 2014 +0200

----------------------------------------------------------------------
 compiler/src/CFCPerlTypeMap.c | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/6de3da67/compiler/src/CFCPerlTypeMap.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlTypeMap.c b/compiler/src/CFCPerlTypeMap.c
index 7997ea9..2a87f43 100644
--- a/compiler/src/CFCPerlTypeMap.c
+++ b/compiler/src/CFCPerlTypeMap.c
@@ -187,13 +187,6 @@ CFCPerlTypeMap_to_perl(CFCType *type, const char *cf_var) {
             result = NULL;
         }
     }
-    else if (CFCType_is_composite(type)) {
-        if (strcmp(type_str, "void*") == 0) {
-            // Assume that void* is a reference SV -- either a hashref or an
-            // arrayref.
-            result = CFCUtil_sprintf("newRV_inc((SV*)%s)", cf_var);
-        }
-    }
 
     return result;
 }

Reply via email to