Embedding and Parrot_String objects

Joshua Tolley eggyknap at gmail.com
Thu Mar 4 04:32:41 UTC 2010


I'm one of those fiddling with embedding Parrot in PostgreSQL, and have run on
something that seems wonky. 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, which
causes all kinds of error messages and which I gather I'm not supposed to do
if I'm embedding Parrot. Any suggestions on how I can make use of this
Parrot_String I have? Thanks in advance.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.parrot.org/pipermail/parrot-dev/attachments/20100303/554d90c7/attachment.pgp>


More information about the parrot-dev mailing list