Commit graph

53 commits

Author SHA1 Message Date
Alex Shinn
f60298b707 Initial half and quarter precision uniform vectors.
Quarter precision is 1.5.2 format.
Used to implement f16-storage-class and f8-storage-class.
Can be disabled at compile time.
2024-05-24 19:04:44 +09:00
chk-jxcn
767bb8a5f9
Fix #880
Fix issue of can't load symbol when load from image, which cause by add extra "(sexp_proc1)" before function name.
Error message: "dynamic function lookup failure: <static> (sexp_proc1)sexp_get_sha_stub"
2023-02-20 02:53:56 +08:00
Alex Shinn
cee932d2dc add ffi support for movable parameters 2022-10-19 17:53:01 +09:00
Lassi Kortela
3a5f884144 Simplify snprintf usage
snprintf(buf, sizeof(buf), ...) is the canonical idiom.
2021-08-07 23:17:38 +03:00
Alex Shinn
4907d53922 make pid_t and some other POSIX integer types signed (issue #769) 2021-08-04 16:26:11 +09:00
Marc Nieper-Wißkirchen
1f9b4796d6 Parse syntax-rules more strictly
See issue #767.
2021-08-03 17:05:37 +02:00
Alex Shinn
7854371728 ensure ffi assertions are a proper list 2021-07-28 10:25:18 +09:00
Alex Shinn
d11106b2f7 Fix upper bounds checks in u64vectors. 2021-04-30 14:02:29 +09:00
Alex Shinn
487ea21d77 check value domains on uvector-set! ops 2021-04-16 10:13:37 +09:00
Alex Shinn
edcddd7299 fixing 64-bit uvectors 2020-07-27 16:08:24 +09:00
Alex Shinn
80d2db51d8 fix sexp_opcode_argn_type initialization with gaps between the 3rd arg and k>4th arg 2020-06-19 16:45:41 +09:00
Alex Shinn
6f1cf6588f fix ffi type annotations 2020-05-31 23:39:55 +09:00
Alex Shinn
f1b6e6bf69 adding inline ffi stubs and assertions 2020-05-31 23:23:08 +09:00
Alex Shinn
95310e5823 no more strcpy/sprintf (issue #653) 2020-05-27 18:35:18 +09:00
Alex Shinn
f74c34b99b make-promise is idempotent (issue #625) 2020-04-10 17:17:29 +09:00
Alex Shinn
d5b5a079f4 initial uvector ffi support 2019-12-17 23:48:26 +08:00
Alex Shinn
8ea1852ac1 adding (chibi pty) 2019-08-19 23:03:09 +08:00
Alex Shinn
83cfc7dd53 adding len limit on ffi auto-expand vars (issue #553) 2019-08-15 23:42:17 +08:00
Alex Shinn
2b4394ea74 adding initial support for SRFI 160 uniform vectors 2019-01-15 23:43:50 +08:00
Alex Shinn
bce1e6a4d2 adding define-c-strerror 2018-07-23 23:59:52 +08:00
Alex Shinn
17102697e9 no need to zero out calloc result in ffi 2018-07-16 23:33:00 +08:00
Alex Shinn
bfcab41056 add cc command line to ffi debug output 2018-05-12 07:39:26 +08:00
Alex Shinn
d8e2e4aa54 add support for user-defined error types and functions in ffi, address-of, frameworks 2018-04-14 23:22:02 +09:00
Brian Caine
a0dfe647cd Just went with the existing string-split 2017-08-08 01:19:19 -04:00
Brian Caine
90e2cb1aa6 Added c-flags-from-script to chibi-ffi 2017-08-06 04:04:08 -04:00
Brian Caine
212231dca6 Added *cflags* global to chibi-ffi 2017-08-06 03:49:55 -04:00
Alex Shinn
50d7cedb3f Fixing constructors and setters for nested structs (issue #370). 2016-07-06 23:22:04 +09:00
Alex Shinn
cccfe33f7f patch from kipples for ffi struct args (fixes issue #330) 2016-05-18 22:36:59 +09:00
Alex Shinn
0c80f38a19 making string-cursors a disjoint type 2016-03-29 22:25:09 +09:00
Chris Walsh
2005c19ea0 Added full support for packed images, both for static and dynamic libraries. 2016-02-15 21:12:58 -05:00
Alex Shinn
2e4d0aed91 Handling non-pointer struct return types in the ffi. We do a flat memcopy
of the struct to heap.  Only the base case is supported - combining with
multiple values or returning fixed-size arrays of structs won't work.
Fixes issue #270.
2015-06-22 23:01:44 +09:00
Alex Shinn
2f27dbb5bc Allowing overriding the c compiler in chibi-ffi. 2015-05-09 21:50:27 +09:00
Alex Shinn
7d697c29c0 adding c-link to chibi-ffi 2015-05-09 21:08:18 +09:00
Alex Shinn
214a1aaf78 C++ FFI fixes. 2015-03-06 17:41:29 +09:00
Alex Shinn
692a231091 merge 2015-02-13 19:04:59 +09:00
Alex Shinn
a958987144 FFI updates: adding ffi-include, length in values, bugfix cast in calloc. 2015-02-13 19:00:41 +09:00
Alex Shinn
9007d1675e fixing -c in chibi-ffi 2015-02-12 23:50:15 +09:00
Alex Shinn
2922ed591d Forgot to install regexp (patch from Lorenzo) 2015-01-26 08:06:59 +09:00
Alex Shinn
7156ce08b2 Fixing copy/paste error in inlined `remove' in chibi-ffi. 2015-01-22 11:25:11 +09:00
Alex Shinn
8975586ffe Fixing recent chibi-ffi -c breakage (patch from Lorenzo). 2015-01-14 06:26:43 +09:00
Alex Shinn
94002d2134 Adding a --features command-line option to chibi-ffi and chibi-genstatic.
Needed for cross-compiling.
2015-01-04 23:31:41 -05:00
Alex Shinn
8dedc36609 For FFI setters/getters, don't set the type field length which has different assumptions.
Check the existence and length of the corresponding vector instead.
2015-01-03 23:43:02 -05:00
Alex Shinn
0cce37aaa8 Removing unecessary mangling. By default strip namespace prefixes from class names. 2014-12-26 11:04:13 +09:00
Alex Shinn
aafc97acc0 Including local source files verbatim in FFI.
Moving huff includes to include dir.
2014-12-25 13:47:24 +09:00
Alex Shinn
b78187c89b Adding virtual FFI accessors. 2014-12-25 13:14:09 +09:00
Alex Shinn
b3f794568e Various C++ FFI improvements. 2014-12-22 18:18:52 +09:00
Alex Shinn
ba11e996e6 Adding bounds checking for slot-ref/set!. 2014-12-14 15:16:12 +09:00
Alex Shinn
b7265fcc49 Also tracking slot names for FFI types. 2014-12-13 16:04:07 +09:00
Alex Shinn
7f3c503dcd Tracking FFI type getters and setters. 2014-12-13 15:17:17 +09:00
Alex Shinn
d10de2f613 Better error message in parse-func. 2014-08-24 22:46:06 +09:00