diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 18:44:41 +0000 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-11-29 18:44:41 +0000 |
commit | 16ca9309b35ddadd103d1542818ea75f0a567c92 (patch) | |
tree | fc79dab4ae279a5ae85bba54ec57e98c352dbcc7 /upb/upb.h | |
parent | 4b0c4ca7fb0aa9207af3398e04534b23fbb88f27 (diff) |
Removed some temporary code and fixed a few tests.
Diffstat (limited to 'upb/upb.h')
-rw-r--r-- | upb/upb.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 ***********************************************************/ |