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/WSDeque.h | |
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/WSDeque.h')
-rw-r--r-- | rts/WSDeque.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rts/WSDeque.h b/rts/WSDeque.h index 5a23746562..58c7a58cb4 100644 --- a/rts/WSDeque.h +++ b/rts/WSDeque.h @@ -76,7 +76,7 @@ void* popWSDeque (WSDeque *q); // Push onto the "write" end of the pool. Return true if the push // succeeded, or false if the deque is full. -rtsBool pushWSDeque (WSDeque *q, void *elem); +bool pushWSDeque (WSDeque *q, void *elem); // Removes all elements from the deque EXTERN_INLINE void discardElements (WSDeque *q); @@ -93,7 +93,7 @@ void * stealWSDeque (WSDeque *q); // "guesses" whether a deque is empty. Can return false negatives in // presence of concurrent steal() calls, and false positives in // presence of a concurrent pushBottom(). -EXTERN_INLINE rtsBool looksEmptyWSDeque (WSDeque* q); +EXTERN_INLINE bool looksEmptyWSDeque (WSDeque* q); EXTERN_INLINE long dequeElements (WSDeque *q); @@ -110,7 +110,7 @@ dequeElements (WSDeque *q) return ((long)b - (long)t); } -EXTERN_INLINE rtsBool +EXTERN_INLINE bool looksEmptyWSDeque (WSDeque *q) { return (dequeElements(q) <= 0); |