Is there any documentation, or code I can read to figure out how use
PMCs in embedded mode? I tried to just include parrot/parrot.h in sv.c
but that results in a million (or so ;) errors, so using parrot/embed
would be nice. (it looks like it isn't finished yet, so it is more a
question of what plans exists?)
Arthur
> Hi,
>
> Is there any documentation, or code I can read to figure out how use
> PMCs in embedded mode? I tried to just include parrot/parrot.h in sv.c
> but that results in a million (or so ;) errors ...
Ha-ha-ha. The same thing. To be more exactly, I get like a half of million
errors(anyway it's still less than you get), when I try to embed parrot in a
c++ application. The reason of that is that the parrot headers don't contain
the C linkage specification and there is an awful lot of typedef struct a *a
declarations that don't please C++ compilers. I ain't sure (when I proposed
to document the idea of Juergen Bommels to include the
extern "C" {
specification () in each header in pdd7_codingstd, no body had replied),
but maybe Parrot isn't going to have support for C++ embedding applications.
> to document the idea of Juergen Bommels to include the
>
> extern "C" {
>
I take it you meant the full game:
#ifdef __cplusplus
extern "C" {
#endif
> specification () in each header in pdd7_codingstd, no body had replied),
> but maybe Parrot isn't going to have support for C++ embedding applications.
It will. perl 5 does. Therefore the current situation is a bug.
Nicholas Clark
--Josh