gbranden pushed a commit to branch master
in repository groff.

commit 9c0aa3b3d6a5671ac094964c141afb19629c10b5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Oct 21 22:23:59 2026 -0500

    src/roff/troff/input.cpp: Trivially refactor.
    
    * src/roff/troff/input.cpp (init_input_requests): Sort definitions of
      read-only registers in en_US lexicographic order.
---
 ChangeLog                |  6 ++++++
 src/roff/troff/input.cpp | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 10f1dc43b..992156ae1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-10-21  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (init_input_requests): Trivially
+       refactor.  Sort definitions of read-only registers in en_US
+       lexicographic order.
+
 2026-10-21  G. Branden Robinson <[email protected]>
 
        [troff]: Fix Savannah #68815.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index e73632e57..53d27229e 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -10613,24 +10613,24 @@ void init_input_requests()
   init_request("writem", stream_write_macro_request);
   register_dictionary.define(".$", new nargs_reg);
   register_dictionary.define(".br", new break_flag_reg);
-  register_dictionary.define(".C", new 
readonly_boolean_register(&want_att_compat));
-  register_dictionary.define(".cp", new enclosing_want_att_compat_reg);
-  register_dictionary.define(".O", new readonly_register(&suppression_level));
   register_dictionary.define(".c", new lineno_reg);
+  register_dictionary.define(".C", new 
readonly_boolean_register(&want_att_compat));
   register_dictionary.define(".color", new 
readonly_boolean_register(&want_color_output));
+  register_dictionary.define(".cp", new enclosing_want_att_compat_reg);
   register_dictionary.define(".F", new filename_reg);
   register_dictionary.define(".g", new readonly_text_register(1));
   register_dictionary.define(".H", new readonly_register(&hresolution));
+  register_dictionary.define(".O", new readonly_register(&suppression_level));
   register_dictionary.define(".R", new readonly_text_register(INT_MAX));
   register_dictionary.define(".U", new 
readonly_boolean_register(&want_unsafe_requests));
   register_dictionary.define(".V", new readonly_register(&vresolution));
   register_dictionary.define(".warn", new 
readonly_mask_register(&desired_warnings));
   extern const char *major_version;
   register_dictionary.define(".x", new readonly_text_register(major_version));
-  extern const char *revision;
-  register_dictionary.define(".Y", new readonly_text_register(revision));
   extern const char *minor_version;
   register_dictionary.define(".y", new readonly_text_register(minor_version));
+  extern const char *revision;
+  register_dictionary.define(".Y", new readonly_text_register(revision));
   register_dictionary.define("c.", new writable_lineno_reg);
   register_dictionary.define("llx", new variable_reg(&llx_reg_contents));
   register_dictionary.define("lly", new variable_reg(&lly_reg_contents));

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

Reply via email to