From: Bruno Haible Date: Fri, 1 May 2020 20:04:19 +0000 (+0200) Subject: Tweak last commit. X-Git-Tag: v0.21~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66a5257750941244272ba58ba75a958efe3faff2;p=thirdparty%2Fgettext.git Tweak last commit. * gettext-tools/src/po-gram-gen.y: Move %define declaration after the first code block. Add %require declaration. --- diff --git a/gettext-tools/src/po-gram-gen.y b/gettext-tools/src/po-gram-gen.y index 15281a537..5f6b2e409 100644 --- a/gettext-tools/src/po-gram-gen.y +++ b/gettext-tools/src/po-gram-gen.y @@ -1,5 +1,5 @@ /* GNU gettext - internationalization aids - Copyright (C) 1995-1996, 1998, 2000-2001, 2003, 2005-2006, 2012-2013, 2016 + Copyright (C) 1995-1996, 1998, 2000-2001, 2003, 2005-2006, 2012-2013, 2016, 2020 Free Software Foundation, Inc. This file was written by Peter Miller @@ -17,10 +17,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* Remap parser interface names, so we can have multiple Bison - generated parsers in the same program. */ -%define api.prefix {po_gram_} - %{ #ifdef HAVE_CONFIG_H # include "config.h" @@ -81,6 +77,12 @@ do_callback_message (char *msgctxt, %} +%require "3.0" + +/* Remap parser interface names, so we can have multiple Bison + generated parsers in the same program. */ +%define api.prefix {po_gram_} + %token COMMENT %token DOMAIN %token JUNK