summaryrefslogtreecommitdiff
path: root/intl/plural.y
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-07-21 14:20:41 +0000
committerjbj <devnull@localhost>2002-07-21 14:20:41 +0000
commit6eecde7ae6ef5e39945054716e4d69e77378ff8d (patch)
tree774e13afa06fd2cd4c378013bbc07827d3b4c7cf /intl/plural.y
parent22016eccf09b1b396a3c536afc8c0b9e1afe1c62 (diff)
downloadrpm-6eecde7ae6ef5e39945054716e4d69e77378ff8d.tar.gz
rpm-6eecde7ae6ef5e39945054716e4d69e77378ff8d.tar.bz2
rpm-6eecde7ae6ef5e39945054716e4d69e77378ff8d.zip
Update to gettext-0.11.2-3 intl contents.
CVS patchset: 5564 CVS date: 2002/07/21 14:20:41
Diffstat (limited to 'intl/plural.y')
-rw-r--r--intl/plural.y20
1 files changed, 8 insertions, 12 deletions
diff --git a/intl/plural.y b/intl/plural.y
index be049a6d4..616b7c11a 100644
--- a/intl/plural.y
+++ b/intl/plural.y
@@ -30,25 +30,21 @@
# include <config.h>
#endif
+#include <stddef.h>
#include <stdlib.h>
-#include "gettextP.h"
-
-/* Names for the libintl functions are a problem. They must not clash
- with existing names and they should follow ANSI C. But this source
- code is also used in GNU C Library where the names have a __
- prefix. So we have to make a difference here. */
-#ifdef _LIBC
-# define FREE_EXPRESSION __gettext_free_exp
-#else
-# define FREE_EXPRESSION gettext_free_exp__
-# define __gettextparse gettextparse__
+#include "plural-exp.h"
+
+/* The main function generated by the parser is called __gettextparse,
+ but we want it to be called PLURAL_PARSE. */
+#ifndef _LIBC
+# define __gettextparse PLURAL_PARSE
#endif
#define YYLEX_PARAM &((struct parse_args *) arg)->cp
#define YYPARSE_PARAM arg
%}
%pure_parser
-%expect 10
+%expect 7
%union {
unsigned long int num;