Re: [PATCH 6/9] gettext.h: Avoid using a non-standard C construct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 8, 2011 at 00:10, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote:
> Hi,
>
> Ramsay Jones wrote:
>
>> +++ b/gettext.h
>> @@ -35,6 +35,6 @@ const char *Q_(const char *msgid, const char *plu, unsigned long n)
> [...]
>> -#define N_(msgid) (msgid)
>> +#define N_(msgid) msgid
>
> Good catch. ÂThanks!
>
>> In particular, standard C does not allow a parenthesized string
>> as an array initializer.
>
> The subject line seems unnecessarily vague. ÂWhy not:
>
> Â Â Â Âi18n: avoid parenthesized string as array initializer
>
> Â Â Â ÂThe syntax
>
> Â Â Â Â Â Â Â Âstatic const char ignore_error[] = ("something");
>
> Â Â Â Âis invalid C. ÂGCC and MSVC can parse it, but for example
> Â Â Â Âtcc cannot. ÂSo remove the parenthesis from the definition
> Â Â Â Âof the N_() macro.
>
> Â Â Â ÂSigned-off-by: Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx>
> Â Â Â ÂAcked-by: Jonathan Nieder <jrnieder@xxxxxxxxx>

This looks good to me with this commit message:

Acked-by: Ãvar ArnfjÃrà Bjarmason <avarab@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]