1 Mar 2009 13:59
Re: [PATCH] ao_dart
KO Myung-Hun <komh <at> chollian.net>
2009-03-01 12:59:30 GMT
2009-03-01 12:59:30 GMT
Hi/2.
Diego Biurrun wrote:
>> But, now the closing bracket '}' of last case is placed on the same
>> depth with the closing bracket '}' of switch. I think it's not good
>> style.
>>
>
> Just look at what K&R really does: Indent the opening brace after 'case'.
>
>
How do I that in this case ?
case 1234:
{
if (true) {
}
break;
}
Just do that ?
>>>> +static int play(void *data, int len, int flags)
>>>> +{
>>>> +
>>>> + if (!(flags & AOPLAY_FINAL_CHUNK))
>>>> + len = (len / ao_data.outburst) * ao_data.outburst;
>>>> +
>>>> + return write_buffer(data, len);
(Continue reading)
RSS Feed