Do not use `bool` type; use new `bt_bool` instead
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 11 May 2017 21:12:46 +0000 (17:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:42 +0000 (12:57 -0400)
commitc55a9f585da53ea54ac458155fac3cdec1779d47
tree5125b770d079e89b4a095c58553b39ab3864f314
parent69b772a4f25fc4512abc877662a8c19e404b452c
Do not use `bool` type; use new `bt_bool` instead

There are possible ABI incompatibilities between C99's `bool` (`_Bool`)
type and C++'s `bool` type, and also between different compilers. For
this reason we choose to use our own boolean type, `bt_bool`, which is
defined as `int`. `BT_FALSE` and `BT_TRUE` are our own definitions for
false and true.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
60 files changed:
cli/babeltrace-cfg.h
cli/babeltrace.c
doc/api/Doxyfile.in
include/Makefile.am
include/babeltrace/babeltrace-internal.h
include/babeltrace/babeltrace.h
include/babeltrace/common-internal.h
include/babeltrace/ctf-ir/clock-class-internal.h
include/babeltrace/ctf-ir/clock-class.h
include/babeltrace/ctf-ir/field-types-internal.h
include/babeltrace/ctf-ir/fields-internal.h
include/babeltrace/ctf-ir/trace-internal.h
include/babeltrace/ctf-ir/trace.h
include/babeltrace/ctf-writer/serialize-internal.h
include/babeltrace/graph/clock-class-priority-map-internal.h
include/babeltrace/graph/component-class-internal.h
include/babeltrace/graph/component-class.h
include/babeltrace/graph/component-internal.h
include/babeltrace/graph/component.h
include/babeltrace/graph/notification-heap.h
include/babeltrace/graph/notification-internal.h
include/babeltrace/graph/notification-iterator-internal.h
include/babeltrace/graph/port.h
include/babeltrace/plugin/plugin-internal.h
include/babeltrace/plugin/plugin-so-internal.h
include/babeltrace/plugin/plugin.h
include/babeltrace/types.h [new file with mode: 0644]
include/babeltrace/values.h
lib/babeltrace.c
lib/ctf-ir/clock-class.c
lib/ctf-ir/event-class.c
lib/ctf-ir/field-types.c
lib/ctf-ir/fields.c
lib/ctf-ir/resolve.c
lib/ctf-ir/stream.c
lib/ctf-ir/trace.c
lib/ctf-writer/serialize.c
lib/ctf-writer/writer.c
lib/graph/component-class.c
lib/graph/component.c
lib/graph/graph.c
lib/graph/iterator.c
lib/graph/notification/event.c
lib/plugin/plugin-so.c
lib/plugin/plugin.c
lib/values.c
plugins/ctf/common/metadata/visitor-generate-ir.c
plugins/ctf/fs-src/fs.c
plugins/ctf/fs-src/fs.h
plugins/lttng-utils/plugin.c
plugins/text/pretty/pretty.c
plugins/utils/muxer/muxer.c
plugins/utils/trimmer/trimmer.c
tests/lib/test_bt_ctf_field_type_validation.c
tests/lib/test_bt_notification_heap.c
tests/lib/test_bt_notification_iterator.c
tests/lib/test_bt_values.c
tests/lib/test_ir_visit.c
tests/lib/test_plugin.c
tests/plugins/test-utils-muxer.c
This page took 0.030817 seconds and 4 git commands to generate.