diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-17 20:35:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-17 20:35:09 -0400 |
| commit | f4e38fd061a158ecb94881273c6db6e6a332f61d (patch) | |
| tree | 9179cb312dcc1b24d806dfb65694c25580d1ed8b /src/stdlib/optionals.h | |
| parent | 602cedd03b0c3d6ef176efafb08f51bde9bfe543 (diff) | |
Switch from using dollar signs as namespace delimiters to using 々, ヽ, andunicode-identifiers
〇.
Diffstat (limited to 'src/stdlib/optionals.h')
| -rw-r--r-- | src/stdlib/optionals.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/stdlib/optionals.h b/src/stdlib/optionals.h index 5be52e93..223cf47b 100644 --- a/src/stdlib/optionals.h +++ b/src/stdlib/optionals.h @@ -19,24 +19,24 @@ #define NONE_PATH ((Path_t){.type=PATH_NONE}) PUREFUNC bool is_none(const void *obj, const TypeInfo_t *non_optional_type); -PUREFUNC uint64_t Optional$hash(const void *obj, const TypeInfo_t *type); -PUREFUNC int32_t Optional$compare(const void *x, const void *y, const TypeInfo_t *type); -PUREFUNC bool Optional$equal(const void *x, const void *y, const TypeInfo_t *type); -Text_t Optional$as_text(const void *obj, bool colorize, const TypeInfo_t *type); -void Optional$serialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type); -void Optional$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_t *type); - -#define Optional$metamethods { \ - .hash=Optional$hash, \ - .compare=Optional$compare, \ - .equal=Optional$equal, \ - .as_text=Optional$as_text, \ - .serialize=Optional$serialize, \ - .deserialize=Optional$deserialize, \ +PUREFUNC uint64_t Optionalヽhash(const void *obj, const TypeInfo_t *type); +PUREFUNC int32_t Optionalヽcompare(const void *x, const void *y, const TypeInfo_t *type); +PUREFUNC bool Optionalヽequal(const void *x, const void *y, const TypeInfo_t *type); +Text_t Optionalヽas_text(const void *obj, bool colorize, const TypeInfo_t *type); +void Optionalヽserialize(const void *obj, FILE *out, Table_t *pointers, const TypeInfo_t *type); +void Optionalヽdeserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_t *type); + +#define Optionalヽmetamethods { \ + .hash=Optionalヽhash, \ + .compare=Optionalヽcompare, \ + .equal=Optionalヽequal, \ + .as_text=Optionalヽas_text, \ + .serialize=Optionalヽserialize, \ + .deserialize=Optionalヽdeserialize, \ } -#define Optional$info(_size, _align, t) &((TypeInfo_t){.size=_size, .align=_align, \ +#define Optionalヽinfo(_size, _align, t) &((TypeInfo_t){.size=_size, .align=_align, \ .tag=OptionalInfo, .OptionalInfo.type=t, \ - .metamethods=Optional$metamethods}) + .metamethods=Optionalヽmetamethods}) // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
