eo: Fix compilation of benchmark

- Missing Eo* self in method declarations.
- Gcc complaining about variable-sized object being initialized.
This commit is contained in:
Lauro Moura 2016-06-04 13:51:42 -03:00 committed by Felipe Magno de Almeida
parent 96f0783e04
commit 3022503aa5
2 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@ typedef struct
int a;
} Simple_Public_Data;
EAPI void simple_a_set(int a);
EAPI void simple_a_set(Eo *self, int a);
/* Calls simple_other_call(other, obj) and then simple_other_call(obj, other)
* for 'times' times in order to grow the call stack on other objects. */
EAPI void simple_other_call(Eo *other, int times);
EAPI void simple_other_call(Eo*self, Eo *other, int times);
#define SIMPLE_CLASS simple_class_get()
const Eo_Class *simple_class_get(void);

View File

@ -50,7 +50,7 @@ bench_eo_callbacks_call(int request)
const int len = EINA_C_ARRAY_LENGTH(distribution);
int i, j;
Eo *obj[len] = { 0 };
Eo *obj[len];
for (i = 0 ; i < len ; i++)
{
obj[i] = eo_add(SIMPLE_CLASS, NULL);