Blob


1 /*
2 * S-expressions as used by IMAP.
3 */
5 enum
6 {
7 SxUnknown = 0,
8 SxAtom,
9 SxString,
10 SxNumber,
11 SxList
12 };
14 typedef struct Sx Sx;
15 struct Sx
16 {
17 int type;
18 char *data;
19 int ndata;
20 vlong number;
21 Sx **sx;
22 int nsx;
23 };
25 Sx* Brdsx(Biobuf*);
26 Sx* Brdsx1(Biobuf*);
27 void freesx(Sx*);
28 int oksx(Sx*);
29 int sxfmt(Fmt*);
30 int sxwalk(Sx*);