xapian-core  2.1.0
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.
10 */
11 
12 struct SN_env {
13  symbol * p;
14  int c; int l; int lb; int bra; int ket;
15  int af;
16 #ifdef __cplusplus
17  SN_env() : p(), c(), l(), lb(), bra(), ket(), af() { }
18 #endif
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
unsigned char symbol
Definition: api.h:4
int SN_set_current(struct SN_env *z, int size, const symbol *s)
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
Definition: api.h:12
int af
Definition: api.h:15
int lb
Definition: api.h:14
symbol * p
Definition: api.h:13
int ket
Definition: api.h:14
int c
Definition: api.h:14
int bra
Definition: api.h:14
int l
Definition: api.h:14