All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Burgener <dburgener@linux.microsoft.com>
To: dburgener@linux.microsoft.com, selinux@vger.kernel.org
Subject: [PATCH] Switch from bison name-prefix to api.prefix
Date: Wed, 12 Feb 2025 11:49:32 -0500	[thread overview]
Message-ID: <20250212164932.35152-1-dburgener@linux.microsoft.com> (raw)

Avoid a deprecation warning when building.

api.prefix was first released in bison 2.6, which was released in July
2012 [1].  name-prefix was deprecated in favor of api.prefix in bison
3.3, released January 2019 [2].

The new api.prefix construct rewrites additional variables when compared
to name-prefix, such as YYTYPE and YYDEBUG. However, these variables are
unused currently in conf-parse.y, so this does not affect libsemanage.

[1] http://savannah.gnu.org/news/?id=7269
[2] http://savannah.gnu.org/news/?id=9321

Signed-off-by: Daniel Burgener <dburgener@linux.microsoft.com>
---
 libsemanage/src/conf-parse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libsemanage/src/conf-parse.y b/libsemanage/src/conf-parse.y
index 6cb8a598..93a04699 100644
--- a/libsemanage/src/conf-parse.y
+++ b/libsemanage/src/conf-parse.y
@@ -53,7 +53,7 @@ static int parse_errors;
 
 %}
 
-%name-prefix "semanage_"
+%define api.prefix {semanage_}
 
 %union {
         int d;
-- 
2.34.1


             reply	other threads:[~2025-02-12 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-12 16:49 Daniel Burgener [this message]
2025-03-12 15:47 ` [PATCH] Switch from bison name-prefix to api.prefix James Carter
2025-04-07 18:06   ` James Carter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250212164932.35152-1-dburgener@linux.microsoft.com \
    --to=dburgener@linux.microsoft.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.