gbranden pushed a commit to branch master
in repository groff.

commit 6843d9ee84f785ad1c452d07efb91309fbf6bb5c
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 16 10:32:37 2026 -0600

    src/preproc/pic/lex.cpp: Trivially refactor.
    
    * src/preproc/pic/lex.cpp: Rename `lookup_keyword()` to
      `look_up_keyword()`.  "Lookup" is a {somewhat informal} noun, while
      "look up" is a verb.
    
      (get_token): Update call site.
---
 ChangeLog               | 7 +++++++
 src/preproc/pic/lex.cpp | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 832cd0f65..9534181a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-11-16  G. Branden Robinson <[email protected]>
+
+       * src/preproc/pic/lex.cpp: Trivially refactor.  Rename
+       `lookup_keyword()` to `look_up_keyword()`.  "Lookup" is a
+       {somewhat informal} noun, while "look up" is a verb.
+       (get_token): Update call site.
+
 2026-11-16  G. Branden Robinson <[email protected]>
 
        [pic]: Boolify.  Demote `look_up_variable()` function from `int`
diff --git a/src/preproc/pic/lex.cpp b/src/preproc/pic/lex.cpp
index 3b9d45779..e77dcf66c 100644
--- a/src/preproc/pic/lex.cpp
+++ b/src/preproc/pic/lex.cpp
@@ -473,7 +473,7 @@ static int docmp(const char *s1, int n1, const char *s2, 
int n2)
     return memcmp(s1, s2, n1);
 }
 
-static int lookup_keyword(const char *str, int len)
+static int look_up_keyword(const char *str, int len)
 {
   static struct keyword {
     const char *name;
@@ -1305,8 +1305,8 @@ static int get_token(int lookup_flag /* TODO: boolify */)
          input_stack::get_char();
          token_buffer += char(c);
        }
-       int tok = lookup_keyword(token_buffer.contents(),
-                                token_buffer.length());
+       int tok = look_up_keyword(token_buffer.contents(),
+                                 token_buffer.length());
        if (tok != 0) {
          context_buffer = token_buffer;
          return tok;

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

Reply via email to