diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-10-24 20:11:12 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-10-24 20:11:12 -0700 |
commit | dd3106ef1c7503f6567a580031cfd1cf58ccb877 (patch) | |
tree | c280225ad250b9a0cc505249bd5f64d667723e48 /src/buffer.c | |
parent | c818df9888d452f0ae54b3a504eefdd970fd73d8 (diff) | |
parent | cfd6fea109e26f79781ca1404e12f20efee6697c (diff) |
Merge branch 'master' of https://github.com/abduelhamit/stmd into abduelhamit-master
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 2e32720..aab1f08 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -19,6 +19,8 @@ unsigned char strbuf__oom[1]; if ((d) > buf->asize && strbuf_grow(b, (d)) < 0) \ return -1; +#define MIN(x,y) ((x<y) ? x : y) + void strbuf_init(strbuf *buf, int initial_size) { buf->asize = 0; |