make the wire types an enum
Explicit enum values are converted now (sex#46). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,12 +8,7 @@
|
||||
(pub include stddef.h)
|
||||
(include string.h)
|
||||
|
||||
;; TODO sex#46: make these a (pub enum wire ...) once explicit enum
|
||||
;; values are kebab-converted.
|
||||
(pub define WIRE-VARINT 0)
|
||||
(pub define WIRE-FIXED64 1)
|
||||
(pub define WIRE-BYTES 2)
|
||||
(pub define WIRE-FIXED32 5)
|
||||
(pub enum wire ((WIRE-VARINT 0) (WIRE-FIXED64 1) (WIRE-BYTES 2) (WIRE-FIXED32 5)))
|
||||
|
||||
(pub record pb ((p (* const u8)) (end (* const u8)) (err bool)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user