Re: [PATCH] Use postfix increment

2021-07-14 Thread Peter Krempa
On Tue, Jul 13, 2021 at 14:18:24 +0200, Michal Prívozník wrote: > On 7/13/21 11:11 AM, Peter Krempa wrote: > > On Tue, Jul 13, 2021 at 08:44:06 +0200, Michal Privoznik wrote: > >> We document that our coding style is to use postfix increment in > >> for() loops rather than prefix. This change was

Re: [PATCH] Use postfix increment

2021-07-13 Thread Michal Prívozník
On 7/13/21 11:11 AM, Peter Krempa wrote: > On Tue, Jul 13, 2021 at 08:44:06 +0200, Michal Privoznik wrote: >> We document that our coding style is to use postfix increment in >> for() loops rather than prefix. This change was generated by the >> following sed script: >> >> for i in $(git grep -l

Re: [PATCH] Use postfix increment

2021-07-13 Thread Peter Krempa
On Tue, Jul 13, 2021 at 08:44:06 +0200, Michal Privoznik wrote: > We document that our coding style is to use postfix increment in > for() loops rather than prefix. This change was generated by the > following sed script: > > for i in $(git grep -l "for (.*; ++.*)"); do \ > sed -i 's/\(for

[PATCH] Use postfix increment

2021-07-13 Thread Michal Privoznik
We document that our coding style is to use postfix increment in for() loops rather than prefix. This change was generated by the following sed script: for i in $(git grep -l "for (.*; ++.*)"); do \ sed -i 's/\(for (.*; \)++\(.*\))/\1\2++)/' $i; \ done Signed-off-by: Michal Privoznik