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

[perl #15267] example/pxs is broken

Thread Next
From:
s . payrard @ wanadoo . fr
Date:
July 21, 2002 07:06
Subject:
[perl #15267] example/pxs is broken
Message ID:
rt-15267-30849.6.55401723905882@perl
# New Ticket Created by  s.payrard@wanadoo.fr 
# Please include the string:  [perl #15267]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=15267 >


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

--
  stef



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About