]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Tweak last commit.
authorBruno Haible <bruno@clisp.org>
Fri, 1 May 2020 20:04:19 +0000 (22:04 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 1 May 2020 20:04:19 +0000 (22:04 +0200)
* gettext-tools/src/po-gram-gen.y: Move %define declaration after the first code
block. Add %require declaration.

gettext-tools/src/po-gram-gen.y

index 15281a53775e1ffc69d3672b023f6f5c87036127..5f6b2e4091a7a1f5c3c6523d2c2caf0999070494 100644 (file)
@@ -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 <pmiller@agso.gov.au>
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-/* 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