develooper Front page | perl.perl6.internals | Postings from April 2008

[perl #53544] [PATCH] digst_pmc.in: Void functions can not return values.

Thread Next
From:
Andy Dougherty
Date:
April 29, 2008 21:28
Subject:
[perl #53544] [PATCH] digst_pmc.in: Void functions can not return values.
# New Ticket Created by  Andy Dougherty 
# Please include the string:  [perl #53544]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53544 >


If I have traced its lineage correctly, this patch fixes the following 
problem in sha256.c and sha512.c:

    "./sha256.pmc", line 164: void function cannot return value

(note that line 164 of sha256.pm is actually the "vim: ..." comment 
at the end of the file.  I'm not sure where the line numbers are 
getting messed up.)

--- parrot-svn/config/gen/crypto/digest_pmc.in	Mon Apr 28 12:31:25 2008
+++ parrot-cc/config/gen/crypto/digest_pmc.in	Tue Apr 29 11:35:03 2008
@@ -134,7 +134,7 @@
 
         RETURN(STRING *retval);
 #else
-        return NULL;
+        return;
 #endif
     }
 

-- 
    Andy Dougherty		doughera@lafayette.edu

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About