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

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Wed Feb 11 03:43:05 UTC 2009


Author: Infinoid
Date: Wed Feb 11 03:43:03 2009
New Revision: 36571
URL: https://trac.parrot.org/parrot/changeset/36571

Log:
[include] string.h guards against being called without PARROT_IN_CORE.
However, outside the guard, it includes pobj.h which has no such guard (and
breaks horribly if included without PARROT_IN_CORE).  Move things around to
handle this case a bit more gracefully.

Modified:
   trunk/include/parrot/string.h

Modified: trunk/include/parrot/string.h
==============================================================================
--- trunk/include/parrot/string.h	Wed Feb 11 01:52:58 2009	(r36570)
+++ trunk/include/parrot/string.h	Wed Feb 11 03:43:03 2009	(r36571)
@@ -14,12 +14,12 @@
 #define PARROT_STRING_H_GUARD
 
 #include "parrot/config.h"
-#include "parrot/pobj.h"
 
 struct parrot_string_t;
 
 #ifdef PARROT_IN_CORE
 
+#include "parrot/pobj.h"
 #include "parrot/parrot.h"
 
 typedef struct parrot_string_t STRING;


More information about the parrot-commits mailing list