diff options
Diffstat (limited to 'coccinelle/swap-two.cocci')
-rw-r--r-- | coccinelle/swap-two.cocci | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coccinelle/swap-two.cocci b/coccinelle/swap-two.cocci new file mode 100644 index 0000000..edf7d32 --- /dev/null +++ b/coccinelle/swap-two.cocci @@ -0,0 +1,7 @@ +@@ +expression x, y, z; +@@ +- z = x; +- x = y; +- y = z; ++ SWAP_TWO(x, y); |