Re: [Qemu-devel] [PATCH] CODING_STYLE: explicitly allow braceless 'else if'

2011-07-29 Thread Anthony Liguori
On 07/25/2011 10:55 AM, Avi Kivity wrote: It's already allowed by the example; there are about 1800 instances in the tree; and disallowing it would lead to if (a) { ... } else { if (b) { ... } else { if (c) { ...

Re: [Qemu-devel] [PATCH] CODING_STYLE: explicitly allow braceless 'else if'

2011-07-26 Thread Stefan Hajnoczi
On Mon, Jul 25, 2011 at 6:00 PM, Blue Swirl blauwir...@gmail.com wrote: On Mon, Jul 25, 2011 at 6:55 PM, Avi Kivity a...@redhat.com wrote: It's already allowed by the example; there are about 1800 instances in the tree; and disallowing it would lead to    if (a) {        ...    } else {    

[Qemu-devel] [PATCH] CODING_STYLE: explicitly allow braceless 'else if'

2011-07-25 Thread Avi Kivity
It's already allowed by the example; there are about 1800 instances in the tree; and disallowing it would lead to if (a) { ... } else { if (b) { ... } else { if (c) { ... } else { if (d) {

Re: [Qemu-devel] [PATCH] CODING_STYLE: explicitly allow braceless 'else if'

2011-07-25 Thread Blue Swirl
On Mon, Jul 25, 2011 at 6:55 PM, Avi Kivity a...@redhat.com wrote: It's already allowed by the example; there are about 1800 instances in the tree; and disallowing it would lead to    if (a) {        ...    } else {        if (b) {            ...        } else {            if (c) {