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