mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03: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
|