develooper Front page | perl.perl6.internals | Postings from July 2002

[perl #15267] example/pxs is broken

Thread Next
s . payrard @ wanadoo . fr
July 21, 2002 07:06
[perl #15267] example/pxs is broken
Message ID:
# New Ticket Created by 
# Please include the string:  [perl #15267]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This seems a symptom of a bigger problem.
include/parrot/interpreter.h has the following typedef:

  typedef struct Parrot_Interp *Parrot_Interp;

It works in C but breaks in C++ (using g++-3.1) as demonstrated
by the breakage of example/pxs:

..../../include/parrot/interpreter.h:32: conflicting types for `typedef struct Parrot_Interp*Parrot_Interp'
..../../include/parrot/interpreter.h:30: previous declaration as `struct Parrot_Interp'
In file included from ../../include/parrot/interpreter.h:44,
                 from ../../include/parrot/parrot.h:114,
                 from ../../include/parrot/pxs.h:14,
                 from PQt.C:15:

Also, the modifs of pxs.h form CVS 1.2 to 1.3 (replacing
Parrot_Interp_t by parrot_interp_t) also does not fix anything
but confuses a little more the problem.

in my opinion "typedef struct Parrot_Interp *Parrot_Interp;" is not
only too cute, it is  wrong in the light of C++


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About