From 47e843263593ae476a4d1e8c3120104f90dacd18 Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Fri, 24 Aug 2012 21:03:07 +0000 Subject: [PATCH] Eina: upgrade eina_inarray_setup to eina_inarray_step_set Eina model was forgotten since it's been disabled, there's also a remaining doc reference to the old eina_inarray_setup() function; Patch by: Leandro Dorileo SVN revision: 75686 --- legacy/eina/src/include/eina_inarray.h | 2 +- legacy/eina/src/lib/eina_model.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eina/src/include/eina_inarray.h b/legacy/eina/src/include/eina_inarray.h index 5a9f9d99b3..034a11602b 100644 --- a/legacy/eina/src/include/eina_inarray.h +++ b/legacy/eina/src/include/eina_inarray.h @@ -76,7 +76,7 @@ * to ask eina to use a step of size 4 because that's how many elements we'll be * putting on the array: * @until _step_set - * @note Strictly speaking the reason to call eina_inarray_setup() is not + * @note Strictly speaking the reason to call eina_inarray_step_set() is not * because we're storing different type, but rather because our types have * different sizes. Eina inline arrays don't actually know anything about types, * they only deal in blocks of memory of a given size. diff --git a/legacy/eina/src/lib/eina_model.c b/legacy/eina/src/lib/eina_model.c index ee8e3e978b..22ca71867e 100644 --- a/legacy/eina/src/lib/eina_model.c +++ b/legacy/eina/src/lib/eina_model.c @@ -2769,7 +2769,7 @@ _eina_model_interface_children_inarray_setup(Eina_Model *model) DBG("setup interface children (inarray) at %p model %p (%s)", priv, model, model->desc->cache.types[0]->name); - eina_inarray_setup(priv, sizeof(Eina_Model *), 0); + eina_inarray_step_set(priv, sizeof(Eina_Inarray), sizeof(Eina_Model *), 0); return EINA_TRUE; }