fix warning: inlining failed in call to '_csi_stack_push'

This commit is contained in:
Adrian Johnson 2017-10-21 13:05:26 +10:30
parent b092b63119
commit 9ffbf63d37
2 changed files with 13 additions and 9 deletions

View file

@ -179,6 +179,17 @@ _csi_slab_free (csi_t *ctx, void *ptr, int size)
#endif #endif
} }
csi_status_t
_csi_stack_push (csi_t *ctx, csi_stack_t *stack,
const csi_object_t *obj)
{
if (_csi_unlikely (stack->len == stack->size))
return _csi_stack_push_internal (ctx, stack, obj);
stack->objects[stack->len++] = *obj;
return CSI_STATUS_SUCCESS;
}
static void static void
_csi_perm_fini (csi_t *ctx) _csi_perm_fini (csi_t *ctx)
{ {

View file

@ -916,16 +916,9 @@ csi_number_get_value (const csi_object_t *obj)
} }
} }
static inline csi_status_t csi_status_t
_csi_stack_push (csi_t *ctx, csi_stack_t *stack, _csi_stack_push (csi_t *ctx, csi_stack_t *stack,
const csi_object_t *obj) const csi_object_t *obj);
{
if (_csi_unlikely (stack->len == stack->size))
return _csi_stack_push_internal (ctx, stack, obj);
stack->objects[stack->len++] = *obj;
return CSI_STATUS_SUCCESS;
}
static inline csi_boolean_t static inline csi_boolean_t
_csi_check_ostack (csi_t *ctx, csi_integer_t count) _csi_check_ostack (csi_t *ctx, csi_integer_t count)