aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-15 18:34:04 -0800
committerMichael Forney <mforney@mforney.org>2019-02-15 18:34:04 -0800
commite477588215b222bf42d72385d9808db56e0bfce0 (patch)
tree2e30bdb37146c77ae73fdc7b16ced810b3588613
parent2836001e82b23ed83c100b74e44f23b57bc5f343 (diff)
Use bool typedef in .c files
-rw-r--r--qbe.c6
-rw-r--r--type.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/qbe.c b/qbe.c
index f0e37c5..ad82331 100644
--- a/qbe.c
+++ b/qbe.c
@@ -60,7 +60,7 @@ struct instruction {
struct block {
struct value label;
- _Bool terminated;
+ bool terminated;
struct array insts;
struct block *next;
@@ -960,7 +960,7 @@ emittype(struct type *t)
}
static void
-emitrepr(struct representation *r, _Bool abi)
+emitrepr(struct representation *r, bool abi)
{
if (abi && r->abi.id) {
putchar(':');
@@ -1030,7 +1030,7 @@ emitinst(struct instruction *inst)
}
void
-emitfunc(struct function *f, _Bool global)
+emitfunc(struct function *f, bool global)
{
struct block *b;
struct instruction **inst;
diff --git a/type.c b/type.c
index 90b35c2..c9a3a1e 100644
--- a/type.c
+++ b/type.c
@@ -193,7 +193,7 @@ typecompatible(struct type *t1, struct type *t2)
}
}
-_Bool
+bool
typesame(struct type *t1, struct type *t2)
{
// XXX: implement