summaryrefslogtreecommitdiff
path: root/upb/upb.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2016-11-29 18:44:41 +0000
committerJosh Haberman <jhaberman@gmail.com>2016-11-29 18:44:41 +0000
commit16ca9309b35ddadd103d1542818ea75f0a567c92 (patch)
treefc79dab4ae279a5ae85bba54ec57e98c352dbcc7 /upb/upb.h
parent4b0c4ca7fb0aa9207af3398e04534b23fbb88f27 (diff)
Removed some temporary code and fixed a few tests.
Diffstat (limited to 'upb/upb.h')
-rw-r--r--upb/upb.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/upb/upb.h b/upb/upb.h
index aafc993..a23f413 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -511,6 +511,7 @@ bool upb_arena_addcleanup(upb_arena *a, upb_cleanup_func *func, void *ud);
size_t upb_arena_bytesallocated(const upb_arena *a);
void upb_arena_setnextblocksize(upb_arena *a, size_t size);
void upb_arena_setmaxblocksize(upb_arena *a, size_t size);
+UPB_INLINE upb_alloc *upb_arena_alloc(upb_arena *a) { return (upb_alloc*)a; }
UPB_END_EXTERN_C
@@ -591,10 +592,6 @@ struct upb_arena {
void *future2;
};
-UPB_BEGIN_EXTERN_C
-UPB_INLINE upb_alloc *upb_arena_alloc(upb_arena *a) { return &a->alloc; }
-UPB_END_EXTERN_C
-
/* upb::Environment ***********************************************************/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback