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 T_ELLIPSE to T_ELLIPSIS



details:   https://anonhg.NetBSD.org/src/rev/213f390822de
branches:  trunk
changeset: 950151:213f390822de
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jan 18 16:34:08 2021 +0000

description:
lint: rename T_ELLIPSE to T_ELLIPSIS

The 3 dots have nothing to do with geometry.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  14 +++++++-------
 usr.bin/xlint/lint1/scan.l  |   6 +++---
 2 files changed, 10 insertions(+), 10 deletions(-)

diffs (88 lines):

diff -r b33c3f7b8d6e -r 213f390822de usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Mon Jan 18 16:29:59 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Mon Jan 18 16:34:08 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.146 2021/01/18 16:29:59 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.147 2021/01/18 16:34:08 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.146 2021/01/18 16:29:59 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.147 2021/01/18 16:34:08 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -164,7 +164,7 @@
 %token <y_op>          T_OPASS
 %token                 T_COMMA
 %token                 T_SEMI
-%token                 T_ELLIPSE
+%token                 T_ELLIPSIS
 %token                 T_REAL
 %token                 T_IMAG
 %token                 T_GENERIC
@@ -1253,11 +1253,11 @@
          parameter_type_list {
                $$ = $1;
          }
-       | parameter_type_list T_COMMA T_ELLIPSE {
+       | parameter_type_list T_COMMA T_ELLIPSIS {
                dcs->d_vararg = true;
                $$ = $1;
          }
-       | T_ELLIPSE {
+       | T_ELLIPSIS {
                if (sflag) {
                        /* ANSI C requires formal parameter before '...' */
                        error(84);
@@ -1348,7 +1348,7 @@
        ;
 
 lorange:
-         constant T_ELLIPSE {
+         constant T_ELLIPSIS {
                $$.lo = toicon($1, 1);
          }
        ;
@@ -1502,7 +1502,7 @@
                case_label($2);
                ftflg = true;
          }
-       | T_CASE constant T_ELLIPSE constant T_COLON {
+       | T_CASE constant T_ELLIPSIS constant T_COLON {
                /* XXX: We don't fill all cases */
                case_label($2);
                ftflg = true;
diff -r b33c3f7b8d6e -r 213f390822de usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l        Mon Jan 18 16:29:59 2021 +0000
+++ b/usr.bin/xlint/lint1/scan.l        Mon Jan 18 16:34:08 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.122 2021/01/18 16:29:59 rillig Exp $ */
+/* $NetBSD: scan.l,v 1.123 2021/01/18 16:34:08 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: scan.l,v 1.122 2021/01/18 16:29:59 rillig Exp $");
+__RCSID("$NetBSD: scan.l,v 1.123 2021/01/18 16:34:08 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -160,7 +160,7 @@
 "]"                            return T_RBRACK;
 "("                            return T_LPAREN;
 ")"                            return T_RPAREN;
-"..."                          return T_ELLIPSE;
+"..."                          return T_ELLIPSIS;
 "'"                            return ccon();
 "L'"                           return wccon();
 ^#.*$                          directive();



Home | Main Index | Thread Index | Old Index