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

[perl #24817] [PATCH] various extending interface changes

0 views
Skip to first unread message

Mattia Barbon

unread,
Jan 5, 2004, 7:40:49 PM1/5/04
to bugs-bi...@rt.perl.org
# New Ticket Created by Mattia Barbon
# Please include the string: [perl #24817]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=24817 >


Hello,
this patch

* renames Parrot_INTERP and Parrot_STRING to Parrot_Interp and Parrot_String,
which matches the rest of Parrot types, as well as the embedding interface
* Adds Parrot_PMC_get/set_vtable
* makes the extending interface compilable with a C++ compiler
(removed typedef struct Parrot_Interp* Parrot_Interp)
(note: only *compiles*, it probably does not link yet)
* changes typedefs in extend.h from
typedef void* <type>
to
typedef struct type_* type
which allows for slightly better type safety

Regards
Mattia

parrot.diff

Leopold Toetsch

unread,
Jan 6, 2004, 10:43:42 AM1/6/04
to perl6-i...@perl.org
Mattia Barbon <bugs-...@netlabs.develooper.com> wrote:
> Hello,
> this patch

> * renames Parrot_INTERP and Parrot_STRING to Parrot_Interp and Parrot_String,
> which matches the rest of Parrot types, as well as the embedding interface

AFAIK are the types in extend.c opaque types which are different to the
internals.

> Regards
> Mattia

leo

Mattia Barbon

unread,
Jan 6, 2004, 1:52:04 PM1/6/04
to l...@toetsch.at, perl6-i...@perl.org

Sure. But: embed.h and extend.h do not use the same types. They should,
whichever the type names are (I am not to decide[1], but somebody ought to...).
In addition the patch leaves the types opaque, it just changes their names.

Regards
Mattia

0 new messages