+2007-10-18 Bruno Haible <bruno@clisp.org>
+
+ * plural-count.c (get_plural_count): Adapt to changed prototype of
+ extract_plural_expression.
+ * write-csharp.c (write_csharp_expression): Add const to parameter.
+ (write_csharp_code): Adapt to changed prototype of
+ extract_plural_expression.
+ * write-java.c (write_java_expression): Add const to parameter.
+ (write_java_code): Adapt to changed prototype of
+ extract_plural_expression.
+
2007-10-07 Bruno Haible <bruno@clisp.org>
* hostname.c (main): In the --version output, say GPLv3+.
/* Plural form count.
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2007 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2003.
This program is free software: you can redistribute it and/or modify
unsigned long int
get_plural_count (const char *header)
{
- struct expression *plural;
+ const struct expression *plural;
unsigned long int nplurals;
extract_plural_expression (header, &plural, &nplurals);
/* Write C# code that evaluates a plural expression according to the C rules.
The variable is called 'n'. */
static void
-write_csharp_expression (FILE *stream, struct expression *exp, bool as_boolean)
+write_csharp_expression (FILE *stream, const struct expression *exp, bool as_boolean)
{
/* We use parentheses everywhere. This frees us from tracking the priority
of arithmetic operators. */
if (plurals)
{
message_ty *header_entry;
- struct expression *plural;
+ const struct expression *plural;
unsigned long int nplurals;
header_entry = message_list_search (mlp, NULL, "");
/* Write Java code that evaluates a plural expression according to the C rules.
The variable is called 'n'. */
static void
-write_java_expression (FILE *stream, struct expression *exp, bool as_boolean)
+write_java_expression (FILE *stream, const struct expression *exp, bool as_boolean)
{
/* We use parentheses everywhere. This frees us from tracking the priority
of arithmetic operators. */
if (plurals)
{
message_ty *header_entry;
- struct expression *plural;
+ const struct expression *plural;
unsigned long int nplurals;
header_entry = message_list_search (mlp, NULL, "");