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 ignore_up_to_rparen to matc...



details:   https://anonhg.NetBSD.org/src/rev/034d798d099a
branches:  trunk
changeset: 1022485:034d798d099a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Jul 21 21:04:00 2021 +0000

description:
lint: rename ignore_up_to_rparen to match the grammar rule

No functional change.

diffstat:

 tests/usr.bin/xlint/lint1/gcc_stmt_asm.c |   4 ++--
 usr.bin/xlint/lint1/cgram.y              |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (62 lines):

diff -r b544240e6f42 -r 034d798d099a tests/usr.bin/xlint/lint1/gcc_stmt_asm.c
--- a/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c  Wed Jul 21 12:05:02 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c  Wed Jul 21 21:04:00 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gcc_stmt_asm.c,v 1.2 2021/07/15 21:00:05 rillig Exp $  */
+/*     $NetBSD: gcc_stmt_asm.c,v 1.3 2021/07/21 21:04:00 rillig Exp $  */
 # 3 "gcc_stmt_asm.c"
 
 /*
@@ -38,5 +38,5 @@
 }
 
 __asm__(
-/* cover ignore_up_to_rparen at EOF */
+/* cover read_until_rparen at EOF */
 /* expect+1: error: syntax error '' [249] */
diff -r b544240e6f42 -r 034d798d099a usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Wed Jul 21 12:05:02 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Wed Jul 21 21:04:00 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.330 2021/07/20 19:44:36 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.331 2021/07/21 21:04:00 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.330 2021/07/20 19:44:36 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.331 2021/07/21 21:04:00 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -67,7 +67,7 @@
 static int olwarn = LWARN_BAD;
 
 static void    cgram_declare(sym_t *, bool, sbuf_t *);
-static void    ignore_up_to_rparen(void);
+static void    read_until_rparen(void);
 static sym_t   *symbolrename(sym_t *, sbuf_t *);
 
 
@@ -1854,7 +1854,7 @@
 
 read_until_rparen:             /* helper for 'asm_statement' */
          /* empty */ {
-               ignore_up_to_rparen();
+               read_until_rparen();
          }
        ;
 
@@ -2104,7 +2104,7 @@
  * unmatched right paren
  */
 static void
-ignore_up_to_rparen(void)
+read_until_rparen(void)
 {
        int     level;
 



Home | Main Index | Thread Index | Old Index