[Pyrex] Pyrex at Pycon

Bob Ippolito bob at redivi.com
Wed Mar 31 06:24:30 CEST 2004


On Mar 30, 2004, at 8:39 PM, Greg Ewing wrote:

> Bob Ippolito <bob at redivi.com>:
>
>> Well, it wouldn't be the worst thing in the world to process all the
>> system header files once (though caching this somewhere would be
>> awfully smart).
>
> I think you're missing the point. If you take the simplistic approach
> of just passing the .h file through the C preprocessor before
> translating, then the output is going to include the translations of
> everything included by that .h, whereas you really only want
> translations of what is defined in that particular .h. If you want
> translations of an included .h, you should be translating it
> separately.
>
> Otherwise there will be huge amounts of duplication in the
> translated definitions.

Oh, of course, that's all assuming that you can get something useful 
(for Pyrex) out of a C preprocessor.  I've played with it a bit, and 
I'm not so sure it's really worthwhile.

-bob





More information about the Pyrex mailing list