Willy Tarreau | 70deec7 | 2022-05-17 16:30:44 +0200 | [diff] [blame] | 1 | @@ |
| 2 | struct cs_endpoint *endp; |
| 3 | expression e; |
| 4 | @@ |
| 5 | ( |
| 6 | - (endp->flags & (e)) |
| 7 | + se_fl_test(endp, e) |
| 8 | | |
| 9 | - (endp->flags & e) |
| 10 | + se_fl_test(endp, e) |
| 11 | | |
| 12 | - endp->flags & (e) |
| 13 | + se_fl_test(endp, e) |
| 14 | | |
| 15 | - endp->flags & e |
| 16 | + se_fl_test(endp, e) |
| 17 | ) |
| 18 | |
| 19 | @@ |
| 20 | struct cs_endpoint *endp; |
| 21 | expression e; |
| 22 | @@ |
| 23 | ( |
| 24 | - endp->flags |= (e) |
| 25 | + se_fl_set(endp, e) |
| 26 | | |
| 27 | - endp->flags |= e |
| 28 | + se_fl_set(endp, e) |
| 29 | ) |
| 30 | |
| 31 | @@ |
| 32 | struct cs_endpoint *endp; |
| 33 | expression e; |
| 34 | @@ |
| 35 | ( |
| 36 | - endp->flags &= ~(e) |
| 37 | + se_fl_clr(endp, e) |
| 38 | | |
| 39 | - endp->flags &= (e) |
| 40 | + se_fl_clr(endp, ~e) |
| 41 | | |
| 42 | - endp->flags &= ~e |
| 43 | + se_fl_clr(endp, e) |
| 44 | | |
| 45 | - endp->flags &= e |
| 46 | + se_fl_clr(endp, ~e) |
| 47 | ) |
| 48 | |
| 49 | @@ |
| 50 | struct cs_endpoint *endp; |
| 51 | @@ |
| 52 | - endp->flags = 0 |
| 53 | + se_fl_zero(endp) |
| 54 | |
| 55 | @@ |
| 56 | struct cs_endpoint *endp; |
| 57 | expression e; |
| 58 | @@ |
| 59 | ( |
| 60 | - endp->flags = (e) |
| 61 | + se_fl_setall(endp, e) |
| 62 | | |
| 63 | - endp->flags = e |
| 64 | + se_fl_setall(endp, e) |
| 65 | ) |
| 66 | |
| 67 | @@ |
| 68 | struct cs_endpoint *endp; |
| 69 | @@ |
| 70 | ( |
| 71 | - (endp->flags) |
| 72 | + se_fl_get(endp) |
| 73 | | |
| 74 | - endp->flags |
| 75 | + se_fl_get(endp) |
| 76 | ) |