Re: Are you aware of SWIG?

From: Date: Fri, 17 May 2002 21:03:39 +0000
Subject: Re: Are you aware of SWIG?
References: 1  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-general+get-1405@lists.php.net to get a copy of this message
Martin --- Martin Jansen <mail@martin-jansen.de> wrote: > On Fri, 17 May 2002 11:30:28 +0100, Sam Liddicott wrote: > > >Anyway, as PEAR can include C modules I was wondering if some of the rules > >could be relaxed regarding coding standards. > > What do you mean by "relaxed". You can either use the PHP coding standards > in PECL or the PEAR coding standards if you want in PEAR. Chances are low > that we'll change the standards. "Relaxed" from the point of view that the C code for a SWIG-generate dwrapper has all the bits needed for interface to PHP, but it also has some SWIG extra definitions there. The functions themselves might not look pretty, but they work well most of the time. Sometimes manual tweaking is needed, but it is rare. For example, wrapping a complex lib like GSL (Gnu Scientific Library) can be made simpler w/ SWIG rather than using the ext_skel script from php4/ext, and then editing manually the config.m4, Makefile.in, etc. I am not too clear about the existence of PECL code standards (unless I had completely missed that in the in the documentation and discussion in pear-dev). AFAIK there are only coding standars for classes written in PHP, not in C. See: http://pear.php.net/manual/en/faq.c-module.php So I do not see the problem of adding SWIG-generated C wrappers. ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) Research: http://metallo.scripps.edu/ Personal: http://www.castagnetto.org/ __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com

« previous php.pear.general (#1405) next »