[KinoSearch] Missing XSUB functions
Andreas Altergott
altergott at mira-consulting.net
Wed Mar 18 13:42:04 PDT 2009
Hi,
There's something I don't understand. No matter how much I keep on
reading the code over and over, and no matter where I'm trying to find a
solution on the net, I just don't get it.
I'm unable to see how Perl calls a C function in KinoSearch. This
concerns all Perl modules with C code in KinoSearch as far as I have seen.
I'm used to have a .xs file containing an entry like
int
foo(bar)
int bar
But there are no .xs files in KinoSearch. There are though __XS__ and
__AUTO_XS__ areas inside the module files. But again there's nothing
mentioned about foo(bar).
So how does Perl now, that if I call KinoSearch::Doc->new it should call
Doc* Doc_new(void *fields, i32_t doc_num, float boost)?
I assume it has something to do with the boilerplater which also does a
lot of dark Voodoo :-D
Would the test file 200-doc be a binding or a core test?
Bindings are probably calls from the external application or cgi to the
library. So in this case 200-doc would be a binding.
Bindings should be tested in Perl then, or concerning lucy in the
language it will be called.
Core tests are internals of the library, which are unaccessible to
externals. This ones have to be tested in C.
Please tell me, if I'm wrong.
Thanks,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
Url : http://rectangular.com/pipermail/kinosearch/attachments/20090318/001ee3b1/attachment.pgp
More information about the kinosearch
mailing list