[svn:parrot] r43611 - trunk/tools/build

plobsing at svn.parrot.org plobsing at svn.parrot.org
Tue Jan 26 23:25:11 UTC 2010


Author: plobsing
Date: Tue Jan 26 23:25:10 2010
New Revision: 43611
URL: https://trac.parrot.org/parrot/changeset/43611

Log:
simplify empty nci signature fixup a bit

Modified:
   trunk/tools/build/nativecall.pl

Modified: trunk/tools/build/nativecall.pl
==============================================================================
--- trunk/tools/build/nativecall.pl	Tue Jan 26 22:31:08 2010	(r43610)
+++ trunk/tools/build/nativecall.pl	Tue Jan 26 23:25:10 2010	(r43611)
@@ -454,18 +454,15 @@
     PMC        *b;
     PMC        *iglobals;
     PMC        *temp_pmc;
-    UINTVAL    signature_len;
 
     PMC        *HashPointer   = NULL;
 
     /* And in here is the platform-independent way. Which is to say
        "here there be hacks" */
-    signature_len = Parrot_str_byte_length(interp, signature);
 
-#ifndef CAN_BUILD_CALL_FRAMES
-    if (0 == signature_len)
-       return F2DPTR(pcf_v_);
-#endif
+    /* fixup empty signatures */
+    if (STRING_IS_EMPTY(signature))
+        signature = CONST_STRING(interp, "v");
 
     iglobals = interp->iglobals;
 


More information about the parrot-commits mailing list