d317e17868d582ee315d6ca3e1487e2afbb6d3f4
[platform/upstream/less.git] / xbuf.h
1 #ifndef XBUF_H_
2 #define XBUF_H_
3
4 struct xbuffer
5 {
6         char *data;
7         int end;
8         int size;
9 };
10
11 void xbuf_init(struct xbuffer *xbuf);
12 void xbuf_reset(struct xbuffer *xbuf);
13 void xbuf_add(struct xbuffer *xbuf, int ch);
14 int xbuf_pop(struct xbuffer *xbuf);
15
16 #endif