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

[perl #32356] [PATCH] update to embed.pod

6 views
Skip to first unread message

Stephane Payrard

unread,
Nov 7, 2004, 6:00:17 PM11/7/04
to bugs-bi...@rt.perl.org
# New Ticket Created by Stephane Payrard
# Please include the string: [perl #32356]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=32356 >


There is now a call to set the core and another to set the other
flags. I updated the code and the doc to reflect that.

--
stef

Stéphane Payrard

unread,
Nov 7, 2004, 8:38:16 PM11/7/04
to Parrot Assembler via RT, Leopold Toetsch
I apparently forgot to attach the file
embed_update.patch.txt

Leopold Toetsch

unread,
Nov 8, 2004, 4:49:05 AM11/8/04
to st...@payrard.net, perl6-i...@perl.org
Stéphane Payrard <st...@payrard.net> wrote:
>>
>> There is now a call to set the core and another to set the other
>> flags. I updated the code and the doc to reflect that.

Thanks, applied.
leo

Brent 'Dax' Royal-Gordon

unread,
Nov 8, 2004, 12:39:51 PM11/8/04
to st...@payrard.net, Parrot Assembler via RT, Leopold Toetsch
On Mon, 8 Nov 2004 02:38:16 +0100, Stéphane Payrard <st...@payrard.net> wrote:
> + #include "parrot/parrot.h"
> #include "parrot/embed.h"

Unless things have changed far more than I thought, this is very,
very, very, very, very wrong. parrot.h is an internals-only
header--including it exposes all of Parrot's guts to the embedder.

Note this comment at the top of parrot.h:

# /* Only parrot core files should include this file.
# Extensions should include <parrot/extend.h>.
# Programs embedding parrot should include <parrot/embed.h>.
# */

And the define a few lines down:

# #define PARROT_IN_CORE

--
Brent 'Dax' Royal-Gordon <br...@brentdax.com>
Perl and Parrot hacker

There is no cabal.

Dan Sugalski

unread,
Nov 8, 2004, 12:55:58 PM11/8/04
to br...@brentdax.com, st...@payrard.net, Parrot Assembler via RT, Leopold Toetsch, Brent 'Dax' Royal-Gordon
At 9:39 AM -0800 11/8/04, Brent 'Dax' Royal-Gordon wrote:
>On Mon, 8 Nov 2004 02:38:16 +0100, Stéphane Payrard <st...@payrard.net> wrote:
>> + #include "parrot/parrot.h"
>> #include "parrot/embed.h"
>
>Unless things have changed far more than I thought, this is very,
>very, very, very, very wrong. parrot.h is an internals-only
>header--including it exposes all of Parrot's guts to the embedder.

Definitely. It's:

*) parrot.h for internal code
*) extend.h for code writing extensions to parrot in C
*) embed.h for code embedding a parrot interpreter

Neither extend.h nor embed.h should include parrot.h.
--
Dan

--------------------------------------it's like this-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

Stéphane Payrard

unread,
Nov 8, 2004, 2:48:53 PM11/8/04
to Dan Sugalski, br...@brentdax.com, st...@payrard.net, Parrot Assembler via RT, Leopold Toetsch, Brent 'Dax' Royal-Gordon

No need to modify embed.h.
Patch attached to get a snipped that compileds without the
#include "parrot/parrot.h"


--
stef

embed_update.patch2.txt

Leopold Toetsch

unread,
Nov 9, 2004, 2:47:22 AM11/9/04
to st...@payrard.net, perl6-i...@perl.org
Stéphane Payrard <st...@payrard.net> wrote:
> Patch attached to get a snipped that compileds without the
> #include "parrot/parrot.h"


Thanks, applied.
leo

0 new messages