Skgland
9376bc6369
fix mthom/scryer-prolog#3073
2025-09-27 22:48:05 +02:00
Skgland
78c08b87b6
cleanup ffi error handling and use Atom instead of &str in appropriate places
2025-08-26 00:01:35 +02:00
Skgland
3b5b768f4a
make ffi error structure not found point to the correct culprit
2025-08-24 19:56:26 +02:00
Skgland
20d52c093a
add ffi:{allocate,read_ptr,deallocate}
2025-08-24 19:56:23 +02:00
Skgland
e1a52a4dde
allow passing a null through a cstr arg/return
2025-08-08 22:45:24 +02:00
Bennet Bleßmann
0c2c6124eb
support cstr as an ffi return type and do some more restructuring
2025-08-01 19:41:56 +02:00
Bennet Bleßmann
36bdab84ba
further cleanup
...
- replace macros with functions
- stop abusing allocation error
2025-08-01 19:10:49 +02:00
Bennet Bleßmann
cf51338a77
further ffi cleanup
2025-08-01 19:10:38 +02:00
Bennet Bleßmann
f738b42e49
don't panic on unexpected/invalid value
2025-08-01 19:10:27 +02:00
Bennet Bleßmann
f45426e8ab
also accept rust type name
2025-08-01 19:10:15 +02:00
Bennet Bleßmann
3d2439c92b
use libffi::middle instead of libffi::low were possible
2025-08-01 19:09:56 +02:00
Bennet Bleßmann
bd1f8bb37e
make ffi support full {i,u}64 range
2025-08-01 19:07:07 +02:00
Bennet Bleßmann
d2502b0520
fix all but {i,u}64
2025-08-01 18:37:35 +02:00
Bennet Bleßmann
34eab2e73a
fix crash when trying to load and ffi library with an invalid type specification
2025-08-01 18:22:15 +02:00
Bennet Bleßmann
495bcd73f2
fix unecessary return
2025-07-31 21:46:52 +02:00
bakaq
a9847eef65
Migrate to strict and exposed provenance
2025-07-07 22:38:12 -07:00
bakaq
ca173873af
Update dependencies and fix breaking changes in libffi-sys and arcu
2025-05-13 19:53:13 -03:00
Mark Thom
90f4716cc3
Merge branch 'null-stream-safety' of https://github.com/adri326/scryer-prolog into adri326-null-stream-safety
2025-04-29 23:32:48 -07:00
Bennet Bleßmann
cc51b8150d
check whether (re-)allocation succeeded
...
fixes mthom/scryer-prolog#2449
2024-08-11 19:20:33 +02:00
Bennet Bleßmann
b1f057b67d
resolve problems from deps upgrade
...
- downgrade reqwest to 0.11.27
- fixes problems with missmatched transitive dependencies between it and warp, mainly http
- replace deprecated ripemd160 with ripemd (as specified in the formers readme)
- indexmap: replace deprecated remove with functionally identical swap_remove
2024-08-04 01:57:25 +02:00
Bennet Bleßmann
ed57ef3d01
clippy: identity conversion
2024-07-06 13:06:50 +02:00
Bennet Bleßmann
467a82fe46
run rustfmt
2024-07-06 04:18:02 +02:00
Adrián Arroyo Calle
a72632ae85
Manage Float and Double FFI types in structs
2024-06-06 22:18:17 +02:00
Mark
614850ab1d
fmt
2024-02-05 18:34:57 -07:00
infogulch
9444e62df9
Resolve lints and format
2023-11-04 02:16:54 -05:00
Skgland
86166dbf25
[WIP] make AtomTable concurrentcy ready
2023-09-05 19:12:22 +02:00
Skgland
b2130c2a48
run cargo fmt
2023-09-05 19:12:17 +02:00
Adrián Arroyo Calle
73df96244d
Fill more cases
2023-03-01 22:13:04 +01:00
Adrián Arroyo Calle
0ac93751d0
FFI: Documentation
2023-02-28 22:09:35 +01:00
Adrián Arroyo Calle
f94294dbd9
FFI: Nested structs
2023-02-26 20:48:00 +01:00
Adrián Arroyo Calle
92b262d599
Macroization of the code
2023-02-25 22:27:28 +01:00
Adrián Arroyo Calle
9d52d2a653
MVP of Foreign Function Interface
2023-02-22 23:10:03 +01:00