summaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ast.h b/src/ast.h
index 4b7eeff5..39fd5fc4 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -152,7 +152,7 @@ WABT_DEFINE_VECTOR(func_ptr, WabtFuncPtr);
typedef struct WabtGlobal {
WabtStringSlice name;
WabtType type;
- WabtBool mutable_;
+ bool mutable_;
WabtExpr* init_expr;
} WabtGlobal;
typedef WabtGlobal* WabtGlobalPtr;
@@ -510,18 +510,18 @@ void wabt_find_duplicate_bindings(const WabtBindingHash*,
WabtDuplicateBindingCallback callback,
void* user_data);
-static WABT_INLINE WabtBool
+static WABT_INLINE bool
wabt_decl_has_func_type(const WabtFuncDeclaration* decl) {
- return (WabtBool)((decl->flags & WABT_FUNC_DECLARATION_FLAG_HAS_FUNC_TYPE) !=
- 0);
+ return (bool)((decl->flags & WABT_FUNC_DECLARATION_FLAG_HAS_FUNC_TYPE) != 0);
}
-static WABT_INLINE WabtBool
+static WABT_INLINE bool
wabt_signatures_are_equal(const WabtFuncSignature* sig1,
const WabtFuncSignature* sig2) {
- return (WabtBool)(
- wabt_type_vectors_are_equal(&sig1->param_types, &sig2->param_types) &&
- wabt_type_vectors_are_equal(&sig1->result_types, &sig2->result_types));
+ return (bool)(wabt_type_vectors_are_equal(&sig1->param_types,
+ &sig2->param_types) &&
+ wabt_type_vectors_are_equal(&sig1->result_types,
+ &sig2->result_types));
}
static WABT_INLINE size_t wabt_get_num_params(const WabtFunc* func) {