[Snowball-discuss] call stemmer from C++
James Aylett
james@tartarus.org
Thu Apr 24 13:09:01 2003
On Thu, Apr 24, 2003 at 03:55:31AM -0600, Martin Porter wrote:
> I've altered the generated C so that headers include the Olly-recommended
> ifdefs [for supporting C++].
>
> Should there be similar ifdefs surrounding the externs defined in
> q/header.h ?
If I understand the structure of Snowball correctly, q/header.h is
part of the source code for the Snowball compiler - and therefore does
not need such ifdefs.
They're only needed in headers that will be used to link a
Snowball-generated stemmer into another program (ie: any files
generated by Snowball, plus the files needed to use them; and
libstemmer, which already has the ifdefs, I think).
I've never been able to remember which directory is which in Snowball,
so I could be missing the point here :)
James
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james@tartarus.org uncertaintydivision.org