gbranden pushed a commit to branch master
in repository groff.

commit 74ee1315f017fea9c80c634552b1fb6f665e161f
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Mar 18 07:56:59 2026 -0500

    [troff]: Trivially refactor (2/3).
    
    * src/roff/troff/input.cpp (struct warning_category): Rename this...
      (struct warning_selection): ...to this.  This data structure creates a
      mapping between C strings and a bit vector.  The strings "all" and "w"
      aren't warning categories, but convenient shorthands for selection of
      multiple warning categories.
---
 ChangeLog                | 9 +++++++++
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5346bc9a4..76d972aa5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-03-18  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp: Trivially refactor.
+       (struct warning_category): Rename this...
+       (struct warning_selection): ...to this.  This data structure
+       creates a mapping between C strings and a bit vector.  The
+       strings "all" and "w" aren't warning categories, but convenient
+       shorthands for selection of multiple warning categories.
+
 2026-03-18  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Trivially refactor.  Rename global
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 0f3065253..aecd2547b 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10608,7 +10608,7 @@ static void read_drawing_command_color_arguments(token 
&start)
   have_formattable_input = true;
 }
 
-static const struct warning_category {
+static const struct warning_selection {
   const char * const name;
   const unsigned int bitset;
 } warning_map[] = {

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to