1
0
forked from alex-eg/sex

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 2024d4d0f4
commit 4bdc0e57a7
3 changed files with 36 additions and 4 deletions

View File

@@ -166,6 +166,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