Re: [Snowball-discuss] call stemmer from C++

From: James Aylett (james@tartarus.org)
Date: Thu Apr 24 2003 - 13:09:01 BST


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



This archive was generated by hypermail 2.1.3 : Thu Sep 20 2007 - 12:02:44 BST