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: allow Bison debug functions to be ...
details: https://anonhg.NetBSD.org/src/rev/9fb195256234
branches: trunk
changeset: 1026542:9fb195256234
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Nov 28 09:59:59 2021 +0000
description:
lint: allow Bison debug functions to be unused
The grammar is only compiled using Bison during development time. In the
official builds, it is built with byacc.
No functional change.
diffstat:
usr.bin/xlint/lint1/cgram.y | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 2268bf3d36e9 -r 9fb195256234 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Nov 28 09:47:18 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Nov 28 09:59:59 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.371 2021/11/27 20:13:48 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 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.371 2021/11/27 20:13:48 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.372 2021/11/28 09:59:59 rillig Exp $");
#endif
#include <limits.h>
@@ -361,7 +361,7 @@
%{
#if defined(YYDEBUG) && defined(YYBISON)
-static void cgram_print(FILE *, int, YYSTYPE);
+static inline void cgram_print(FILE *, int, YYSTYPE);
#endif
%}
@@ -2185,7 +2185,7 @@
#endif
#if defined(YYDEBUG) && defined(YYBISON)
-static void
+static inline void
cgram_print(FILE *output, int token, YYSTYPE val)
{
(void)fprintf(output, "%s", cgram_to_string(token, val));
Home |
Main Index |
Thread Index |
Old Index