diff util.c @ 630:46fcab5ff44e

Use the new th_growbuf module.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 20:01:08 +0300
parents 97a49a6cc959
children 5b059a85cab8
line wrap: on
line diff
--- a/util.c	Sat Jun 21 06:38:54 2014 +0300
+++ b/util.c	Sat Jun 21 20:01:08 2014 +0300
@@ -4,6 +4,7 @@
  * (C) Copyright 2008-2013 Tecnic Software productions (TNSP)
  */
 #include "util.h"
+#include "th_growbuf.h"
 #include <time.h>
 
 
@@ -48,8 +49,8 @@
 }
 
 
-#define PUSHCHAR(x) th_vputch(&result, &resSize, &resPos, x)
-#define PUSHSTR(x) th_vputs(&result, &resSize, &resPos, x)
+#define PUSHCHAR(x) th_strbuf_putch(&result, &resSize, &resPos, x)
+#define PUSHSTR(x) th_strbuf_puts(&result, &resSize, &resPos, x)
 
 char *nn_encode_str1(const char *str)
 {