From eeff3e898c47315ffbdc260fc5259293481d04c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 27 Jul 2013 22:42:24 +0200 Subject: [PATCH] eo2: EO2_CALL_STACK_SIZE -> EO2_CALL_STACK_DEPTH --- src/lib/eo/eo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 65ead71cb4..9632aa83ef 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -275,7 +275,7 @@ _eo2_kls_itr_next(const _Eo_Class *orig_kls, const _Eo_Class *cur_klass) // FIXME: per thread stack, grow/shrink #define EO2_INVALID_DATA (void *) -1 -#define EO2_CALL_STACK_SIZE 5 +#define EO2_CALL_STACK_DEPTH 5 typedef struct _Eo2_Stack_Frame { Eo *obj_id; @@ -286,7 +286,7 @@ typedef struct _Eo2_Stack_Frame } Eo2_Stack_Frame; typedef struct _Eo2_Call_Stack { - Eo2_Stack_Frame stack[EO2_CALL_STACK_SIZE]; + Eo2_Stack_Frame stack[EO2_CALL_STACK_DEPTH]; Eo2_Stack_Frame *frame_ptr; } Eo2_Call_Stack; @@ -333,7 +333,7 @@ eo2_do_start(Eo *obj_id, Eina_Bool do_super) fptr = eo2_call_stack.frame_ptr; - if ((fptr - eo2_call_stack.stack) >= EO2_CALL_STACK_SIZE) + if ((fptr - eo2_call_stack.stack) >= EO2_CALL_STACK_DEPTH) ERR("eo2 call stack overflow !!!"); _eo_ref(obj);