1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Update Snowball. I have to update it because of

old version doesn't available on Snowball's site and new version
of stemmers can't be compiled with old interface.
This commit is contained in:
Teodor Sigaev
2005-09-15 11:56:58 +00:00
parent 8080e8e8ce
commit b4d107a777
11 changed files with 2223 additions and 2305 deletions

View File

@@ -11,24 +11,17 @@ typedef unsigned char symbol;
*/
struct SN_env
{
symbol *p;
int c;
int a;
int l;
int lb;
int bra;
int ket;
int S_size;
int I_size;
int B_size;
symbol **S;
int *I;
symbol *B;
struct SN_env {
symbol * p;
int c; int a; int l; int lb; int bra; int ket;
int S_size; int I_size; int B_size;
symbol * * S;
int * I;
symbol * B;
};
extern struct SN_env *SN_create_env(int S_size, int I_size, int B_size);
extern struct SN_env * SN_create_env(int S_size, int I_size, int B_size);
extern void SN_close_env(struct SN_env * z);
extern void SN_set_current(struct SN_env * z, int size, const symbol * s);
extern int SN_set_current(struct SN_env * z, int size, const symbol * s);