1 May 2006 16:56
Re: PHP Latest
Olly Betts <olly <at> survex.com>
2006-05-01 14:56:28 GMT
2006-05-01 14:56:28 GMT
I think I've now done everything we need for wrapping Xapian, apart from handling method names which clash with PHP reserved words (e.g empty, clone). However, for a general SWIG solution a few more things are still missing. Here's the latest version: http://www.oligarchy.co.uk/xapian/patches/swig-php-gen-oo-wrappers9.patch http://www.oligarchy.co.uk/xapian/patches/xapian9.phps http://www.oligarchy.co.uk/xapian/patches/xapian_wrap9.cc On Fri, Apr 21, 2006 at 04:45:45AM +0100, Olly Betts wrote: > TODO: > > * Use parameter names instead of $argN. Done - we now build parameters by joining the different possible names in overloaded variants with "_or_". An unnamed parameter is called "argN" (e.g. "int foo(int)" -> "function foo($arg0)"). > * Handle a parameter called $this gracefully. > * Check a duplicate parameter name is handled OK, and fix if not. Both done, and so is $r - any parameter name which clashes with a previous name just gets underscores appended until it no longer clashes. > * Handle any non-covariant class return value without swig_wrap_return. Done. > * Perhaps handle covariant class return by checking against the known(Continue reading)
)
The only reason for having a standalone result file is that I don't know
how to produce multiple outputs from a stylesheet, but I think that it
can be an advantage : easy to download, to print, to mail and so on.
Generating this doc from a Xapian distribution requires three steps :
1. ask Doxygen to produce xml output (as a quick test, I directly
modified "xapian-core/docs/doxygen_api_conf", setting GENERATE_XML to
"YES" and ran "doxygen doxygen_api_conf", but the way to go is probably
: change the ".in" file, ./configure --enable-maintainer-mode, make docs
or something like that). The xml output is generated in "docs/apidoc/xml/".
RSS Feed