diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2022-11-24 15:53:40 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-11-25 01:07:59 +0100 |
commit | 7063f0aefd8a8c3c8b610ef6168cddfb2141fa12 (patch) | |
tree | 33c160c80c6a269fb8adf7c65c75be7fc6181ea0 /utils.c | |
parent | f51fc836c5b690f5448e76196dd40bdb55957a11 (diff) | |
download | mig-7063f0aefd8a8c3c8b610ef6168cddfb2141fa12.tar.gz mig-7063f0aefd8a8c3c8b610ef6168cddfb2141fa12.tar.bz2 mig-7063f0aefd8a8c3c8b610ef6168cddfb2141fa12.zip |
mig: replace boolean.h with stdbool.h
Message-Id: <Y3/Z1CGL8D4OwT66@viriathus>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -88,14 +88,14 @@ WriteList(FILE *file, const argument_t *args, write_list_fn_t *func, u_int mask, const char *between, const char *after) { const argument_t *arg; - boolean_t sawone = FALSE; + bool sawone = false; for (arg = args; arg != argNULL; arg = arg->argNext) if (akCheckAll(arg->argKind, mask)) { if (sawone) fprintf(file, "%s", between); - sawone = TRUE; + sawone = true; (*func)(file, arg); } @@ -104,11 +104,11 @@ WriteList(FILE *file, const argument_t *args, write_list_fn_t *func, u_int mask, fprintf(file, "%s", after); } -static boolean_t +static bool WriteReverseListPrim(FILE *file, const argument_t *arg, write_list_fn_t *func, u_int mask, const char *between) { - boolean_t sawone = FALSE; + bool sawone = false; if (arg != argNULL) { @@ -118,7 +118,7 @@ WriteReverseListPrim(FILE *file, const argument_t *arg, { if (sawone) fprintf(file, "%s", between); - sawone = TRUE; + sawone = true; (*func)(file, arg); } @@ -131,7 +131,7 @@ void WriteReverseList(FILE *file, const argument_t *args, write_list_fn_t *func, u_int mask, const char *between, const char *after) { - boolean_t sawone; + bool sawone; sawone = WriteReverseListPrim(file, args, func, mask, between); @@ -147,7 +147,7 @@ WriteNameDecl(FILE *file, const argument_t *arg) /* Returns whether parameter should be qualified with const because we will only send the pointed data, not receive it. */ -static boolean_t +static bool UserVarConst(const argument_t *arg) { return (arg->argKind & (akbSend|akbReturn)) == akbSend @@ -184,7 +184,7 @@ WriteUserVarDecl(FILE *file, const argument_t *arg) /* Returns whether parameter should be qualified with const because we will only receive the pointed data, not modify it. */ -static boolean_t +static bool ServerVarConst(const argument_t *arg) { return (arg->argKind & (akbSend|akbReturn)) == akbSend @@ -225,7 +225,7 @@ WriteTypeDeclInServer(FILE *file, const argument_t *arg) { WriteStaticDecl(file, arg->argType, arg->argType->itIndefinite ? d_NO : arg->argDeallocate, - arg->argLongForm, /*is_server=*/TRUE, TRUE, arg->argTTName); + arg->argLongForm, /*is_server=*/true, true, arg->argTTName); } void @@ -233,7 +233,7 @@ WriteTypeDeclOutServer(FILE *file, const argument_t *arg) { WriteStaticDecl(file, arg->argType, arg->argType->itIndefinite ? d_NO : arg->argDeallocate, - arg->argLongForm, /*is_server=*/TRUE, FALSE, arg->argTTName); + arg->argLongForm, /*is_server=*/true, false, arg->argTTName); } void @@ -241,7 +241,7 @@ WriteTypeDeclInUser(FILE *file, const argument_t *arg) { WriteStaticDecl(file, arg->argType, arg->argType->itIndefinite ? d_NO : arg->argDeallocate, - arg->argLongForm, /*is_server=*/FALSE, TRUE, arg->argTTName); + arg->argLongForm, /*is_server=*/false, true, arg->argTTName); } void @@ -249,7 +249,7 @@ WriteTypeDeclOutUser(FILE *file, const argument_t *arg) { WriteStaticDecl(file, arg->argType, arg->argType->itIndefinite ? d_NO : arg->argDeallocate, - arg->argLongForm, /*is_server=*/FALSE, FALSE, arg->argTTName); + arg->argLongForm, /*is_server=*/false, false, arg->argTTName); } void @@ -349,7 +349,7 @@ WriteStructDecl(FILE *file, const argument_t *args, write_list_fn_t *func, static void WriteStaticLongDecl(FILE *file, const ipc_type_t *it, - dealloc_t dealloc, boolean_t inname, identifier_t name) + dealloc_t dealloc, bool inname, identifier_t name) { fprintf(file, "\tconst mach_msg_type_long_t %s = {\n", name); fprintf(file, "\t{\n"); @@ -372,7 +372,7 @@ WriteStaticLongDecl(FILE *file, const ipc_type_t *it, static void WriteStaticShortDecl(FILE *file, const ipc_type_t *it, - dealloc_t dealloc, boolean_t is_server, boolean_t inname, + dealloc_t dealloc, bool is_server, bool inname, identifier_t name) { fprintf(file, "\tconst mach_msg_type_t %s = {\n", name); @@ -398,7 +398,7 @@ WriteStaticShortDecl(FILE *file, const ipc_type_t *it, void WriteStaticDecl(FILE *file, const ipc_type_t *it, dealloc_t dealloc, - boolean_t longform, boolean_t is_server, boolean_t inname, + bool longform, bool is_server, bool inname, identifier_t name) { if (longform) @@ -506,7 +506,7 @@ WriteCopyType(FILE *file, const ipc_type_t *it, const char *left, void WritePackMsgType(FILE *file, const ipc_type_t *it, dealloc_t dealloc, - boolean_t longform, boolean_t inname, const char *left, + bool longform, bool inname, const char *left, const char *right, ...) { fprintf(file, "\t"); |