[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: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 3/5] qapi: avoid reserved word restrict |
Date: |
Wed, 01 Aug 2012 08:45:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
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.
Paolo
- Re: [Qemu-devel] [PATCH 3/5] qapi: avoid reserved word restrict,
Paolo Bonzini <=