mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
3cc2aff1ab
Turn this: if ((r = foo()) < 0) { ... into this: r = foo(); if (r < 0) { ...
20 lines
200 B
Text
20 lines
200 B
Text
@@
|
|
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
|