eo: Fix compilation of benchmark
- Missing Eo* self in method declarations. - Gcc complaining about variable-sized object being initialized.
This commit is contained in:
parent
96f0783e04
commit
3022503aa5
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue