From: Roy Sutton <roys@mi...> - 2006-09-28 18:43:22
[ Accidently replied directly to Olly. Forwarding the message and
Olly's helpful response to the list for archiving]
On Wed, Sep 27, 2006 at 04:55:41PM -0400, Roy Sutton wrote:
> > Sorry, I should have been more clear. AFAICT those are unused now. At
> > the top of that file is:
> > #if !defined(SWIG_USE_OLD_TYPEMAPS)
> > %include <typemaps/typemaps.swg>
> > #else
> > So that code isn't used.
Hmm, looks like Ruby's using the UTL now. That's a maze of macros which
I don't really understand in detail yet (I had a go at tracking down a
perl bug and just got lost).
The basic idea is that each language defines "fragments" for operations
like "convert Ruby variable to C integer" and then these are combined by
a framework of language independent macros, which the language can
override if it has peculiar requirements. Look in Lib/typemaps for
the language independent stuff (start with the README).
In particular, I think you want to look at:
So it looks like Ruby's NUM2LONG is used instead of NUM2INT.
Get latest updates about Open Source Projects, Conferences and News.