[PATCH, C] PR18249
Shujing Zhao
pearly.zhao@oracle.com
Wed May 19 10:41:00 GMT 2010
Hi,
This patch is to try to fix the c++ parser i18n problems. The parameter of
cp_parser_error is change from "message" to "gmsgid".
At cp_parser_require, it uses the argument of "type" to classify the
"token_desc". If "type" is CPP_KEYWORD, it uses strcmp to branch the messages.
If "token_desc" includes " or ", such as "%<:%> or %<::%>", it would translate
"expected " and "%<:%> or %<::%>" respectively.
cp_parser_require_keyword is changes to keep consistently with cp_parser_require.
To fix the problem at cp_parser_name_lookup_error, a translated 'desired' would
be passed to error_at.
An enum type non_integral_constant is defined to solve the problem of
at cp_parser_non_integral_constant_expression.
For the problem of 18248, the entire message still can't appear in gcc.pot. This
patch is only to fix the c++ end.
Is it ok?
Thanks
Pearly
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100519/051a0d98/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 18249.patch
Type: text/x-patch
Size: 20139 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100519/051a0d98/attachment.bin>
More information about the Gcc-patches
mailing list