[svn:parrot] r41696 - branches/pcc_reapply/src

bacek at svn.parrot.org bacek at svn.parrot.org
Sun Oct 4 15:14:35 UTC 2009


Author: bacek
Date: Sun Oct  4 15:14:35 2009
New Revision: 41696
URL: https://trac.parrot.org/parrot/changeset/41696

Log:
Trade last test from t/pmc/nci.t into compiler warning.

PMC_is_null function declared in parrot/pmc.h. Including this file into nci_test causing tonnes of failures...

Modified:
   branches/pcc_reapply/src/nci_test.c

Modified: branches/pcc_reapply/src/nci_test.c
==============================================================================
--- branches/pcc_reapply/src/nci_test.c	Sun Oct  4 15:14:12 2009	(r41695)
+++ branches/pcc_reapply/src/nci_test.c	Sun Oct  4 15:14:35 2009	(r41696)
@@ -37,6 +37,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <parrot/config.h>
+#include <parrot/interpreter.h>
+#include <parrot/core_types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -747,7 +749,7 @@
 PARROT_EXPORT void
 nci_vP(void *pmc)
 {
-    if (pmc)
+    if (!PMC_IS_NULL((Parrot_PMC*)pmc))
         puts("ok");
     else
         puts("got null");


More information about the parrot-commits mailing list