Systemd/coccinelle/swap-two.cocci

8 lines
71 B
Plaintext
Raw Permalink Normal View History

2018-11-26 19:10:26 +01:00
@@
expression x, y, z;
@@
- z = x;
- x = y;
- y = z;
+ SWAP_TWO(x, y);