type #t, an enum's constants and the bitwise names

None had a rule. A constant is typed as its enum, where C says int, so
that the enum's ops are found through it. And bit-and, bit-not and the
rest were respelled bit_and before fmt-c could see them, and called.
This commit is contained in:
2026-10-19 13:38:30 +03:00
parent 91246940e5
commit 2d7f58e15e
3 changed files with 36 additions and 4 deletions

View File

@@ -170,6 +170,10 @@ forms, and what remains."
((¤) 'vector-ref)
((include) '%include)
((static-assert) '_Static_assert)
;; fmt-c's own names for these: respelled bit_and they were calls
((bit-and bit-or bit-xor bit-not bit-or=
bitwise-and bitwise-ior bitwise-xor bitwise-not bitwise-ior=)
atom)
;; a `|' inside a symbol has to be escaped to be written in
;; a Scheme source, so we just rename it in fmt-c compatible
;; way