On Sat, 23 Aug 2014 11:35:05 +0100
Emmanuele Bassi wrote:
> hi;
>
> On 23 August 2014 11:18, Iñigo Martínez
> wrote:
> > Yes, it works, but i doesn't look like the best approach:
> >
> > warning: ISO C forbids passing argument 3 of 'g_hash_table_insert'
> > between function pointer and 'void *'
hi;
On 23 August 2014 11:18, Iñigo Martínez wrote:
> Yes, it works, but i doesn't look like the best approach:
>
> warning: ISO C forbids passing argument 3 of 'g_hash_table_insert'
> between function pointer and 'void *' [-Wpedantic]
drop `-Wpedantic`: it doesn't serve any practical purposes. i
Yes, it works, but i doesn't look like the best approach:
warning: ISO C forbids passing argument 3 of 'g_hash_table_insert'
between function pointer and 'void *' [-Wpedantic]
Thank you for your answer,
2014-08-22 18:29 GMT+02:00 Emmanuele Bassi :
> hi;
>
> On 22 August 2014 17:10, Iñigo Martín
hi;
On 22 August 2014 17:10, Iñigo Martínez wrote:
> I am trying to figure out the best way to use function pointers as
> values in a GHashTable. My idea is to call different functions based
> on different keys (strings).
>
> Looking at the API, this looks impossible, as the values are gpointers
Hi,
I am trying to figure out the best way to use function pointers as
values in a GHashTable. My idea is to call different functions based
on different keys (strings).
Looking at the API, this looks impossible, as the values are gpointers
and not function pointers.
I'm thinking to wrap the func