From 5743636ad19eafb11eddeefd29f2803052dadff2 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 9 Jun 2010 20:28:44 -0700 Subject: Decoder compiler but doesn't work yet. --- src/upb_string.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/upb_string.h') diff --git a/src/upb_string.h b/src/upb_string.h index 2c0303d..9a3957c 100644 --- a/src/upb_string.h +++ b/src/upb_string.h @@ -28,6 +28,7 @@ #include #include #include "upb_atomic.h" +#include "upb.h" #ifdef __cplusplus extern "C" { @@ -35,7 +36,7 @@ extern "C" { // All members of this struct are private, and may only be read/written through // the associated functions. Also, strings may *only* be allocated on the heap. -typedef struct _upb_string { +struct _upb_string { char *ptr; uint32_t len; uint32_t size; @@ -46,7 +47,7 @@ typedef struct _upb_string { // Used if this string is referencing external unowned memory. upb_atomic_refcount_t reader_count; } extra; -} upb_string; +}; // Returns a newly-created, empty, non-finalized string. When the string is no // longer needed, it should be unref'd, never freed directly. -- cgit v1.2.3