Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef SNOWBALL_API_H_INCLUDED
#define SNOWBALL_API_H_INCLUDED
 
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 snowball_runtime.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;
    int af;
};
 
#ifdef __cplusplus
extern "C" {
#endif
 
extern struct SN_env * SN_new_env(int alloc_size);
extern void SN_delete_env(struct SN_env * z);
 
extern int SN_set_current(struct SN_env * z, int size, const symbol * s);
 
#ifdef __cplusplus
}
#endif
 
#endif