From 7d3e2bd2c4cfd1296d1d6f996d7548de26540d41 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Fri, 15 Feb 2013 16:27:18 -0800 Subject: Sync with 8 months of Google-internal development. Many things have changed and been simplified. The memory-management story for upb_def and upb_handlers is much more robust; upb_def and upb_handlers should be fairly stable interfaces now. There is still much work to do for the runtime component (upb_sink). --- upb/bytestream.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'upb/bytestream.c') diff --git a/upb/bytestream.c b/upb/bytestream.c index a242df4..8473f33 100644 --- a/upb/bytestream.c +++ b/upb/bytestream.c @@ -7,11 +7,13 @@ #include "upb/bytestream.h" -#include #include #include -char *upb_byteregion_strdup(const struct _upb_byteregion *r) { + +/* upb_byteregion *************************************************************/ + +char *upb_byteregion_strdup(const upb_byteregion *r) { char *ret = malloc(upb_byteregion_len(r) + 1); upb_byteregion_copyall(r, ret); ret[upb_byteregion_len(r)] = '\0'; -- cgit v1.2.3