7ef0d62730
Merge commit '1b593e1ea4d2af0f6444d9a7788d5d99abd6fde5' as 'third_party/git'
28 lines
280 B
Text
28 lines
280 B
Text
@ swap_with_declaration @
|
|
type T;
|
|
identifier tmp;
|
|
T a, b;
|
|
@@
|
|
- T tmp = a;
|
|
+ T tmp;
|
|
+ tmp = a;
|
|
a = b;
|
|
b = tmp;
|
|
|
|
@ swap @
|
|
type T;
|
|
T tmp, a, b;
|
|
@@
|
|
- tmp = a;
|
|
- a = b;
|
|
- b = tmp;
|
|
+ SWAP(a, b);
|
|
|
|
@ extends swap @
|
|
identifier unused;
|
|
@@
|
|
{
|
|
...
|
|
- T unused;
|
|
... when != unused
|
|
}
|