+2001-11-22 Bruno Haible <bruno@clisp.org>
+
+ * plural-exp.h (GERMANIC_PLURAL): New declaration.
+ * plural-exp.c (GERMANIC_PLURAL): Renamed from germanic_plural.
+ * loadmsgcat.c (_nl_unload_domain): Update.
+
2001-07-17 Ulrich Drepper <drepper@redhat.com>
* localealias.c (read_alias_file): Disable implicit locking
_nl_unload_domain (domain)
struct loaded_domain *domain;
{
- if (domain->plural != &germanic_plural)
+ if (domain->plural != &__gettext_germanic_plural)
__gettext_free_exp (domain->plural);
_nl_free_domain_conv (domain);
.num = 1
}
};
-static struct expression germanic_plural =
+struct expression GERMANIC_PLURAL =
{
.nargs = 2,
.operation = not_equal,
static struct expression plvar;
static struct expression plone;
-static struct expression germanic_plural;
+struct expression GERMANIC_PLURAL;
static void
init_germanic_plural ()
plone.operation = num;
plone.val.num = 1;
- germanic_plural.nargs = 2;
- germanic_plural.operation = not_equal;
- germanic_plural.val.args[0] = &plvar;
- germanic_plural.val.args[1] = &plone;
+ GERMANIC_PLURAL.nargs = 2;
+ GERMANIC_PLURAL.operation = not_equal;
+ GERMANIC_PLURAL.val.args[0] = &plvar;
+ GERMANIC_PLURAL.val.args[1] = &plone;
}
}
English is using since English is a Germanic language. */
no_plural:
INIT_GERMANIC_PLURAL ();
- *pluralp = &germanic_plural;
+ *pluralp = &GERMANIC_PLURAL;
*npluralsp = 2;
}
}
#ifdef _LIBC
# define FREE_EXPRESSION __gettext_free_exp
# define PLURAL_PARSE __gettextparse
+# define GERMANIC_PLURAL __gettext_germanic_plural
# define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural
# define PLURAL_EVAL __gettext_plural_eval
#elif defined (IN_LIBINTL)
# define FREE_EXPRESSION gettext_free_exp__
# define PLURAL_PARSE gettextparse__
+# define GERMANIC_PLURAL gettext_germanic_plural__
# define EXTRACT_PLURAL_EXPRESSION gettext_extract_plural__
# define PLURAL_EVAL gettext_plural_eval__
#else
# define FREE_EXPRESSION free_plural_expression
# define PLURAL_PARSE parse_plural_expression
+# define GERMANIC_PLURAL germanic_plural
# define EXTRACT_PLURAL_EXPRESSION extract_plural_expression
# define PLURAL_EVAL plural_eval
#endif
extern void FREE_EXPRESSION PARAMS ((struct expression *exp))
internal_function;
extern int PLURAL_PARSE PARAMS ((void *arg));
+extern struct expression GERMANIC_PLURAL;
extern void EXTRACT_PLURAL_EXPRESSION PARAMS ((const char *nullentry,
struct expression **pluralp,
unsigned long int *npluralsp))