gbranden pushed a commit to branch master
in repository groff.

commit ffe7aa5efc136a9ab80891d74e77ef3175387288
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 16 11:30:40 2026 -0600

    src/preproc/pic/pic.ypp: Trivially refactor.
    
    * src/preproc/pic/pic.ypp: Rename `lookup_label()` to `look_up_label()`
      in foward declaration and definition.  "Lookup" is a (somewhat
      informal) noun, while "look up" is a verb.
    
      <placeless_element, label>
      (look_up_variable): Update call site.
---
 ChangeLog               |  9 +++++++++
 src/preproc/pic/pic.ypp | 10 +++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index eff9750d7..2e725a306 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-11-16  G. Branden Robinson <[email protected]>
+
+       * src/preproc/pic/pic.ypp: Trivially refactor.  Rename
+       `lookup_label()` to `look_up_label()` in foward declaration and
+       definition.  "Lookup" is a (somewhat informal) noun, while "look
+       up" is a verb.
+       <placeless_element, label>
+       (look_up_variable): Update call site.
+
 2026-11-16  G. Branden Robinson <[email protected]>
 
        * src/preproc/pic/pic.ypp <placeless_element, label>
diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index a2d73b398..2746306b3 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -66,7 +66,7 @@ void yyerror(const char *);
 static void reset(const char *nm);
 static void reset_all();
 
-place *lookup_label(const char *);
+place *look_up_label(const char *);
 void define_label(const char *label, const place *pl);
 
 direction current_direction;
@@ -352,7 +352,7 @@ placeless_element:
                }
        | VARIABLE ':' '=' any_expr
                {
-                 place *p = lookup_label($1);
+                 place *p = look_up_label($1);
                  if (0 /* nullptr */ == p) {
                    lex_error("variable '%1' not defined", $1);
                    YYABORT;
@@ -1327,7 +1327,7 @@ place:
 label:
        LABEL
                {
-                 place *p = lookup_label($1);
+                 place *p = look_up_label($1);
                  if (0 /* nullptr */ == p) {
                    lex_error("there is no place '%1'", $1);
                    YYABORT;
@@ -1805,7 +1805,7 @@ static struct pic_defaults_table {
   { "maxpsht", 11.0, 0 },
 };
 
-place *lookup_label(const char *label)
+place *look_up_label(const char *label)
 {
   saved_state *state = current_saved_state;
   PTABLE(place) *tbl = current_table;
@@ -1832,7 +1832,7 @@ void define_label(const char *label, const place *pl)
 
 bool look_up_variable(const char *name, double *val)
 {
-  place *pl = lookup_label(name);
+  place *pl = look_up_label(name);
   if (pl != 0 /* nullptr */) {
     *val = pl->x;
     return true;

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

Reply via email to