PostgreSQL Source Code
git master
api.h
Go to the documentation of this file.
1
#ifndef SNOWBALL_API_H_INCLUDED
2
#define SNOWBALL_API_H_INCLUDED
3
4
typedef
unsigned
char
symbol
;
5
6
/* Or replace 'char' above with 'short' for 16 bit characters.
7
8
More precisely, replace 'char' with whatever type guarantees the
9
character width you need. Note however that sizeof(symbol) should divide
10
HEAD, defined in snowball_runtime.h as 2*sizeof(int), without remainder,
11
otherwise there is an alignment problem. In the unlikely event of a problem
12
here, consult Martin Porter.
13
*/
14
15
struct
SN_env
{
16
symbol
*
p
;
17
int
c
;
int
l
;
int
lb
;
int
bra
;
int
ket
;
18
int
af
;
19
};
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
extern
struct
SN_env
*
SN_new_env
(
int
alloc_size);
26
extern
void
SN_delete_env
(
struct
SN_env
* z);
27
28
extern
int
SN_set_current
(
struct
SN_env
* z,
int
size,
const
symbol
* s);
29
30
#ifdef __cplusplus
31
}
32
#endif
33
34
#endif
symbol
unsigned char symbol
Definition:
api.h:4
SN_set_current
int SN_set_current(struct SN_env *z, int size, const symbol *s)
Definition:
api.c:25
SN_delete_env
void SN_delete_env(struct SN_env *z)
Definition:
api.c:18
SN_new_env
struct SN_env * SN_new_env(int alloc_size)
Definition:
api.c:5
SN_env
Definition:
api.h:15
SN_env::af
int af
Definition:
api.h:18
SN_env::lb
int lb
Definition:
api.h:17
SN_env::p
symbol * p
Definition:
api.h:16
SN_env::ket
int ket
Definition:
api.h:17
SN_env::c
int c
Definition:
api.h:17
SN_env::bra
int bra
Definition:
api.h:17
SN_env::l
int l
Definition:
api.h:17
src
include
snowball
libstemmer
api.h
Generated on Thu Jan 8 2026 06:13:16 for PostgreSQL Source Code by
1.9.4