Re: [PATCH 0/5] introduce SWAP macro

2017-01-30 Thread Junio C Hamano
René Scharfe writes: > Exchanging the value of two variables requires declaring a temporary > variable and repeating their names. The swap macro in apply.c > simplifies this for its callers without changing the compiled binary. > Polish this macro and export it, then use it

[PATCH 0/5] introduce SWAP macro

2017-01-28 Thread René Scharfe
Exchanging the value of two variables requires declaring a temporary variable and repeating their names. The swap macro in apply.c simplifies this for its callers without changing the compiled binary. Polish this macro and export it, then use it throughout the code to reduce repetition and hide