freebsd-src/contrib/less/xbuf.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
433 B
C
Raw Normal View History

2021-07-18 05:00:54 +00:00
#ifndef XBUF_H_
#define XBUF_H_
struct xbuffer
{
2023-05-01 08:22:19 +00:00
unsigned char *data;
2021-07-18 05:00:54 +00:00
int end;
int size;
};
void xbuf_init(struct xbuffer *xbuf);
2023-05-01 08:22:19 +00:00
void xbuf_deinit(struct xbuffer *xbuf);
2021-07-18 05:00:54 +00:00
void xbuf_reset(struct xbuffer *xbuf);
2023-05-01 08:22:19 +00:00
void xbuf_add_byte(struct xbuffer *xbuf, unsigned char b);
void xbuf_add_data(struct xbuffer *xbuf, unsigned char *data, int len);
2022-09-05 23:57:47 +00:00
int xbuf_pop(struct xbuffer *xbuf);
2023-05-01 08:22:19 +00:00
char *xbuf_char_data(struct xbuffer *xbuf);
2021-07-18 05:00:54 +00:00
#endif