|
|
|
@ -222,7 +222,7 @@ UPB_INLINE void *upb_arena_realloc(upb_arena *a, void *ptr, size_t oldsize, |
|
|
|
|
return upb_realloc(upb_arena_alloc(a), ptr, oldsize, size); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
UPB_INLINE upb_arena *upb_arena_new() { |
|
|
|
|
UPB_INLINE upb_arena *upb_arena_new(void) { |
|
|
|
|
return upb_arena_init(NULL, 0, &upb_alloc_global); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -287,7 +287,7 @@ template <int N> class upb::InlinedArena : public upb::Arena { |
|
|
|
|
/* Constants ******************************************************************/ |
|
|
|
|
|
|
|
|
|
/* Generic function type. */ |
|
|
|
|
typedef void upb_func(); |
|
|
|
|
typedef void upb_func(void); |
|
|
|
|
|
|
|
|
|
/* A list of types as they are encoded on-the-wire. */ |
|
|
|
|
typedef enum { |
|
|
|
|