[svn:parrot] r39994 - trunk/include/parrot

petdance at svn.parrot.org petdance at svn.parrot.org
Sat Jul 11 05:45:50 UTC 2009


Author: petdance
Date: Sat Jul 11 05:45:49 2009
New Revision: 39994
URL: https://trac.parrot.org/parrot/changeset/39994

Log:
Splint complains about PMCNULL's storage, so don't use it.

Modified:
   trunk/include/parrot/interpreter.h

Modified: trunk/include/parrot/interpreter.h
==============================================================================
--- trunk/include/parrot/interpreter.h	Sat Jul 11 05:16:24 2009	(r39993)
+++ trunk/include/parrot/interpreter.h	Sat Jul 11 05:45:49 2009	(r39994)
@@ -459,7 +459,12 @@
 #define PNCONST   PF_NCONST(interp->code)
 
 /* TODO - Make this a config option */
-#define PARROT_CATCH_NULL 1
+/* Splint complains about PMCNULL's storage, so don't use it. */
+#ifdef S_SPLINT_S
+#  define PARROT_CATCH_NULL 0
+#else
+#  define PARROT_CATCH_NULL 1
+#endif
 
 #if PARROT_CATCH_NULL
 PARROT_DATA PMC * PMCNULL;   /* Holds single Null PMC */


More information about the parrot-commits mailing list