Thread (1 message) 1 message, 1 author, 2017-01-30

Re: [PATCH 0/5] introduce SWAP macro

From: Junio C Hamano <hidden>
Date: 2017-01-30 23:20:25

René Scharfe [off-list ref] 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 throughout the code to
reduce repetition and hide the declaration of temporary variables.
All looked reasonable (modulo "swap tree2 and tree1???" ordering).
Also the object-id ones looked good.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help