Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Embedding interface to PMCs

6 views
Skip to first unread message

Arthur Bergman

unread,
Sep 11, 2003, 12:14:50 PM9/11/03
to perl6-i...@perl.org, poni...@perl.org
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, 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

Vladimir Lipskiy

unread,
Sep 11, 2003, 2:30:29 PM9/11/03
to Arthur Bergman, perl6-internals, poni...@perl.org

----- Original Message -----
From: "Arthur Bergman" <s...@nanisky.com>
To: <perl6-i...@perl.org>; <poni...@perl.org>
Sent: Thursday, September 11, 2003 7:14 PM
Subject: Embedding interface to PMCs


> 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.

Nicholas Clark

unread,
Sep 11, 2003, 1:57:28 PM9/11/03
to Vladimir Lipskiy, Arthur Bergman, perl6-internals, poni...@perl.org
On Thu, Sep 11, 2003 at 09:30:29PM +0300, Vladimir Lipskiy wrote:

> 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 Wilmes

unread,
Sep 11, 2003, 11:56:47 PM9/11/03
to perl6-internals, poni...@perl.org
If the pdd is amended, let's not forget to update the check_source script-
for that matter, if there are any other items that should be added
(perhaps some specific checks for the embedding headers), let me know-
I'll be happy to add them.

--Josh

0 new messages