s/qmail 4.3.20
Next generation secure email transport
Loading...
Searching...
No Matches
token822.h
Go to the documentation of this file.
1#ifndef TOKEN822_H
2#define TOKEN822_H
3
4#include "genalloc.h"
5
6struct token822 {
7 int type;
8 char *s;
9 int slen;
10};
11
12GEN_ALLOC_typedef(token822_alloc,struct token822,t,len,a)
13
14int token822_parse(token822_alloc *,stralloc *,stralloc *);
15int token822_addrlist(token822_alloc *,token822_alloc *,token822_alloc *,int (*)());
16int token822_unquote(stralloc *,token822_alloc *);
17int token822_unparse(stralloc *,token822_alloc *,unsigned int);
18void token822_reverse(token822_alloc *);
19// GEN_ALLOC definitions follow
20//void token822_free(); // void token822_free(token_822_alloc *) // not used
21//int token822_ready(); // int token822_ready(token_822_alloc *,unsigned int);
22//int token822_readyplus(); // int token822_readyplus(token_222_alloc *,unsigned int);
23//int token822_append(); // int token822_append(token_822_alloc *,struct token822 *);
24void token822_free(token822_alloc *); // not used
25int token822_ready(token822_alloc *,unsigned int);
26int token822_readyplus(token822_alloc *,unsigned int);
27int token822_append(token822_alloc *,struct token822 *);
28
29#define TOKEN822_ATOM 1
30#define TOKEN822_QUOTE 2
31#define TOKEN822_LITERAL 3
32#define TOKEN822_COMMENT 4
33#define TOKEN822_LEFT 5
34#define TOKEN822_RIGHT 6
35#define TOKEN822_AT 7
36#define TOKEN822_COMMA 8
37#define TOKEN822_SEMI 9
38#define TOKEN822_COLON 10
39#define TOKEN822_DOT 11
40
41#endif
int slen
Definition: token822.h:9
char * s
Definition: token822.h:8
int type
Definition: token822.h:7
int token822_parse(token822_alloc *ta, stralloc *sa, stralloc *buf)
Definition: token822.c:220
int token822_append(token822_alloc *, struct token822 *)
stralloc stralloc *int token822_addrlist(token822_alloc *, token822_alloc *, token822_alloc *, int(*)())
Definition: token822.c:378
int token822_unquote(stralloc *, token822_alloc *)
Definition: token822.c:168
void token822_reverse(token822_alloc *)
Definition: token822.c:9
int token822_ready(token822_alloc *, unsigned int)
GEN_ALLOC_typedef(token822_alloc, struct token822, t, len, a) int token822_parse(token822_alloc *
int token822_unparse(stralloc *, token822_alloc *, unsigned int)
Definition: token822.c:72
void token822_free(token822_alloc *)
int token822_readyplus(token822_alloc *, unsigned int)