mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Add less 643
This commit is contained in:
parent
0ed7309fdb
commit
128be2bd2e
61 changed files with 33791 additions and 2853 deletions
19
third_party/less/xbuf.h
vendored
Normal file
19
third_party/less/xbuf.h
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef XBUF_H_
|
||||
#define XBUF_H_
|
||||
|
||||
struct xbuffer
|
||||
{
|
||||
unsigned char *data;
|
||||
int end;
|
||||
int size;
|
||||
};
|
||||
|
||||
void xbuf_init(struct xbuffer *xbuf);
|
||||
void xbuf_deinit(struct xbuffer *xbuf);
|
||||
void xbuf_reset(struct xbuffer *xbuf);
|
||||
void xbuf_add_byte(struct xbuffer *xbuf, unsigned char b);
|
||||
void xbuf_add_data(struct xbuffer *xbuf, unsigned char *data, int len);
|
||||
int xbuf_pop(struct xbuffer *xbuf);
|
||||
char *xbuf_char_data(struct xbuffer *xbuf);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue