mirror of
https://github.com/systemd/systemd.git
synced 2024-12-03 23:33:38 +08:00
3cc2aff1ab
Turn this: if ((r = foo()) < 0) { ... into this: r = foo(); if (r < 0) { ...
21 lines
200 B
Plaintext
21 lines
200 B
Plaintext
@@
|
|
expression p, q;
|
|
identifier r;
|
|
statement s;
|
|
@@
|
|
- if ((r = q) < p)
|
|
- s
|
|
+ r = q;
|
|
+ if (r < p)
|
|
+ s
|
|
@@
|
|
expression p, q;
|
|
identifier r;
|
|
statement s;
|
|
@@
|
|
- if ((r = q) >= p)
|
|
- s
|
|
+ r = q;
|
|
+ if (r >= p)
|
|
+ s
|