mirror of
https://github.com/systemd/systemd.git
synced 2024-11-14 15:21:37 +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
|