This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc/cp/pt.c: use ngettext() when needed


On Tue, Feb 23, 2010 at 10:07 PM, Shujing Zhao <pearly.zhao@oracle.com> wrote:
> On 02/22/2010 05:25 PM, Marco Poletti wrote:
>>>
>>> @@ -112,6 +112,8 @@ function keyword_option(line) {
>>> ? ?else if (args ~ /c$/)
>>> ? ? ? format="c-format"
>>>
>>> + ? ?if (name ~ /_n$/) n = n "," (n + 1)
>>> +
>>> ? ?if (n == 1) { keyword = "--keyword=" name }
>>> ? ?else { keyword = "--keyword=" name ":" n }
>>> ? ?if (format) {
>>>
>>
> Marco, xgettext can't accept the --flag argument that have more than one
> argnums. It will have the argnums like 2,3 if the above code added.
>
> How about to only use the conditional expression like
>
> ? ? ?error (TREE_VEC_LENGTH (parms) > 1
> ? ? ? ? ? ? ? G_("redeclared with %d template parameters")
> ? ? ? ? ? ? : G_("redeclared with %d template parameter"),
> ? ? ? ? ? ? TREE_VEC_LENGTH (parms));
>
> it changed less to fix this problem.

this is close to what I originally had in mind

>
> Pearly
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]