Re: Generic CClosure marshaller using libffi



Behdad Esfahbod wrote:
> On Tue, 2007-01-30 at 08:22 -0500, Johan Dahlin wrote:
>> +  atypes = g_new (ffi_type *, n_args);
>> +  args =  g_new (gpointer, n_args); 
> 
> How about using gslice?
> 

Does it really make sense to use GSlice when allocating an array of
pointers? I thought it was mostly useful to allocate an array of
structures.

-- 
Johan Dahlin <jdahlin async com br>
Async Open Source



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]