Module Name:    src
Committed By:   rillig
Date:           Wed Mar 17 01:07:33 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y

Log Message:
lint: rename 'parn' to 'paren' in the grammar

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 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/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.169 src/usr.bin/xlint/lint1/cgram.y:1.170
--- src/usr.bin/xlint/lint1/cgram.y:1.169	Sun Mar  7 20:06:48 2021
+++ src/usr.bin/xlint/lint1/cgram.y	Wed Mar 17 01:07:33 2021
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.169 2021/03/07 20:06:48 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.170 2021/03/17 01:07:33 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.169 2021/03/07 20:06:48 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.170 2021/03/17 01:07:33 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1200,7 +1200,7 @@ type_qualifier:
 	;
 
 param_list:
-	  id_list_lparn identifier_list T_RPAREN {
+	  id_list_lparen identifier_list T_RPAREN {
 		$$ = $2;
 	  }
 	| abstract_decl_param_list {
@@ -1208,7 +1208,7 @@ param_list:
 	  }
 	;
 
-id_list_lparn:
+id_list_lparen:
 	  T_LPAREN {
 		blklev++;
 		pushdecl(PROTO_ARG);
@@ -1228,19 +1228,19 @@ identifier_list:
 	;
 
 abstract_decl_param_list:
-	  abstract_decl_lparn T_RPAREN {
+	  abstract_decl_lparen T_RPAREN {
 		$$ = NULL;
 	  }
-	| abstract_decl_lparn vararg_parameter_type_list T_RPAREN {
+	| abstract_decl_lparen vararg_parameter_type_list T_RPAREN {
 		dcs->d_proto = true;
 		$$ = $2;
 	  }
-	| abstract_decl_lparn error T_RPAREN {
+	| abstract_decl_lparen error T_RPAREN {
 		$$ = NULL;
 	  }
 	;
 
-abstract_decl_lparn:
+abstract_decl_lparen:
 	  T_LPAREN {
 		blklev++;
 		pushdecl(PROTO_ARG);
@@ -1763,16 +1763,16 @@ goto:
 	;
 
 asm_statement:
-	  T_ASM T_LPAREN read_until_rparn T_SEMI {
+	  T_ASM T_LPAREN read_until_rparen T_SEMI {
 		setasm();
 	  }
-	| T_ASM T_QUAL T_LPAREN read_until_rparn T_SEMI {
+	| T_ASM T_QUAL T_LPAREN read_until_rparen T_SEMI {
 		setasm();
 	  }
 	| T_ASM error
 	;
 
-read_until_rparn:
+read_until_rparen:
 	  /* empty */ {
 		ignore_up_to_rparen();
 	  }

Reply via email to