This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: ffi_type_pointer
- From: Bruce Korb <bruce dot korb at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: libffi-discuss at sourceware dot org
- Date: Mon, 27 Apr 2015 12:17:39 -0700
- Subject: Re: ffi_type_pointer
- Authentication-results: sourceware.org; auth=none
'ffi_type_pointer'
A generic 'void *' pointer. You should use this for all pointers,
regardless of their real type. BE CAREFUL HERE. In libffi, there
is a difference between an array and a pointer. In C, an array
yields an address of the array and libffi expects the value array
to have a pointer to the address of the array -- a pointer to pointer.
And I still have no idea what to make about the discussion of
modifying passed values.