# HG changeset patch # User Matti Hamalainen # Date 1307966931 -10800 # Node ID fae4651d37bcf22d107c8631ce29578c47fd8b44 # Parent 2f7849e505f30e02b31f8097176cde734b570fc5 Make th_growbuf() public. diff -r 2f7849e505f3 -r fae4651d37bc th_string.c --- a/th_string.c Mon Jun 13 06:59:31 2011 +0300 +++ b/th_string.c Mon Jun 13 15:08:51 2011 +0300 @@ -460,12 +460,8 @@ } -static BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow) +BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow) { - assert(buf != NULL); - assert(bufsize != NULL); - assert(len != NULL); - if (*buf == NULL) *bufsize = *len = 0; diff -r 2f7849e505f3 -r fae4651d37bc th_string.h --- a/th_string.h Mon Jun 13 06:59:31 2011 +0300 +++ b/th_string.h Mon Jun 13 15:08:51 2011 +0300 @@ -67,6 +67,7 @@ int th_get_hex_triplet(const char *); +BOOL th_growbuf(char **buf, size_t *bufsize, size_t *len, size_t grow); BOOL th_vputch(char **buf, size_t *bufsize, size_t *len, const char ch); BOOL th_vputs(char **buf, size_t *bufsize, size_t *len, const char *str);