Module Name: src Committed By: rillig Date: Wed Jul 21 21:04:00 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: gcc_stmt_asm.c src/usr.bin/xlint/lint1: cgram.y Log Message: lint: rename ignore_up_to_rparen to match the grammar rule No functional change. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c cvs rdiff -u -r1.330 -r1.331 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c diff -u src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c:1.2 src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c:1.3 --- src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c:1.2 Thu Jul 15 21:00:05 2021 +++ src/tests/usr.bin/xlint/lint1/gcc_stmt_asm.c Wed Jul 21 21:04:00 2021 @@ -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 @@ syntax_error(void) } __asm__( -/* cover ignore_up_to_rparen at EOF */ +/* cover read_until_rparen at EOF */ /* expect+1: error: syntax error '' [249] */ Index: src/usr.bin/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.330 src/usr.bin/xlint/lint1/cgram.y:1.331 --- src/usr.bin/xlint/lint1/cgram.y:1.330 Tue Jul 20 19:44:36 2021 +++ src/usr.bin/xlint/lint1/cgram.y Wed Jul 21 21:04:00 2021 @@ -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 @@ int mem_block_level; 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 @@ asm_statement: /* GCC extension */ read_until_rparen: /* helper for 'asm_statement' */ /* empty */ { - ignore_up_to_rparen(); + read_until_rparen(); } ; @@ -2104,7 +2104,7 @@ cgram_declare(sym_t *decl, bool initflg, * unmatched right paren */ static void -ignore_up_to_rparen(void) +read_until_rparen(void) { int level;