diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:41:45 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:48:24 +0000 |
| commit | 33b55db48e9573c6c825e3a222ff968f6a0bd4f4 (patch) | |
| tree | 307ff8d8d8a42e31830afe22aa47820f6caecc97 /tree234.h | |
| parent | 836a5c4ea742cc2ab23537993e8c54b251ae803b (diff) | |
| download | puzzles-33b55db48e9573c6c825e3a222ff968f6a0bd4f4.zip puzzles-33b55db48e9573c6c825e3a222ff968f6a0bd4f4.tar.gz puzzles-33b55db48e9573c6c825e3a222ff968f6a0bd4f4.tar.bz2 puzzles-33b55db48e9573c6c825e3a222ff968f6a0bd4f4.tar.xz | |
Adopt C99 bool in the tree234 API.
The only affected function here is splitpos234, which I don't think
these puzzles are even using at the moment.
Diffstat (limited to 'tree234.h')
| -rw-r--r-- | tree234.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,6 +28,8 @@ #ifndef TREE234_H #define TREE234_H +#include <stdbool.h> + /* * This typedef is opaque outside tree234.c itself. */ @@ -172,7 +174,7 @@ int count234(tree234 *t); * in the tree that satisfy the relation are returned; the * remainder are left. */ -tree234 *splitpos234(tree234 *t, int index, int before); +tree234 *splitpos234(tree234 *t, int index, bool before); tree234 *split234(tree234 *t, void *e, cmpfn234 cmp, int rel); /* |