- Notifications
You must be signed in to change notification settings - Fork28
Commitff43b3e
committed
Sync our DTrace infrastructure with c.h's definition of type bool.
Since commitd26a810, we've defined bool as being either _Bool from<stdbool.h>, or "unsigned char"; but that commit overlooked the factthat probes.d has "#define bool char". For consistency, make it say"unsigned char" instead. This should be strictly a cosmetic change,but it seems best to be in sync.Formally, in the now-normal case where we're using <stdbool.h>, it'dbe better to write "#define bool _Bool". However, then we'd needsome build infrastructure to inject that configuration choice intoprobes.d, and it doesn't seem worth the trouble. We only use<stdbool.h> if sizeof(_Bool) is 1, so having DTrace think thatbool parameters are "unsigned char" should be close enough.Back-patch to v12 whered26a810 came in.Discussion:https://postgr.es/m/CAA4eK1LmaKO7Du9M9Lo=kxGU8sB6aL8fa3sF6z6d5yYYVe3BuQ@mail.gmail.com1 parentd40abd5 commitff43b3e
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4638 | 4638 | | |
4639 | 4639 | | |
4640 | 4640 | | |
4641 | | - | |
| 4641 | + | |
4642 | 4642 | | |
4643 | 4643 | | |
4644 | 4644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments
Comments
(0)