Ticket #1496 (new bug)
Parrot_String-related functions are only available from parrot/parrot.h
Reported by: | dukeleto | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | core | Version: | 2.1.0 |
Severity: | medium | Keywords: | |
Cc: | Language: | ||
Patch status: | Platform: | all |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.