plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

sx.h (325B)


      1 /*
      2  * S-expressions as used by IMAP.
      3  */
      4 
      5 enum
      6 {
      7 	SxUnknown = 0,
      8 	SxAtom,
      9 	SxString,
     10 	SxNumber,
     11 	SxList
     12 };
     13 
     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 };
     24 
     25 Sx*	Brdsx(Biobuf*);
     26 Sx*	Brdsx1(Biobuf*);
     27 void	freesx(Sx*);
     28 int	oksx(Sx*);
     29 int	sxfmt(Fmt*);
     30 int	sxwalk(Sx*);