diff options
author | Daniel Llorens <lloda@sarc.name> | 2021-11-11 15:47:42 +0100 |
---|---|---|
committer | Daniel Llorens <lloda@sarc.name> | 2021-11-15 11:34:09 +0100 |
commit | 496f69dba2fdf1720b40349932fcdecd444107c3 (patch) | |
tree | dc850c5afca668788a24350c0464f1eb817ea353 /NEWS | |
parent | 24116be822c96741eacd667e4e3507300c596cba (diff) | |
download | guile-496f69dba2fdf1720b40349932fcdecd444107c3.tar.gz |
Support C99 complex types in (system foreign)
* libguile/foreign.h (SCM_FOREIGN_TYPE_COMPLEX_FLOAT,
SCM_FOREIGN_TYPE_COMPLEX_DOUBLE): New enums.
* module/system/foreign.scm (complex-float, complex-double): Export new types.
(make-c-struct, parse-c-struct): Support the new types.
* libguile/foreign.c (complex-float, complex-double): Define new types.
(alignof, sizeof, pack, unpack): Support the new types.
* test-suite/tests/foreign.test: Test.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -49,6 +49,11 @@ Bytevectors" in the manual. Compared to the previous versions, these accept range arguments. See "Accessing and Modifying Vector Contents" in the manual. +** (system foreign) supports C99 complex types + +The types `complex-float' and `complex-double' stand for C99 `float +_Complex' and `double _Complex` respectively. + Changes in 3.0.7 (since 3.0.6) |