Commit Graph

90 Commits

Author SHA1 Message Date
Terry Moore
6caabd198e Correct typos in libffi.texi
One "it's" should be "its", and one "is" should be "in".
2017-02-26 15:06:53 -05:00
Yousong Zhou
e247b562ac doc: fix typo
Name of last argument to ffi_get_struct_offsets is `offsets`, not `sizes`

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2016-08-15 17:36:02 +08:00
Anthony Green
9de24a3ff3 Merge pull request #212 from tromey/struct-layout
add ffi_get_struct_offsets
2016-03-14 13:54:53 -04:00
Tom Tromey
38a4d72c95 add ffi_get_struct_offsets 2016-02-22 16:07:55 -07:00
Tom Tromey
6dd5fd5a64 fix documentation building
An earlier patch added --disable-docs, but went too far, making it
impossible to build the docs.

It turns out that Automake seemingly has a bug preventing the
conditional build of an info file.  So, this patch works around the
bug by putting the info_TEXINFOS rule into a new doc/Makefile.am.

Tested by building with and without --disable-docs and looking for the
existence of doc/libffi.info.
2016-02-22 15:49:43 -07:00
Anthony Green
e7c713a0b6 Merge pull request #214 from tromey/document-enum-support
document (lack of) enum handling in libffi
2016-02-20 06:40:03 -05:00
Tom Tromey
6affad7911 correctly document closure return promotion 2015-12-17 16:59:11 -07:00
Tom Tromey
8a7cdeb041 fix formatting of ffi_prep_closure_loc arguments 2015-12-17 16:58:23 -07:00
Tom Tromey
f45e9e3570 document (lack of) enum handling in libffi 2015-11-19 15:21:14 -07:00
Anthony Green
88deacdd42 speling fix 2015-11-15 08:39:17 -05:00
Tom Tromey
473bcbcad3 documentation fixes
Fixes #78.  Documentation for #33 and #35, but no fix.
2015-11-10 16:14:02 -07:00
Anthony Green
e9de7e35f2 Merge pull request #202 from tromey/note-prep-cif-var-usage
document that there must be ntotalargs types
2015-10-11 10:54:50 -04:00
Tom Tromey
0ebde2d24a document that there must be ntotalargs types 2015-10-06 11:42:43 -06:00
Tom Tromey
36f3fb9141 Add missing "@" to @var{} 2015-10-05 10:20:05 -06:00
Anthony Green
db1b34b7e1 Remove incomplete sentence 2015-01-28 18:08:06 -05:00
Anthony Green
20562ac042 Fix for AArch64. Release as 3.2.1. 2014-11-12 07:00:59 -05:00
Anthony Green
ee826b933b Final 3.2 changes 2014-11-11 07:29:26 -05:00
Dominik Vogt
6e8a446083 2014-07-22 Dominik Vogt <vogt@linux.vnet.ibm.com>
* src/types.c (FFI_TYPEDEF, FFI_NONCONST_TYPEDEF): Merge the macros by
	adding another argument that controls whether the result is const or not
	(FFI_LDBL_CONST): Temporary macro to reduce ifdef confusion
	* src/prep_cif.c (ffi_prep_cif_core): Replace list of systems with new
	macro FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION
	* src/pa/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION):
	Define.
	* src/s390/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION):
	Define.
	* src/x86/ffitarget.h (FFI_TARGET_SPECIFIC_STACK_SPACE_ALLOCATION):
	Define.

2014-07-22  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* doc/libffi.texi (Primitive Types): Document ffi_type_complex_float,
	ffi_type_complex_double and ffi_type_complex_longdouble
	(Complex Types): New subsection.
	(Complex Type Example): Ditto.
	* testsuite/libffi.call/cls_align_complex_double.c: New
	FFI_TYPE_COMPLEX test.
	* testsuite/libffi.call/cls_align_complex_float.c: Ditto.
	* testsuite/libffi.call/cls_align_complex_longdouble.c: Ditto.
	* testsuite/libffi.call/cls_complex_double.c: Ditto.
	* testsuite/libffi.call/cls_complex_float.c: Ditto.
	* testsuite/libffi.call/cls_complex_longdouble.c: Ditto.
	* testsuite/libffi.call/cls_complex_struct_double.c: Ditto.
	* testsuite/libffi.call/cls_complex_struct_float.c: Ditto.
	* testsuite/libffi.call/cls_complex_struct_longdouble.c: Ditto.
	* testsuite/libffi.call/cls_complex_va_double.c: Ditto.
	* testsuite/libffi.call/cls_complex_va_float.c: Ditto.
	* testsuite/libffi.call/cls_complex_va_longdouble.c: Ditto.
	* testsuite/libffi.call/complex_double.c: Ditto.
	* testsuite/libffi.call/complex_defs_double.c: Ditto.
	* testsuite/libffi.call/complex_float.c: Ditto.
	* testsuite/libffi.call/complex_defs_float.c: Ditto.
	* testsuite/libffi.call/complex_longdouble.c: Ditto.
	* testsuite/libffi.call/complex_defs_longdouble.c: Ditto.
	* testsuite/libffi.call/complex_int.c: Ditto.
	* testsuite/libffi.call/many_complex_double.c: Ditto.
	* testsuite/libffi.call/many_complex_float.c: Ditto.
	* testsuite/libffi.call/many_complex_longdouble.c: Ditto.
	* testsuite/libffi.call/return_complex1_double.c: Ditto.
	* testsuite/libffi.call/return_complex1_float.c: Ditto.
	* testsuite/libffi.call/return_complex1_longdouble.c: Ditto.
	* testsuite/libffi.call/return_complex2_double.c: Ditto.
	* testsuite/libffi.call/return_complex2_float.c: Ditto.
	* testsuite/libffi.call/return_complex2_longdouble.c: Ditto.
	* testsuite/libffi.call/return_complex_double.c: Ditto.
	* testsuite/libffi.call/return_complex_float.c: Ditto.
	* testsuite/libffi.call/return_complex_longdouble.c: Ditto.
	* src/raw_api.c (ffi_raw_to_ptrarray): Handle FFI_TYPE_COMPLEX
	(ffi_ptrarray_to_raw): Ditto.
	* src/prep_cif.c (ffi_prep_cif_core): Abort if FFI_TYPE_COMPLEX is not
	implemented in libffi for the target.
	* src/java_raw_api.c (ffi_java_raw_size): FFI_TYPE_COMPLEX not supported
	yet (abort).
	(ffi_java_raw_to_ptrarray): Ditto.
	(ffi_java_rvalue_to_raw): Ditto.
	(ffi_java_raw_to_rvalue):  Ditto.
	* src/debug.c (ffi_type_test): Add debug tests for complex types.
	* include/ffi.h.in (FFI_TYPE_COMPLEX): Add new FFI_TYPE_COMPLEX.
	(FFI_TYPE_LAST): Bump.
	(ffi_type_complex_float): Add new ffi_type_....
	(ffi_type_complex_double): Ditto.
	(ffi_type_complex_longdouble): Ditto.

