From f8663fc16fc1082b72ab721f5a6b3781543293a8 Mon Sep 17 00:00:00 2001 From: Brent Miller Date: Thu, 20 Aug 2009 06:41:32 +0000 Subject: [PATCH] * Correct comment describing printbuf_memappend in printbuf.h git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@52 327403b1-1117-474d-bef2-5cb71233fd97 --- ChangeLog | 3 +++ printbuf.h | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index dddd9959..1a90e105 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ + * Correction to comment describing printbuf_memappend in printbuf.h + Brent Miller, bdmiller at yahoo dash inc dot com + 0.9 * Add README.html README-WIN32.html config.h.win32 to Makefile.am Michael Clark, diff --git a/printbuf.h b/printbuf.h index 53fa9216..5d4963f0 100644 --- a/printbuf.h +++ b/printbuf.h @@ -31,10 +31,12 @@ struct printbuf { extern struct printbuf* printbuf_new(void); -/* As an optimization, printbuf_memappend is defined as a macro that - * handles copying data if the buffer is large enough; otherwise it - * invokes printbuf_memappend_real() which performs the heavy lifting - * of realloc()ing the buffer and copying data. +/* As an optimization, printbuf_memappend_fast is defined as a macro + * that handles copying data if the buffer is large enough; otherwise + * it invokes printbuf_memappend_real() which performs the heavy + * lifting of realloc()ing the buffer and copying data. + * Your code should not use printbuf_memappend directly--use + * printbuf_memappend_fast instead. */ extern int printbuf_memappend(struct printbuf *p, const char *buf, int size); -- 2.47.2