Re: [PATCH 4/5] diff: use SWAP macro
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 30, 2017, 22:22 UTC
- Message-ID
- <xmqqmve8tcg2.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <84944ecd-d14e-b5e9-7566-9ab2b68c02fb@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 7 quoted lines
> Use the macro SWAP to exchange the value of pairs of variables instead > of swapping them manually with the help of a temporary variable. The > resulting code is shorter and easier to read. > > The two cases were not transformed by the semantic patch swap.cocci > because it's extra careful and handles only cases where the types of all > variables are the same
Ah, that explains my "huh?" in 3/5; thanks.