diff options
author | Andrew Haley <aph@redhat.com> | 2009-06-04 15:50:24 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2009-06-04 15:50:24 +0000 |
commit | 96baa25172614b39544214a199635a1cbc9632e0 (patch) | |
tree | b8834c17e7b79b7960b9b74c1cef37451b8fcdf4 /libffi | |
parent | 7446546ab02823b356570bf5b4280375fd646f99 (diff) | |
download | gcc-96baa25172614b39544214a199635a1cbc9632e0.zip gcc-96baa25172614b39544214a199635a1cbc9632e0.tar.gz gcc-96baa25172614b39544214a199635a1cbc9632e0.tar.bz2 |
ffi.h.in: Change void (*)() to void (*)(void).
2009-06-04 Andrew Haley <aph@redhat.com>
* include/ffi.h.in: Change void (*)() to void (*)(void).
* src/x86/ffi.c: Likewise.
From-SVN: r148173
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/include/ffi.h.in | 6 | ||||
-rw-r--r-- | libffi/src/x86/ffi.c | 12 |
3 files changed, 14 insertions, 9 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 7f7d128..0b26cf5 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,5 +1,10 @@ 2009-06-04 Andrew Haley <aph@redhat.com> + * include/ffi.h.in: Change void (*)() to void (*)(void). + * src/x86/ffi.c: Likewise. + +2009-06-04 Andrew Haley <aph@redhat.com> + * src/powerpc/ppc_closure.S: Insert licence header. * src/powerpc/linux64_closure.S: Likewise. * src/m68k/sysv.S: Likewise. diff --git a/libffi/include/ffi.h.in b/libffi/include/ffi.h.in index 5f4c1c1..ea45f95 100644 --- a/libffi/include/ffi.h.in +++ b/libffi/include/ffi.h.in @@ -222,7 +222,7 @@ typedef ffi_raw ffi_java_raw; void ffi_raw_call (ffi_cif *cif, - void (*fn)(), + void (*fn)(void), void *rvalue, ffi_raw *avalue); @@ -235,7 +235,7 @@ size_t ffi_raw_size (ffi_cif *cif); /* longs and doubles are followed by an empty 64-bit word. */ void ffi_java_raw_call (ffi_cif *cif, - void (*fn)(), + void (*fn)(void), void *rvalue, ffi_java_raw *avalue); @@ -349,7 +349,7 @@ ffi_status ffi_prep_cif(ffi_cif *cif, ffi_type **atypes); void ffi_call(ffi_cif *cif, - void (*fn)(), + void (*fn)(void), void *rvalue, void **avalue); diff --git a/libffi/src/x86/ffi.c b/libffi/src/x86/ffi.c index 5e09bedb..2bca56e 100644 --- a/libffi/src/x86/ffi.c +++ b/libffi/src/x86/ffi.c @@ -180,15 +180,15 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif) } extern void ffi_call_SYSV(void (*)(char *, extended_cif *), extended_cif *, - unsigned, unsigned, unsigned *, void (*fn)()); + unsigned, unsigned, unsigned *, void (*fn)(void)); #ifdef X86_WIN32 extern void ffi_call_STDCALL(void (*)(char *, extended_cif *), extended_cif *, - unsigned, unsigned, unsigned *, void (*fn)()); + unsigned, unsigned, unsigned *, void (*fn)(void)); #endif /* X86_WIN32 */ -void ffi_call(ffi_cif *cif, void (*fn)(), void *rvalue, void **avalue) +void ffi_call(ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue) { extended_cif ecif; @@ -391,16 +391,16 @@ ffi_prep_args_raw(char *stack, extended_cif *ecif) extern void ffi_call_SYSV(void (*)(char *, extended_cif *), extended_cif *, unsigned, - unsigned, unsigned *, void (*fn)()); + unsigned, unsigned *, void (*fn)(void)); #ifdef X86_WIN32 extern void ffi_call_STDCALL(void (*)(char *, extended_cif *), extended_cif *, unsigned, - unsigned, unsigned *, void (*fn)()); + unsigned, unsigned *, void (*fn)(void)); #endif /* X86_WIN32 */ void -ffi_raw_call(ffi_cif *cif, void (*fn)(), void *rvalue, ffi_raw *fake_avalue) +ffi_raw_call(ffi_cif *cif, void (*fn)(void), void *rvalue, ffi_raw *fake_avalue) { extended_cif ecif; void **avalue = (void **)fake_avalue; |