[GCC-XML] 2 newbie questions about "pseudo"

John Morrison jm at mak.com
Sat May 28 14:17:29 EDT 2005


On Saturday 28 May 2005 10:32 am, Stefan Strasser wrote:
> try to export uninstantiated templates. that is where the fun begins.

That sounds like a whole new level of Hell.  Get out your shovels.

> I'm not sure what you're saying here, that this is a artificial type that
> you want to ignore or that you don't want to ignore?

I wanted to ignore all instantiations of artificial types.

> ...so don't filter out artificial types

Right-o, although the real problem was more subtle than I understood
it to be (aren't they all?).  The problem seems to be that the
artificial types are structs that have no members.  This lack of
definition confused my Lisp system, as the alien bindings were
incomplete.

However, they *do* have size, so what I did as a first cut was simply
to define them to be alien arrays of the given size.  I could probably
get cleverer and see if the structure members have names, and then use
them, so that I could access them.  If not, then I should generate an
array.

The Right Thing To Do, however, is probably not directly generate
bindings (as I am doing), but generate a C++ program that, when run,
emits the unambiguous bindings.

Again, thanks for all the help!

-jm

-- 
==== John Morrison
==== MAK Technologies Inc.
==== 10 Fawcett Street, Cambridge, MA 02138
==== http://www.mak.com/
==== vox:617-876-8085 x115
==== fax:617-876-9208
==== jm at mak.com




More information about the gccxml mailing list