diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 20:28:44 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 20:28:44 -0700 |
commit | 5743636ad19eafb11eddeefd29f2803052dadff2 (patch) | |
tree | 773a9d0254d8b27f2750ef2bc9ca8803e97082d0 /src/upb_string.h | |
parent | 992a03be55faf83d794b9ec5e8c4ca7e78c08a9b (diff) |
Decoder compiler but doesn't work yet.
Diffstat (limited to 'src/upb_string.h')
-rw-r--r-- | src/upb_string.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <assert.h> #include <string.h> #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. |