From 318e941af5ec3b0622212ba3d2968efd3c961587 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 21 Feb 2024 21:38:26 -0500 Subject: [PATCH] libcdecl: Use gperf %7bit option for keyword matching. The scanner ensures all input to the keyword matching function consists exclusively of alphanumeric characters, hyphens and underscores. Since gperf supports only ISO-646 variants it should be safe to enable 7bit mode, which reduces the size of its generated tables substantially. --- src/keywords.gperf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/keywords.gperf b/src/keywords.gperf index d0caf8b..97f8a8f 100644 --- a/src/keywords.gperf +++ b/src/keywords.gperf @@ -1,6 +1,6 @@ %{ /* - * Copyright © 2023 Nick Bowler + * Copyright © 2023-2024 Nick Bowler * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ static const struct keyword *in_word_set(); %readonly-tables %language=ANSI-C +%7bit /* Note: the following options enable gperf-wordwrap.awk to do its thing */ %define word-array-name wordlist_wrapped -- 2.43.2