emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets


From: joakim
Subject: Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets
Date: Mon, 09 Feb 2015 21:24:24 +0100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> On 02/09/2015 03:56 AM, address@hidden wrote:
>> --- a/src/coding.c
>> +++ b/src/coding.c
>> @@ -5985,7 +5985,7 @@ bool
>>   raw_text_coding_system_p (struct coding_system *coding)
>>   {
>>     return (coding->decoder == decode_coding_raw_text
>> -      && coding->encoder == encode_coding_raw_text) ? true : false;
>> +      && coding->encoder == encode_coding_raw_text);
>>   }
>>
>
> Generally speaking, if EXPR is a boolean expression, it's simpler and
> clearer to write 'EXPR' than to write 'EXPR ? true : false'. Also, it
> makes for clearer indenting in this case.

My concern was that I have made no changees AFAIK to coding.c. So how
did it wind up in the patch you provided?


>> And these:
>> -  next_element_from_stretch
>> +  next_element_from_stretch,
>>   #ifdef HAVE_XWIDGETS
>> -  ,next_element_from_xwidget
>> +  next_element_from_xwidget,
>>
>> is it really correct to move the coma out of the ifdef?
>
> Yes, in C99, which Emacs is now assuming.

It feels weird, but well okay then. And its really considered better
form?

>

-- 
Joakim Verona



reply via email to

[Prev in Thread] Current Thread [Next in Thread]