Commit graph

548 commits

Author SHA1 Message Date
Kristin Rutenkolk
10b8baafa2 refactor multimethod dispatch function to use ffirst 2025-01-02 23:44:26 +01:00
Kristin Rutenkolk
cb3e62057f fix mangled keyword in coffitype->typename 2025-01-02 23:40:05 +01:00
Joshua Suskalo
78d39b1541 Don't use underscore on used args
Signed-off-by: Kristin Rutenkolk <kristin.rutenkolk@hhu.de>
2025-01-02 23:33:12 +01:00
Joshua Suskalo
33e1a95ba9 Remove duplicate c-layout implementation
Signed-off-by: Kristin Rutenkolk <kristin.rutenkolk@hhu.de>
2025-01-02 23:33:05 +01:00
Joshua Suskalo
8ea121723c Fix warning about defstruct redefinition
Signed-off-by: Kristin Rutenkolk <kristin.rutenkolk@hhu.de>
2025-01-02 23:32:58 +01:00
Joshua Suskalo
d763b39b51 Use a once-only impl rather than with-typehints
Signed-off-by: Kristin Rutenkolk <kristin.rutenkolk@hhu.de>
2025-01-02 23:32:37 +01:00
Kristin Rutenkolk
51dfbc39ed fix array serialization 2024-12-29 17:54:40 +01:00
Kristin Rutenkolk
c49dc796b2 remove array-copy-method 2024-12-29 16:16:41 +01:00
Kristin Rutenkolk
869e6787fa refactor array serdes & auto-choose copy methods 2024-12-29 15:28:50 +01:00
Kristin Rutenkolk
18f5699f3a remove necessity to create array when deserializing 2024-12-29 11:32:31 +01:00
Kristin Rutenkolk
ab8cc0c859 fix write-byte typehint 2024-12-29 10:23:01 +01:00
Kristin Rutenkolk
7bcdb8c227 typehint inline functions 2024-12-28 01:08:45 +01:00
Kristin Rutenkolk
a358fb6d77 add array-copy-method var to switch behavior 2024-12-21 17:56:25 +01:00
Kristin Rutenkolk
0467fe6006 add native array read functions 2024-12-20 21:53:01 +01:00
Kristin Rutenkolk
b03635e231 rewrite write array functions to take a length parameter 2024-12-20 17:26:52 +01:00
Kristin Rutenkolk
d1f54b1e05 fix defstruct cons implementation for mapentries and respective type
hints
2024-12-20 11:30:13 +01:00
Kristin Rutenkolk
b2cc9e6549 remove maplike option from defstruct generation 2024-12-20 10:40:55 +01:00
Kristin Rutenkolk
f3f156c53a add suppoort for native array write functions 2024-12-19 16:11:00 +01:00
Kristin Rutenkolk
e648c26a25 clean up deserializing logic 2024-12-19 15:12:10 +01:00
Kristin Rutenkolk
0c84c323b3 make private with-c-layout implementation behave like the one in
`layout`
2024-12-19 14:17:18 +01:00
Kristin Rutenkolk
bba05c7dfd improve defstruct doc 2024-12-19 12:28:43 +01:00
Kristin Rutenkolk
87e9bb7a7b adjust tests to make use of :raw? option in arrays 2024-12-12 12:36:15 +01:00
Kristin Rutenkolk
86c4f99a3f add optional :raw? true option for arrays 2024-12-12 12:35:37 +01:00
Kristin Rutenkolk
ff0bd6c568 make multimethods hygenic 2024-12-08 12:40:00 +01:00
Kristin Rutenkolk
2b1d062277 add non raw array ffi test 2024-10-30 21:00:45 +01:00
Kristin Rutenkolk
d190873f72 add raw-arrays struct serde 2024-10-30 20:58:23 +01:00
Kristin Rutenkolk
56a0df3257 add :raw-arrays? option 2024-10-30 20:28:20 +01:00
Kristin Rutenkolk
69a99d5521 remove nested struct definition tests, as they seem to not find the
right types consistently
2024-10-30 15:17:11 +01:00
Kristin Rutenkolk
63e029dc51 fix mem test to not create structs in in are clauses 2024-10-30 15:13:42 +01:00
Kristin Rutenkolk
7ccaad988d add IFN implementation to structs 2024-10-30 15:12:40 +01:00
Kristin Rutenkolk
68d9108ccf fix ffi_test 2024-10-30 14:12:18 +01:00
Kristin Rutenkolk
eef2e56f7e improve sequences on structs 2024-10-30 13:28:49 +01:00
Kristin Rutenkolk
fc62e1f345 remove vector-native struct version 2024-10-30 11:59:46 +01:00
Kristin Rutenkolk
a8fca25f7c add ffi tests with structs 2024-10-28 22:47:38 +01:00
Kristin Rutenkolk
8fb300c5c9 fix string deserialization for strings in structs 2024-10-28 22:42:59 +01:00
Kristin Rutenkolk
9765ec0deb fix strings in defstruct 2024-10-28 22:18:49 +01:00
Kristin Rutenkolk
cec1a8a0a8 add tests for structs with array members 2024-10-28 21:29:23 +01:00
Kristin Rutenkolk
8844eef320 fix array handling code 2024-10-28 21:28:50 +01:00
Kristin Rutenkolk
43acc60784 add struct definition and instantiation tests 2024-10-28 15:46:06 +01:00
Kristin Rutenkolk
78164a12a7 add struct serialization tests 2024-10-28 14:35:54 +01:00
Kristin Rutenkolk
bbd01dc4a9 add equivalence tests 2024-10-28 14:35:40 +01:00
Kristin Rutenkolk
fd0f22fda5 implement java.util.Map and MapEquivalence 2024-10-28 14:35:01 +01:00
Kristin Rutenkolk
e5cd228f94 add map functionaliy test for struct 2024-10-24 14:42:31 +02:00
Kristin Rutenkolk
18679c435e fix struct entryAt 2024-10-24 14:38:09 +02:00
Kristin Rutenkolk
9404ef4cf8 fix struct assoc 2024-10-24 14:24:54 +02:00
Kristin Rutenkolk
003a7377dd fix struct map containsKey 2024-10-24 14:05:58 +02:00
Kristin Rutenkolk
ec418cb6c9 fix map cons 2024-10-24 13:45:16 +02:00
Kristin Rutenkolk
4c408043ec improve error message 2024-10-24 12:04:36 +02:00
Kristin Rutenkolk
b6f1e44ce0 make defstruct robust against dangling and unbound vars 2024-10-24 11:45:17 +02:00
Kristin Rutenkolk
020e10264f add error message for invalid type usage 2024-10-24 11:37:40 +02:00