#501 closed enhancement (fixed)
Standard conforming boolean type
Reported by: | Jiri Svoboda | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 0.6.0 |
Component: | helenos/unspecified | Version: | mainline |
Keywords: | Cc: | ||
Blocker for: | Depends on: | ||
See also: |
Description
HelenOS uses, both in kernel and in userspace, a custom boolean type defined in bool.h, whose definition is similar to the ISO/IEC C99 standard boolean defined in stdbool.h.
Now that we expect to use a C99-conformant compiler, we can make the following change in both kernel and userspace:
- rename
bool.h
tostdbool.h
bool
shall be a macro that expands to the built-in type_Bool
__bool_true_false_are_defined
shall be a macro that expands to 1
this improves alignment with hosted implementation for userspace and freestanding implementation for kernel, as defined by the ISO/IEC C99 standard.
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 12 years ago
Milestone: | → 0.5.1 |
---|
Note:
See TracTickets
for help on using tickets.
Fixed in mainline,1729. At the same time I removed posix/stdbool.h from libposix which did basically the same.