Re: how to implement this ?

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

 



On 01/07/2013 06:07 AM, horseriver wrote:
> On Mon, Jan 07, 2013 at 03:44:01PM +0000, Andrew Haley wrote:
>> On 01/07/2013 05:57 AM, horseriver wrote:
>>>    gcc can translate "  ((a==0)?b:c)=8 " into if-else sentence   
>>>
>>>    is my idea ,not a reported error
>>
>> Oh, you mean why does C not allow ((a==0)?b:c)=8;
>>
>> You'd have to ask the C standard committee.  It's not something
>> that the language allows.
> but I find this use in kernel code .

GCC used to allow it as a language extension, a long time ago.

Andrew.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux