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

Re: Perl bindings?

From: Dave Rolsky <autarch_at_urth.org>
Date: 2003-03-18 22:44:18 CET

On Tue, 18 Mar 2003, Paul Lussier wrote:

> > You'll see a bunch of helper code in here, and you'll probably need
> > some similar helper code for Perl.
>
> So, would I just add the helper code right into svn_fs.i, basically
> copying that python example? Woule I then have to write something
> analogous to swigutil_py.[ch] for perl as well?

You can't just copy the examples, because the whole point is that you need
to write Perl-specific pieces. In other words, you need to translate from
the C data structures used in Subversion to Perl-specific structures (SV,
AV, HV, etc.)

> >I'm not an expert by any means, but I've used it a bit before. If someone
> >else starts working on Perl bindings, I'll help if I can.
>
> I no longer have the confidence that I can do this. I know enough C
> to write some more or less trivial code, but I'm not at the level of
> being able to dig into someone elses code and understand what they're doing.

You don't need to a C expert. The tricky part is that you need to really
understand the target language's extension API resonably well to write the
bindings. The Jenness/Cozens book _Extending and Embedding Perl_ is a
really good resource for this.

-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 18 22:45:14 2003

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.