diff options
| author | Werner Koch <[email protected]> | 2003-10-25 16:34:36 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2003-10-25 16:34:36 +0000 |
| commit | d30da9ebdc822dc1e7349715dedf3d0d1783cfb7 (patch) | |
| tree | 7d316699432d2697a20655288f741d81a046da0a /intl/plural.y | |
| parent | Gettexized (diff) | |
| download | gnupg-d30da9ebdc822dc1e7349715dedf3d0d1783cfb7.tar.gz gnupg-d30da9ebdc822dc1e7349715dedf3d0d1783cfb7.zip | |
Updated to 0.12.1
Diffstat (limited to 'intl/plural.y')
| -rw-r--r-- | intl/plural.y | 18 |
1 files changed, 7 insertions, 11 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" +#include "plural-exp.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__ +/* 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; |
