Commit Graph

9 Commits

Author SHA1 Message Date
2228ab3b50 fix variuos struct-related issues in fmt-c
There were bugs, when struct in arg list and pointers to structs among
struct fields produces such code as:

(fn puk ((arg (* struct foo))) ...) -> void puk(struct foo { *; } arg)

(struct l ((next (* struct l)))) -> struct l { struct l { *; } next };

And so on.
2025-10-30 18:05:44 +03:00
63918d23c0 fix newline and whitespace after braces in generated C blocks 2025-08-22 15:47:36 +03:00
c9848151d0 generate void in empty argument lists 2025-08-22 15:47:36 +03:00
103e95fcf7 don't use int as default type for variables, generate error instead 2025-08-22 15:47:36 +03:00
78977e988e add support for begin in Sex
begin-wrapped blocks are now creating lexical scopes
2025-08-22 15:47:36 +03:00
a6800aaeb6 fix nested structures in fmt-c 2025-08-06 15:38:04 +03:00
bf9b408c11 import srfi-13 to fmt-c unit 2025-08-05 02:03:01 +03:00
41c3f3bd98 make fmt-c a unit 2025-08-03 21:44:43 +03:00
3ad25b3788 make return explicit
Required pulling in fmt-c.scm file though :(
2025-08-03 19:01:19 +03:00