diff options
author | Bruno Haible <bruno@clisp.org> | 2007-10-20 18:59:01 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:15:20 +0200 |
commit | 3e85da441657704a8745147aabffd9fca8834d27 (patch) | |
tree | de8edf89612399ef7e57b32a33c3efa502e49307 /gettext-tools | |
parent | c2dc0b5ff33291b6e99f20a162b5ec04404c880f (diff) | |
download | external_gettext-3e85da441657704a8745147aabffd9fca8834d27.zip external_gettext-3e85da441657704a8745147aabffd9fca8834d27.tar.gz external_gettext-3e85da441657704a8745147aabffd9fca8834d27.tar.bz2 |
Adapt to changed prototype of extract_plural_expression.
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/src/ChangeLog | 11 | ||||
-rw-r--r-- | gettext-tools/src/plural-count.c | 4 | ||||
-rw-r--r-- | gettext-tools/src/write-csharp.c | 4 | ||||
-rw-r--r-- | gettext-tools/src/write-java.c | 4 |
4 files changed, 17 insertions, 6 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 41d8da8..e94ba3e 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,14 @@ +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+. diff --git a/gettext-tools/src/plural-count.c b/gettext-tools/src/plural-count.c index 440a65e..3fd8838 100644 --- a/gettext-tools/src/plural-count.c +++ b/gettext-tools/src/plural-count.c @@ -1,5 +1,5 @@ /* 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 @@ -29,7 +29,7 @@ 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); diff --git a/gettext-tools/src/write-csharp.c b/gettext-tools/src/write-csharp.c index c4146e4..134af03 100644 --- a/gettext-tools/src/write-csharp.c +++ b/gettext-tools/src/write-csharp.c @@ -315,7 +315,7 @@ is_expression_boolean (struct expression *exp) /* 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. */ @@ -581,7 +581,7 @@ write_csharp_code (FILE *stream, const char *culture_name, const char *class_nam if (plurals) { message_ty *header_entry; - struct expression *plural; + const struct expression *plural; unsigned long int nplurals; header_entry = message_list_search (mlp, NULL, ""); diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c index 0924bd1..5c3e5e9 100644 --- a/gettext-tools/src/write-java.c +++ b/gettext-tools/src/write-java.c @@ -536,7 +536,7 @@ is_expression_boolean (struct expression *exp) /* 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. */ @@ -912,7 +912,7 @@ write_java_code (FILE *stream, const char *class_name, message_list_ty *mlp, if (plurals) { message_ty *header_entry; - struct expression *plural; + const struct expression *plural; unsigned long int nplurals; header_entry = message_list_search (mlp, NULL, ""); |