Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: rename grammar rule lorange



details:   https://anonhg.NetBSD.org/src/rev/36a56664f1bf
branches:  trunk
changeset: 958763:36a56664f1bf
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jan 18 18:53:28 2021 +0000

description:
lint: rename grammar rule lorange

It looked too much like an orange.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (46 lines):

diff -r 8025e30b9741 -r 36a56664f1bf usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Mon Jan 18 18:18:20 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Mon Jan 18 18:53:28 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.155 2021/01/18 18:18:20 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.156 2021/01/18 18:53:28 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.155 2021/01/18 18:18:20 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.156 2021/01/18 18:53:28 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -329,7 +329,7 @@
 %type  <y_string>      string2
 %type  <y_sb>          opt_asm_or_symbolrename
 %type  <y_range>       range
-%type  <y_range>       lorange
+%type  <y_range>       low_range
 
 
 %%
@@ -1350,7 +1350,7 @@
        | init_expr_list T_COMMA init_assign_expr
        ;
 
-lorange:
+low_range:
          constant T_ELLIPSIS {
                $$.lo = toicon($1, 1);
          }
@@ -1360,7 +1360,7 @@
                $$.lo = toicon($1, 1);
                $$.hi = $$.lo + 1;
          }
-       | lorange constant {
+       | low_range constant {
                $$.lo = $1.lo;
                $$.hi = toicon($2, 1);
          }



Home | Main Index | Thread Index | Old Index