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

darbelo at svn.parrot.org darbelo at svn.parrot.org
Fri Jul 30 04:50:45 UTC 2010


Author: darbelo
Date: Fri Jul 30 04:50:44 2010
New Revision: 48223
URL: https://trac.parrot.org/parrot/changeset/48223

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	Thu Jul 29 22:21:45 2010	(r48222)
+++ trunk/lib/Parrot/Pmc2c/PMCEmitter.pm	Fri Jul 30 04:50:44 2010	(r48223)
@@ -139,8 +139,8 @@
     }
     $h->emit("${export}VTABLE* Parrot_${name}_get_vtable(PARROT_INTERP);\n");
     $h->emit("${export}VTABLE* Parrot_${name}_ro_get_vtable(PARROT_INTERP);\n");
-    $h->emit("${export}PMC*    Parrot_${name}_get_mro(PARROT_INTERP, PMC* mro);\n");
-    $h->emit("${export}Hash*   Parrot_${name}_get_isa(PARROT_INTERP, Hash* isa);\n");
+    $h->emit("${export}PMC*    Parrot_${name}_get_mro(PARROT_INTERP, ARGIN_NULLOK(PMC* mro));\n");
+    $h->emit("${export}Hash*   Parrot_${name}_get_isa(PARROT_INTERP, ARGIN_NULLOK(Hash* isa));\n");
 
 
     $self->gen_attributes;


More information about the parrot-commits mailing list