[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] perl bindings: FILE typemap fix.

From: Ben Reser <ben_at_reser.org>
Date: 2004-01-11 23:34:41 CET

This patch applies on top of the current pending large perl binding
patch. This should fix the problem clako noticed when trying to build
with SWIG 1.3.20, which doesn't seem to like the XS macros in the .i
files.

However, this doesn't just fix that, it's technically more correct. The
previous typemap didn't work right because the fileno call should have
been main::filno, was ugly in that it called perl space to do the
operation, and wasn't necessarily portable between perl
impelementations, since fileno doesn't necessarily always return a file
descriptor on every platform (e.g. HANDLE on Windows).

Anyway here's the patch.

[[[
* subversion/bindings/swig/core.i
    For the FILE * typemap in perl use perl's IO abstraction interface.
]]]

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Jan 11 23:35:06 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.