This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH] Add variadic support
On 25 February 2011 19:03, Anthony Green <green@redhat.com> wrote:
> Chung-Lin Tang <cltang@linaro.org> writes:
>> Anthony, as maintainer, do you have any ideas?
>>
>
> I always envisioned it working this way:
>
> ?- add a new FFI type, say FFI_TYPE_VARIADIC
> ?- users would just append this to the array of types when they
> ? ?create a cif for a variadic function
>
> No new API is required in this case. ?Wouldn't this work?
I think my main reason against that was it would require every backend
to be modified
to skip it (and skip a hole in the values array).
Dave