When trying to use the swish-e API from a C++ program, I notice that
the documentation and the implementation disagree on the `const'-ness
of a number of parameters. In particular, SwishQuery has, according to
the documentation, the signature
SW_RESULTS SwishQuery(SW_HANDLE, const char *words);
but in swish-e.h the `const' is missing. There are more.
Relatedly, shouldn't it be:
SwishInit(const char *IndexFiles);
This is mainly a problem because g++ causes an error on this kind of
difference, making it much harder to use the library.
Kees van Reeuwijk, Delft University of Technology
Received on Mon Jul 14 13:22:49 2003