diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2013-07-31 23:49:45 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2013-09-17 22:37:00 +0200 |
commit | b66c222b87e6ababe77f735192c8dbc4b3c1ad43 (patch) | |
tree | 70ffd0e3e4bca60bda544ab44c49dd687c3286e7 | |
parent | 3cd72582367d91346919bc1a715cad1f937039ab (diff) | |
download | efl-b66c222b87e6ababe77f735192c8dbc4b3c1ad43.tar.gz |
sprinkle with 'const'
-rw-r--r-- | src/lib/eo/Eo.h | 6 | ||||
-rw-r--r-- | src/lib/eo/eo.c | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index 26551bd225..91a9954508 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -708,11 +708,11 @@ EAPI Eo_Op eo2_api_op_id_get(const void *api_func, const Eo_Op_Type); // gets the real function pointer and the object data #define eo2_call_resolve(op, call) eo2_call_resolve_internal(NULL, op, call) -EAPI Eina_Bool eo2_call_resolve_internal(const Eo_Class *klass, Eo_Op op, Eo2_Op_Call_Data *call); +EAPI Eina_Bool eo2_call_resolve_internal(const Eo_Class *klass, const Eo_Op op, Eo2_Op_Call_Data *call); // start of eo2_do barrier, gets the object pointer and ref it, put it on the stask -EAPI Eina_Bool eo2_do_start(Eo *obj_id, Eina_Bool do_super); -EAPI Eina_Bool eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super); +EAPI Eina_Bool eo2_do_start(Eo *obj_id, const Eina_Bool do_super); +EAPI Eina_Bool eo2_class_do_start(const Eo_Class *klass_id, const Eina_Bool do_super); // end of the eo2_do barrier, unref the obj, move the stack pointer EAPI void eo2_do_end(Eo **ojb); diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index d193fe323e..381d411a67 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -98,7 +98,7 @@ _dich_func_get(const _Eo_Class *klass, Eo_Op op) } static inline void -_dich_func_set(_Eo_Class *klass, Eo_Op op, eo_op_func_type func) +_dich_func_set(const _Eo_Class *klass, Eo_Op op, eo_op_func_type func) { size_t idx1 = DICH_CHAIN1(op); Dich_Chain1 *chain1 = &klass->chain[idx1]; @@ -304,7 +304,7 @@ eo2_call_stack_depth() } EAPI Eina_Bool -eo2_do_start(Eo *obj_id, Eina_Bool do_super) +eo2_do_start(Eo *obj_id, const Eina_Bool do_super) { _Eo * obj; const _Eo_Class *klass; @@ -350,7 +350,7 @@ eo2_do_start(Eo *obj_id, Eina_Bool do_super) } EAPI Eina_Bool -eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super EINA_UNUSED) +eo2_class_do_start(const Eo_Class *klass_id, const Eina_Bool do_super) { Eo2_Stack_Frame *fptr; const _Eo_Class *klass; @@ -390,7 +390,7 @@ eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super EINA_UNUSED) } static inline void -_eo2_do_end(Eina_Bool obj_do) +_eo2_do_end(const Eina_Bool obj_do) { Eo2_Stack_Frame *fptr; @@ -423,7 +423,7 @@ eo2_class_do_end(const Eo_Class **klass_id EINA_UNUSED) } EAPI Eina_Bool -eo2_call_resolve_internal(const Eo_Class *klass_id, Eo_Op op, Eo2_Op_Call_Data *call) +eo2_call_resolve_internal(const Eo_Class *klass_id, const Eo_Op op, Eo2_Op_Call_Data *call) { Eo2_Stack_Frame *fptr; const _Eo * obj; @@ -560,7 +560,7 @@ eo2_api_funcs_cmp(const void *p1, const void *p2) } EAPI void -_eo2_class_funcs_set(_Eo_Class *klass) +_eo2_class_funcs_set(const _Eo_Class *klass) { int op_id; const Eo2_Op_Description *api_desc; |