petdance/scratch — Issue #257: Parrot_String-related functions are only available from parrot/parrot.h
Author: petdance
Created: 2011-11-01 05:41:49+00:00
State: open
Labels: bug, core, Pri-major, Sev-medium

As reported by Joshua Tolley:
{{{
I'm calling Parrot_compile_string(), which as one
of its arguments takes a pointer to a Parrot_String object, where apparently
it puts error messages should the string I'm compiling happen not to compile.
Presumably in order to test the resulting string for NULL, convert it to a C
string, etc., I should use the stuff declared in string_funcs.h. The problem
is that everything in string_funcs.h is defined only if PARROT_IN_CORE is
defined. PARROT_IN_CORE, in turn, is defined only if I include parrot.h
}}}

Since only parrot internals should include parrot/parrot.h, these functions need to be made available from parrot/embed.h and parrot/extend.h

Originally http://trac.parrot.org/parrot/ticket/1496