On Fri, Mar 27, 2015 at 9:07 PM, Diego Biurrun <[email protected]> wrote:
> On Fri, Mar 27, 2015 at 01:20:48PM +0100, Luca Barbato wrote:
>> On 27/03/15 11:17, Diego Biurrun wrote:
>>
>> > regexp-replace is your friend.
>>
>> s:^\( *\)\(.,\) :\1 \2:
>>
>> assuming 2 digits.
>
> Simple regexp replacements with one's favorite editor are not common
> knowledge anymore?
>
> IMO simpler:
>
> sed -i -e 's/^    \([0-9],\) /     \1/' foo.c
>
> Note that '-i' is a GNU extension of sed.
>
> Diego

I've added a paragraph to the wiki
https://wiki.libav.org/CodingStyle/Uncrustify
Feel free to improve it.
Cheers,
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to