[svn:parrot] r48224 - trunk/lib/Parrot/Pmc2c

darbelo at svn.parrot.org darbelo at svn.parrot.org
Fri Jul 30 05:03:33 UTC 2010


Author: darbelo
Date: Fri Jul 30 05:03:32 2010
New Revision: 48224
URL: https://trac.parrot.org/parrot/changeset/48224

Log:
Add ARGIN_NULLOK() markers to parameters in generated functions.  It makes splint a bit less cranky.

Modified:
   trunk/lib/Parrot/Pmc2c/PMCEmitter.pm

Modified: trunk/lib/Parrot/Pmc2c/PMCEmitter.pm
==============================================================================
--- trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Fri Jul 30 04:50:44 2010	(r48223)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Fri Jul 30 05:03:32 2010	(r48224)
@@ -822,7 +822,7 @@
 $export
 PARROT_CANNOT_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
-PMC* Parrot_${classname}_get_mro(PARROT_INTERP, PMC* mro) {
+PMC* Parrot_${classname}_get_mro(PARROT_INTERP, ARGIN_NULLOK(PMC* mro)) {
     if (PMC_IS_NULL(mro)) {
         mro = Parrot_pmc_new(interp, enum_class_ResizableStringArray);
     }
@@ -863,7 +863,7 @@
 $export
 PARROT_CANNOT_RETURN_NULL
 PARROT_WARN_UNUSED_RESULT
-Hash* Parrot_${classname}_get_isa(PARROT_INTERP, Hash* isa) {
+Hash* Parrot_${classname}_get_isa(PARROT_INTERP, ARGIN_NULLOK(Hash* isa)) {
 EOC
 
     if ($get_isa ne '') {


More information about the parrot-commits mailing list