Re: Generic CClosure marshaller using libffi
- From: Johan Dahlin <jdahlin async com br>
- To: Behdad Esfahbod <behdad behdad org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, Tim Janik <timj imendio com>
- Subject: Re: Generic CClosure marshaller using libffi
- Date: Tue, 30 Jan 2007 18:13:48 -0200
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]