diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-11-29 16:51:30 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-11-29 16:51:30 -0500 |
commit | 428e152be6bb0fd3867e41cee82a6d5968a11a26 (patch) | |
tree | e43d217c10c052704f872cd7e1df4d335c12d376 /rts/Printer.c | |
parent | 56d74515396c8b6360ba7898cbc4b68f0f1fb2ea (diff) | |
download | haskell-428e152be6bb0fd3867e41cee82a6d5968a11a26.tar.gz |
Use C99's bool
Test Plan: Validate on lots of platforms
Reviewers: erikd, simonmar, austin
Reviewed By: erikd, simonmar
Subscribers: michalt, thomie
Differential Revision: https://phabricator.haskell.org/D2699
Diffstat (limited to 'rts/Printer.c')
-rw-r--r-- | rts/Printer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rts/Printer.c b/rts/Printer.c index cbbddd6641..5d6e585eff 100644 --- a/rts/Printer.c +++ b/rts/Printer.c @@ -635,7 +635,7 @@ const char *lookupGHCName( void *addr ) * rubbish like the obj-splitting symbols */ -static rtsBool isReal( flagword flags STG_UNUSED, const char *name ) +static bool isReal( flagword flags STG_UNUSED, const char *name ) { #if 0 /* ToDo: make this work on BFD */ @@ -643,15 +643,15 @@ static rtsBool isReal( flagword flags STG_UNUSED, const char *name ) if (tp == N_TEXT || tp == N_DATA) { return (name[0] == '_' && name[1] != '_'); } else { - return rtsFalse; + return false; } #else if (*name == '\0' || (name[0] == 'g' && name[1] == 'c' && name[2] == 'c') || (name[0] == 'c' && name[1] == 'c' && name[2] == '.')) { - return rtsFalse; + return false; } - return rtsTrue; + return true; #endif } |