hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit a47cbb44ba562c81817dfcc21fac6fd3d112ef3c
parent f0c4a829872de88e71ac2d58579adfaf3b864f65
Author: Bor Grošelj Simić <bor.groseljsimic@telemach.net>
Date:   Sun, 28 Nov 2021 23:58:12 +0100

temporarily make enum char an enum u8

Char enums are not handled correctly in harec at present, but other bugs
were masking this until recently.

Signed-off-by: Bor Grošelj Simić <bor.groseljsimic@telemach.net>

Diffstat:
Mrt/+freebsd/types.ha | 2+-
Mrt/+linux/types.ha | 3++-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/rt/+freebsd/types.ha b/rt/+freebsd/types.ha @@ -196,7 +196,7 @@ export type tcflag = enum uint { NOFLSH = 0x80000000, }; -export type cc = enum char { +export type cc = enum u8 { VEOF = 0, VEOL = 1, VEOL2 = 2, diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha @@ -588,7 +588,8 @@ export type termios = struct { export def NCCS: size = 19; -export type cc = enum char { +// TODO: change this back to char when harec starts to work with it +export type cc = enum u8 { VINTR = 0, VQUIT = 1, VERASE = 2,