changeset 327:fae4651d37bc

Make th_growbuf() public.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jun 2011 15:08:51 +0300
parents 2f7849e505f3
children a8bda904846c
files th_string.c th_string.h
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
     
--- 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);