|
|
245d2c |
From dce3a16e5e9368245735e29bf498dcd5e3e474a4 Mon Sep 17 00:00:00 2001
|
|
|
245d2c |
From: Daiki Ueno <ueno@gnu.org>
|
|
|
245d2c |
Date: Thu, 15 Sep 2016 13:57:24 +0200
|
|
|
245d2c |
Subject: [PATCH] xgettext: Fix crash with *.po file input
|
|
|
245d2c |
|
|
|
245d2c |
When xgettext was given two *.po files with the same msgid_plural, it
|
|
|
245d2c |
crashed with double-free. Problem reported by Davlet Panech in:
|
|
|
245d2c |
http://lists.gnu.org/archive/html/bug-gettext/2016-09/msg00001.html
|
|
|
245d2c |
|
|
|
245d2c |
praiskup:
|
|
|
245d2c |
- I dropped the testsuite part, otherwise we'd have to 'autoreconf -vif' the
|
|
|
245d2c |
sources
|
|
|
245d2c |
- I'm patching manually the po-gram-gen.c file to avoid 'bison' BR
|
|
|
245d2c |
|
|
|
245d2c |
diff --git a/gettext-tools/src/po-gram-gen.y b/gettext-tools/src/po-gram-gen.y
|
|
|
245d2c |
index becf5e607..4428e7725 100644
|
|
|
245d2c |
--- a/gettext-tools/src/po-gram-gen.y
|
|
|
245d2c |
+++ b/gettext-tools/src/po-gram-gen.y
|
|
|
245d2c |
@@ -221,14 +221,11 @@ message
|
|
|
245d2c |
check_obsolete ($1, $3);
|
|
|
245d2c |
check_obsolete ($1, $4);
|
|
|
245d2c |
if (!$1.obsolete || pass_obsolete_entries)
|
|
|
245d2c |
- {
|
|
|
245d2c |
- do_callback_message ($1.ctxt, string2, &$1.pos, $3.string,
|
|
|
245d2c |
- $4.rhs.msgstr, $4.rhs.msgstr_len, &$4.pos,
|
|
|
245d2c |
- $1.prev_ctxt,
|
|
|
245d2c |
- $1.prev_id, $1.prev_id_plural,
|
|
|
245d2c |
- $1.obsolete);
|
|
|
245d2c |
- free ($3.string);
|
|
|
245d2c |
- }
|
|
|
245d2c |
+ do_callback_message ($1.ctxt, string2, &$1.pos, $3.string,
|
|
|
245d2c |
+ $4.rhs.msgstr, $4.rhs.msgstr_len, &$4.pos,
|
|
|
245d2c |
+ $1.prev_ctxt,
|
|
|
245d2c |
+ $1.prev_id, $1.prev_id_plural,
|
|
|
245d2c |
+ $1.obsolete);
|
|
|
245d2c |
else
|
|
|
245d2c |
{
|
|
|
245d2c |
free_message_intro ($1);
|
|
|
245d2c |
diff --git a/gettext-tools/src/read-catalog.c b/gettext-tools/src/read-catalog.c
|
|
|
245d2c |
index 571d18e1b..6af6d2025 100644
|
|
|
245d2c |
--- a/gettext-tools/src/read-catalog.c
|
|
|
245d2c |
+++ b/gettext-tools/src/read-catalog.c
|
|
|
245d2c |
@@ -397,6 +397,8 @@ default_add_message (default_catalog_reader_ty *this,
|
|
|
245d2c |
appropriate. */
|
|
|
245d2c |
mp = message_alloc (msgctxt, msgid, msgid_plural, msgstr, msgstr_len,
|
|
|
245d2c |
msgstr_pos);
|
|
|
245d2c |
+ if (msgid_plural != NULL)
|
|
|
245d2c |
+ free (msgid_plural);
|
|
|
245d2c |
mp->prev_msgctxt = prev_msgctxt;
|
|
|
245d2c |
mp->prev_msgid = prev_msgid;
|
|
|
245d2c |
mp->prev_msgid_plural = prev_msgid_plural;
|
|
|
245d2c |
diff --git a/gettext-tools/src/po-gram-gen.c b/gettext-tools/src/po-gram-gen.c
|
|
|
245d2c |
--- a/gettext-tools/src/po-gram-gen.c
|
|
|
245d2c |
+++ b/gettext-tools/src/po-gram-gen.c
|
|
|
245d2c |
@@ -1,8 +1,8 @@
|
|
|
245d2c |
-/* A Bison parser, made by GNU Bison 3.0.4. */
|
|
|
245d2c |
+/* A Bison parser, made by GNU Bison 3.0.5. */
|
|
|
245d2c |
|
|
|
245d2c |
/* Bison implementation for Yacc-like parsers in C
|
|
|
245d2c |
|
|
|
245d2c |
- Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
|
|
|
245d2c |
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018 Free Software Foundation, Inc.
|
|
|
245d2c |
|
|
|
245d2c |
This program is free software: you can redistribute it and/or modify
|
|
|
245d2c |
it under the terms of the GNU General Public License as published by
|
|
|
245d2c |
@@ -44,7 +44,7 @@
|
|
|
245d2c |
#define YYBISON 1
|
|
|
245d2c |
|
|
|
245d2c |
/* Bison version. */
|
|
|
245d2c |
-#define YYBISON_VERSION "3.0.4"
|
|
|
245d2c |
+#define YYBISON_VERSION "3.0.5"
|
|
|
245d2c |
|
|
|
245d2c |
/* Skeleton name. */
|
|
|
245d2c |
#define YYSKELETON_NAME "yacc.c"
|
|
|
245d2c |
@@ -568,9 +568,9 @@
|
|
|
245d2c |
static const yytype_uint16 yyrline[] =
|
|
|
245d2c |
{
|
|
|
245d2c |
0, 169, 169, 171, 172, 173, 174, 179, 187, 195,
|
|
|
245d2c |
- 216, 240, 249, 258, 269, 278, 292, 301, 315, 321,
|
|
|
245d2c |
- 332, 338, 350, 361, 372, 376, 391, 414, 422, 434,
|
|
|
245d2c |
- 442
|
|
|
245d2c |
+ 216, 237, 246, 255, 266, 275, 289, 298, 312, 318,
|
|
|
245d2c |
+ 329, 335, 347, 358, 369, 373, 388, 411, 419, 431,
|
|
|
245d2c |
+ 439
|
|
|
245d2c |
};
|
|
|
245d2c |
#endif
|
|
|
245d2c |
|
|
|
245d2c |
@@ -1054,6 +1054,7 @@
|
|
|
245d2c |
case N: \
|
|
|
245d2c |
yyformat = S; \
|
|
|
245d2c |
break
|
|
|
245d2c |
+ default: /* Avoid compiler warnings. */
|
|
|
245d2c |
YYCASE_(0, YY_("syntax error"));
|
|
|
245d2c |
YYCASE_(1, YY_("syntax error, unexpected %s"));
|
|
|
245d2c |
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
|
|
|
245d2c |
@@ -1370,23 +1371,23 @@
|
|
|
245d2c |
switch (yyn)
|
|
|
245d2c |
{
|
|
|
245d2c |
case 7:
|
|
|
245d2c |
-#line 180 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 180 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
po_callback_comment_dispatcher ((yyvsp[0].string).string);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1378 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1379 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 8:
|
|
|
245d2c |
-#line 188 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 188 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
po_callback_domain ((yyvsp[0].string).string);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1386 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1387 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 9:
|
|
|
245d2c |
-#line 196 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 196 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
char *string2 = string_list_concat_destroy (&(yyvsp[-2].stringlist).stringlist);
|
|
|
245d2c |
char *string4 = string_list_concat_destroy (&(yyvsp[0].stringlist).stringlist);
|
|
|
245d2c |
@@ -1407,11 +1408,11 @@
|
|
|
245d2c |
free (string4);
|
|
|
245d2c |
}
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1411 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1412 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 10:
|
|
|
245d2c |
-#line 217 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 217 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
char *string2 = string_list_concat_destroy (&(yyvsp[-2].stringlist).stringlist);
|
|
|
245d2c |
|
|
|
245d2c |
@@ -1419,14 +1420,11 @@
|
|
|
245d2c |
check_obsolete ((yyvsp[-3].message_intro), (yyvsp[-1].string));
|
|
|
245d2c |
check_obsolete ((yyvsp[-3].message_intro), (yyvsp[0].rhs));
|
|
|
245d2c |
if (!(yyvsp[-3].message_intro).obsolete || pass_obsolete_entries)
|
|
|
245d2c |
- {
|
|
|
245d2c |
- do_callback_message ((yyvsp[-3].message_intro).ctxt, string2, &(yyvsp[-3].message_intro).pos, (yyvsp[-1].string).string,
|
|
|
245d2c |
- (yyvsp[0].rhs).rhs.msgstr, (yyvsp[0].rhs).rhs.msgstr_len, &(yyvsp[0].rhs).pos,
|
|
|
245d2c |
- (yyvsp[-3].message_intro).prev_ctxt,
|
|
|
245d2c |
- (yyvsp[-3].message_intro).prev_id, (yyvsp[-3].message_intro).prev_id_plural,
|
|
|
245d2c |
- (yyvsp[-3].message_intro).obsolete);
|
|
|
245d2c |
- free ((yyvsp[-1].string).string);
|
|
|
245d2c |
- }
|
|
|
245d2c |
+ do_callback_message ((yyvsp[-3].message_intro).ctxt, string2, &(yyvsp[-3].message_intro).pos, (yyvsp[-1].string).string,
|
|
|
245d2c |
+ (yyvsp[0].rhs).rhs.msgstr, (yyvsp[0].rhs).rhs.msgstr_len, &(yyvsp[0].rhs).pos,
|
|
|
245d2c |
+ (yyvsp[-3].message_intro).prev_ctxt,
|
|
|
245d2c |
+ (yyvsp[-3].message_intro).prev_id, (yyvsp[-3].message_intro).prev_id_plural,
|
|
|
245d2c |
+ (yyvsp[-3].message_intro).obsolete);
|
|
|
245d2c |
else
|
|
|
245d2c |
{
|
|
|
245d2c |
free_message_intro ((yyvsp[-3].message_intro));
|
|
|
245d2c |
@@ -1435,11 +1433,11 @@
|
|
|
245d2c |
free ((yyvsp[0].rhs).rhs.msgstr);
|
|
|
245d2c |
}
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1439 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1437 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 11:
|
|
|
245d2c |
-#line 241 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 238 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].message_intro), (yyvsp[-1].stringlist));
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].message_intro), (yyvsp[0].string));
|
|
|
245d2c |
@@ -1448,11 +1446,11 @@
|
|
|
245d2c |
string_list_destroy (&(yyvsp[-1].stringlist).stringlist);
|
|
|
245d2c |
free ((yyvsp[0].string).string);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1452 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1450 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 12:
|
|
|
245d2c |
-#line 250 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 247 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].message_intro), (yyvsp[-1].stringlist));
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].message_intro), (yyvsp[0].rhs));
|
|
|
245d2c |
@@ -1461,22 +1459,22 @@
|
|
|
245d2c |
string_list_destroy (&(yyvsp[-1].stringlist).stringlist);
|
|
|
245d2c |
free ((yyvsp[0].rhs).rhs.msgstr);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1465 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1463 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 13:
|
|
|
245d2c |
-#line 259 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 256 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].message_intro), (yyvsp[0].stringlist));
|
|
|
245d2c |
po_gram_error_at_line (&(yyvsp[-1].message_intro).pos, _("missing 'msgstr' section"));
|
|
|
245d2c |
free_message_intro ((yyvsp[-1].message_intro));
|
|
|
245d2c |
string_list_destroy (&(yyvsp[0].stringlist).stringlist);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1476 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1474 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 14:
|
|
|
245d2c |
-#line 270 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 267 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
(yyval.message_intro).prev_ctxt = NULL;
|
|
|
245d2c |
(yyval.message_intro).prev_id = NULL;
|
|
|
245d2c |
@@ -1485,11 +1483,11 @@
|
|
|
245d2c |
(yyval.message_intro).pos = (yyvsp[0].string).pos;
|
|
|
245d2c |
(yyval.message_intro).obsolete = (yyvsp[0].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1489 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1487 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 15:
|
|
|
245d2c |
-#line 279 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 276 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].prev), (yyvsp[0].string));
|
|
|
245d2c |
(yyval.message_intro).prev_ctxt = (yyvsp[-1].prev).ctxt;
|
|
|
245d2c |
@@ -1499,11 +1497,11 @@
|
|
|
245d2c |
(yyval.message_intro).pos = (yyvsp[0].string).pos;
|
|
|
245d2c |
(yyval.message_intro).obsolete = (yyvsp[0].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1503 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1501 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 16:
|
|
|
245d2c |
-#line 293 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 290 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].string), (yyvsp[0].stringlist));
|
|
|
245d2c |
(yyval.prev).ctxt = (yyvsp[-1].string).string;
|
|
|
245d2c |
@@ -1512,11 +1510,11 @@
|
|
|
245d2c |
(yyval.prev).pos = (yyvsp[-1].string).pos;
|
|
|
245d2c |
(yyval.prev).obsolete = (yyvsp[-1].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1516 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1514 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 17:
|
|
|
245d2c |
-#line 302 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 299 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].string), (yyvsp[-1].stringlist));
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].string), (yyvsp[0].string));
|
|
|
245d2c |
@@ -1526,21 +1524,21 @@
|
|
|
245d2c |
(yyval.prev).pos = (yyvsp[-2].string).pos;
|
|
|
245d2c |
(yyval.prev).obsolete = (yyvsp[-2].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1530 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1528 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 18:
|
|
|
245d2c |
-#line 316 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 313 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
(yyval.string).string = NULL;
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[0].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[0].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1540 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1538 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 19:
|
|
|
245d2c |
-#line 322 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 319 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].pos), (yyvsp[-1].stringlist));
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].pos), (yyvsp[0].pos));
|
|
|
245d2c |
@@ -1548,21 +1546,21 @@
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[0].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[0].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1552 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1550 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 20:
|
|
|
245d2c |
-#line 333 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 330 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
(yyval.string).string = NULL;
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[0].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[0].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1562 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1560 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 21:
|
|
|
245d2c |
-#line 339 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 336 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].pos), (yyvsp[-1].stringlist));
|
|
|
245d2c |
check_obsolete ((yyvsp[-2].pos), (yyvsp[0].pos));
|
|
|
245d2c |
@@ -1570,11 +1568,11 @@
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[0].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[0].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1574 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1572 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 22:
|
|
|
245d2c |
-#line 351 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 348 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].pos), (yyvsp[0].stringlist));
|
|
|
245d2c |
plural_counter = 0;
|
|
|
245d2c |
@@ -1582,30 +1580,30 @@
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[-1].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[-1].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1586 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1584 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 23:
|
|
|
245d2c |
-#line 362 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 359 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].pos), (yyvsp[0].stringlist));
|
|
|
245d2c |
(yyval.string).string = string_list_concat_destroy (&(yyvsp[0].stringlist).stringlist);
|
|
|
245d2c |
(yyval.string).pos = (yyvsp[-1].pos).pos;
|
|
|
245d2c |
(yyval.string).obsolete = (yyvsp[-1].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1597 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1595 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 24:
|
|
|
245d2c |
-#line 373 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 370 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
(yyval.rhs) = (yyvsp[0].rhs);
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1605 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1603 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 25:
|
|
|
245d2c |
-#line 377 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 374 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].rhs), (yyvsp[0].rhs));
|
|
|
245d2c |
(yyval.rhs).rhs.msgstr = XNMALLOC ((yyvsp[-1].rhs).rhs.msgstr_len + (yyvsp[0].rhs).rhs.msgstr_len, char);
|
|
|
245d2c |
@@ -1617,11 +1615,11 @@
|
|
|
245d2c |
(yyval.rhs).pos = (yyvsp[-1].rhs).pos;
|
|
|
245d2c |
(yyval.rhs).obsolete = (yyvsp[-1].rhs).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1621 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1619 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 26:
|
|
|
245d2c |
-#line 392 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 389 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-4].pos), (yyvsp[-3].pos));
|
|
|
245d2c |
check_obsolete ((yyvsp[-4].pos), (yyvsp[-2].number));
|
|
|
245d2c |
@@ -1640,11 +1638,11 @@
|
|
|
245d2c |
(yyval.rhs).pos = (yyvsp[-4].pos).pos;
|
|
|
245d2c |
(yyval.rhs).obsolete = (yyvsp[-4].pos).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1644 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1642 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 27:
|
|
|
245d2c |
-#line 415 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 412 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
string_list_init (&(yyval.stringlist).stringlist);
|
|
|
245d2c |
string_list_append (&(yyval.stringlist).stringlist, (yyvsp[0].string).string);
|
|
|
245d2c |
@@ -1652,11 +1650,11 @@
|
|
|
245d2c |
(yyval.stringlist).pos = (yyvsp[0].string).pos;
|
|
|
245d2c |
(yyval.stringlist).obsolete = (yyvsp[0].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1656 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1654 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 28:
|
|
|
245d2c |
-#line 423 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 420 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].stringlist), (yyvsp[0].string));
|
|
|
245d2c |
(yyval.stringlist).stringlist = (yyvsp[-1].stringlist).stringlist;
|
|
|
245d2c |
@@ -1665,11 +1663,11 @@
|
|
|
245d2c |
(yyval.stringlist).pos = (yyvsp[-1].stringlist).pos;
|
|
|
245d2c |
(yyval.stringlist).obsolete = (yyvsp[-1].stringlist).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1669 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1667 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 29:
|
|
|
245d2c |
-#line 435 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 432 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
string_list_init (&(yyval.stringlist).stringlist);
|
|
|
245d2c |
string_list_append (&(yyval.stringlist).stringlist, (yyvsp[0].string).string);
|
|
|
245d2c |
@@ -1677,11 +1675,11 @@
|
|
|
245d2c |
(yyval.stringlist).pos = (yyvsp[0].string).pos;
|
|
|
245d2c |
(yyval.stringlist).obsolete = (yyvsp[0].string).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1681 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1679 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
case 30:
|
|
|
245d2c |
-#line 443 "po-gram-gen.y" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 440 "po-gram-gen.y" /* yacc.c:1648 */
|
|
|
245d2c |
{
|
|
|
245d2c |
check_obsolete ((yyvsp[-1].stringlist), (yyvsp[0].string));
|
|
|
245d2c |
(yyval.stringlist).stringlist = (yyvsp[-1].stringlist).stringlist;
|
|
|
245d2c |
@@ -1690,11 +1688,11 @@
|
|
|
245d2c |
(yyval.stringlist).pos = (yyvsp[-1].stringlist).pos;
|
|
|
245d2c |
(yyval.stringlist).obsolete = (yyvsp[-1].stringlist).obsolete;
|
|
|
245d2c |
}
|
|
|
245d2c |
-#line 1694 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1692 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
break;
|
|
|
245d2c |
|
|
|
245d2c |
|
|
|
245d2c |
-#line 1698 "po-gram-gen.c" /* yacc.c:1646 */
|
|
|
245d2c |
+#line 1696 "po-gram-gen.c" /* yacc.c:1648 */
|
|
|
245d2c |
default: break;
|
|
|
245d2c |
}
|
|
|
245d2c |
/* User semantic actions sometimes alter yychar, and that requires
|
|
|
245d2c |
--
|
|
|
245d2c |
2.19.1
|
|
|
245d2c |
|