[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/5] qapi: avoid reserved word restrict
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 3/5] qapi: avoid reserved word restrict |
Date: |
Wed, 1 Aug 2012 17:35:15 +0000 |
On Wed, Aug 1, 2012 at 6:45 AM, Paolo Bonzini <address@hidden> wrote:
> Il 31/07/2012 22:38, Blue Swirl ha scritto:
>>> > It's a whole lot of churn though, and clobbers the history for most QMP
>>> > functions. It also seems like a strange thing for clang to complain
>>> > about...
>> Not really, it's just C99:
>> http://en.wikipedia.org/wiki/Restrict
>>
>> Prefixing would solve also future problems: 'if', 'auto', maybe
>> 'static' can make sense for network options (as compared to DHCP) one
>> day etc.
>>
>
> We could detect C keywords and prefix (or suffix) an underscore
> automatically.
I'll send a new patch which avoids all C keywords.
>
> Paolo