2014-07-22  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* src/s390/ffitarget.h (FFI_TARGET_HAS_COMPLEX_TYPE): Define to provide
	FFI_TYPE_COMPLEX support.
	* src/s390/ffi.c (ffi_check_struct_type): Implement FFI_TYPE_COMPLEX
	(ffi_prep_args): Ditto.
	(ffi_prep_cif_machdep): Ditto.
	(ffi_closure_helper_SYSV): Ditto.
2014-09-20 06:24:41 -04:00
Anthony Green
57465744b6 Update to version 3.1 2014-05-11 10:30:22 -04:00
Anthony Green
93a24f216b Merge pull request #80 from ueno/devel
Fix typo in doc
2014-04-12 19:38:07 -04:00
Josh Triplett
eef2e02a13 doc: Remove autogenerated info file and stamp 2014-03-16 06:26:03 -07:00
Daiki Ueno
2349fec9a8 Fix typo in doc 2014-03-05 17:56:02 +09:00
Anthony Green
634a475eaf Update Makefile for new darwin scripts 2014-03-01 18:37:29 -05:00
Andrew Haley
31257b3189 Fix sample closure code 2013-11-16 06:35:51 -05:00
Alan Modra
58c2577a3f This enshrines the current testsuite practice of using ffi_arg for
returned values.  It would be reasonable and logical to use the actual
return argument type as passed to ffi_prep_cif, but this would mean
changing a large number of tests that use ffi_arg and all backends
that write results to an ffi_arg.
2013-11-13 16:55:36 -05:00
Anthony Green
cf6bf9818e Fix up docs 2013-11-02 17:23:59 -04:00
Anthony Green
d2fcbcdfbe Add m88k and VAX support. Update some configury bits. 2013-10-08 06:27:46 -04:00
Anthony Green
f22ab3c687 Merge branch 'master' of github.com:/atgreen/libffi 2013-03-17 18:37:50 -04:00
Anthony Green
12b1886d7b cygwin fix & updates for 3.0.13 2013-03-17 18:33:59 -04:00
Anthony Green
d08124bedf cygwin fix & updates for 3.0.13 2013-03-17 18:32:12 -04:00
Anthony Green
cb32c812d0 Fix lib install dir 2013-03-17 09:27:55 -04:00
Anthony Green
efd7866a36 2.0.13rc1 2013-03-16 08:35:57 -04:00
Anthony Green
675c983922 Documentation fix 2013-03-16 08:12:38 -04:00
Anthony Green
215763d012 Update configury. 2013-03-16 07:57:35 -04:00
Anthony Green
f308faf1ea Add moxie support. Release 3.0.12. 2013-02-11 14:25:13 -05:00
Anthony Green
cb03ea8f4e sparc v9 fixes for sun tools 2013-02-08 12:25:18 -05:00
Anthony Green
9db7e1a958 Fix botched sparc patch. Update version. 2013-02-07 21:06:08 -05:00
Anthony Green
c4dfa259eb Bump soversion 2013-02-06 17:43:24 -05:00
Anthony Green
20cae32b15 Xtensa support 2013-01-21 07:07:38 -05:00
Anthony Green
3ee74fd6dc Update documentation version. 2013-01-10 17:15:03 -05:00
Anthony Green
f06c0f1037 Add missing ChangeLog entry and generated files. 2013-01-02 09:39:17 -05:00
Anthony Green
048d2f41c3 Rebase 2012-10-11 10:55:25 -04:00
Anthony Green
ff3d76fd42 3.0.11 2012-04-11 23:16:48 -04:00
Anthony Green
10d1e51393 Update to rc4. Upgrade autoconf version. 2012-04-06 11:58:33 -04:00
Anthony Green
59bb61a366 Update libtool version, README, tests dists 2012-04-06 08:26:14 -04:00
Anthony Green
84d3253f86 Rebase post GCC merge 2012-03-19 23:07:35 -04:00
Anthony Green
d578b89619 Fix ABI check regression 2012-02-15 00:18:18 -05:00
Anthony Green
1ff9c604bb Rebase from GCC 2012-02-01 16:34:30 -06:00
Anthony Green
211060eb8f Alpha fix 2012-01-23 14:24:01 -05:00
Anthony Green
c365ee7577 Refresh 2012-01-23 11:13:18 -05:00