commit a0ecfc626f7c7dd828e1c124fef183dbc2f96d89
parent b8b8beb910da394e4d4991fd177ba660e940ec83
Author: Vlad-Stefan Harbuz <vlad@vladh.net>
Date: Sat, 14 May 2022 17:25:02 +0100
ioctlgen: update with regex error handling changes
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/ioctlgen/main.ha b/cmd/ioctlgen/main.ha
@@ -46,14 +46,14 @@ export fn main() void = {
};
defer free(line);
- if (regex::test(&typedefre, line)!) {
+ if (regex::test(&typedefre, line)) {
bufio::unreadrune(os::stdin, '\n');
bufio::unread(os::stdin, strings::toutf8(line));
loadtype(store);
continue;
};
- let groups = match (regex::find(&ioctlre, line)!) {
+ let groups = match (regex::find(&ioctlre, line)) {
case void =>
fmt::println(line)!;
continue;