Remove support for void* return types Assuming that a void pointer is a reference SV is fragile. Lucy builds and tests fine without this feature so I guess it's not really needed.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/39c05d1a Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/39c05d1a Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/39c05d1a Branch: refs/heads/overridden_exclusions Commit: 39c05d1a1ce0ecab970e9cd4a66eba875ee74e1b Parents: d73098d Author: Nick Wellnhofer <[email protected]> Authored: Thu Jul 31 13:28:05 2014 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Mon Aug 11 16:37:07 2014 +0200 ---------------------------------------------------------------------- compiler/src/CFCPerlTypeMap.c | 7 ------- 1 file changed, 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/39c05d1a/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; }
