Skip to content

Commit

Permalink
(#580) Cleanup some bool stuff (#584)
Browse files Browse the repository at this point in the history
* Add the header file for _Bool

* converting bool to bool32

* move stdbool include

---------

Co-authored-by: Rob Johnson <[email protected]>
  • Loading branch information
deukyeon and rtjohnso authored Jul 25, 2023
1 parent a3e9469 commit a7547cd
Show file tree
Hide file tree
Showing 59 changed files with 603 additions and 592 deletions.
3 changes: 1 addition & 2 deletions include/splinterdb/platform_linux/public_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* compiler/processor.
*/
#include <stdint.h>
#include <stdbool.h>

// Types
typedef unsigned char uchar;
Expand Down Expand Up @@ -61,8 +62,6 @@ static_assert(sizeof(uint64) == 8, "incorrect type");
# define FALSE (0)
#endif

typedef uint8 bool8;

typedef FILE platform_log_handle;

// By default, info messages sent from platform_default_log() go to /dev/null
Expand Down
2 changes: 1 addition & 1 deletion src/allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ allocator_print_allocated(allocator *al)
return al->ops->print_allocated(al);
}

static inline bool
static inline bool32
allocator_page_valid(allocator *al, uint64 addr)
{
allocator_config *allocator_cfg = allocator_get_config(al);
Expand Down
Loading

0 comments on commit a7547cd

Please sign in to comment.