diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-21 01:11:32 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-21 01:11:32 +0000 |
| commit | 140d4ebcb46e17cdb1be43892ed797e5e060c8ef (patch) | |
| tree | f99d209dbe5e40dcb434c3841e0c8b4ff383f453 /src/include/snowball/libstemmer/api.h | |
| parent | 4e94d1f952c3ce5670ceae3c12b55e344503a701 (diff) | |
| download | postgresql-140d4ebcb46e17cdb1be43892ed797e5e060c8ef.tar.gz | |
Tsearch2 functionality migrates to core. The bulk of this work is by
Oleg Bartunov and Teodor Sigaev, but I did a lot of editorializing,
so anything that's broken is probably my fault.
Documentation is nonexistent as yet, but let's land the patch so we can
get some portability testing done.
Diffstat (limited to 'src/include/snowball/libstemmer/api.h')
| -rw-r--r-- | src/include/snowball/libstemmer/api.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/snowball/libstemmer/api.h b/src/include/snowball/libstemmer/api.h new file mode 100644 index 0000000000..8b997f0c29 --- /dev/null +++ b/src/include/snowball/libstemmer/api.h @@ -0,0 +1,26 @@ + +typedef unsigned char symbol; + +/* Or replace 'char' above with 'short' for 16 bit characters. + + More precisely, replace 'char' with whatever type guarantees the + character width you need. Note however that sizeof(symbol) should divide + HEAD, defined in header.h as 2*sizeof(int), without remainder, otherwise + there is an alignment problem. In the unlikely event of a problem here, + consult Martin Porter. + +*/ + +struct SN_env { + symbol * p; + int c; int l; int lb; int bra; int ket; + symbol * * S; + int * I; + unsigned char * B; +}; + +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, int S_size); + +extern int SN_set_current(struct SN_env * z, int size, const symbol * s); + |
