rename the reader's number record to number-literal

sex-fmt-c exports a c-literal? of its own, and the writer imports both;
which one it got depended on the order of its imports.
This commit is contained in:
2026-10-16 19:06:55 +03:00
parent dc163c1d49
commit 3d3a668790
3 changed files with 26 additions and 24 deletions

View File

@@ -12,7 +12,7 @@
sex-fmt-c
matchable
(chicken irregex) ; unkebabify
reader ; c-literal?
reader ; number-literal?
srfi-1 ; lists
srfi-13 ; strings
types ; array-bound?, named-arg?
@@ -339,7 +339,8 @@ forms, and what remains."
(remove comment-form? (cdr clause)))))
(if (pair? parts)
(fold (lambda (value seen)
(unless (or (number? value) (char? value) (c-literal? value)
(unless (or (number? value) (char? value)
(number-literal? value)
(and (symbol? value) (not (operator-arity value))))
(sex-error form "a case label is a value" (car parts)))
(when (member value seen)