diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 13:08:11 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-01 13:08:11 -0400 |
| commit | c0c6fe863f8e074cbe8297b5da2a476f455b6518 (patch) | |
| tree | 276bd5a52eec5eb6b2d4980adefb1bf5255951b6 /src/stdlib/integers.c | |
| parent | a571ccffd795a595e990a3405dcf977aafc33c6c (diff) | |
Make Texts() macro a bit more flexible.
Diffstat (limited to 'src/stdlib/integers.c')
| -rw-r--r-- | src/stdlib/integers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/integers.c b/src/stdlib/integers.c index 7dda77bd..5dc9ac55 100644 --- a/src/stdlib/integers.c +++ b/src/stdlib/integers.c @@ -618,6 +618,8 @@ void Int32$deserialize(FILE *in, void *outval, List_t *pointers, const TypeInfo_ return colorize ? Texts(Text("\033[35m"), text, Text("\033[m")) : text; \ } \ public \ + Text_t KindOfInt##$value_as_text(c_type i) { return _int64_to_text((int64_t)i); } \ + public \ PUREFUNC int32_t KindOfInt##$compare(const void *x, const void *y, const TypeInfo_t *info) { \ (void)info; \ return (*(c_type *)x > *(c_type *)y) - (*(c_type *)x < *(c_type *)y); \ |
