Skip to content

Commit 5c2407c

Browse files
committed
bool is a keyword in C23, so don't try to typedef it.
1 parent 02408f9 commit 5c2407c

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

mach/proto/top/top.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ struct instr_descr {
8282
struct templat templates[MAXOP];
8383
};
8484

85-
typedef int bool;
86-
8785
#define TRUE 1
8886
#define FALSE 0
8987

util/ego/share/types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
typedef struct argbytes argb_t;
2020
typedef char byte;
21-
typedef byte bool;
2221
typedef long offset;
2322
typedef short obj_id;
2423
typedef short proc_id;

util/opt/types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#define TYPES_H_
77

88
typedef unsigned char byte;
9-
typedef char bool;
109
typedef struct line line_t;
1110
typedef struct line *line_p;
1211
typedef struct sym sym_t;

0 commit comments

Comments
 (0)