Fork us on GitHub Follow us on Facebook Follow us on Twitter

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 to stdbool.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 Changed 7 years ago by Jiri Svoboda

Fixed in mainline,1729. At the same time I removed posix/stdbool.h from libposix which did basically the same.

comment:2 Changed 7 years ago by Jiri Svoboda

Resolution: fixed
Status: newclosed

comment:3 Changed 7 years ago by Jiri Svoboda

Milestone: 0.5.1
Note: See TracTickets for help on using tickets.