From: Nick Bowler Date: Thu, 22 Feb 2024 02:38:26 +0000 (-0500) Subject: libcdecl: Use gperf %7bit option for keyword matching. X-Git-Tag: v1.3~11 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/318e941af5ec3b0622212ba3d2968efd3c961587 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. --- 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