diff options
Diffstat (limited to 'include/std')
-rw-r--r-- | include/std/buffer_view.h | 1 | ||||
-rw-r--r-- | include/std/misc.h | 9 | ||||
-rw-r--r-- | include/std/types.h | 9 |
3 files changed, 10 insertions, 9 deletions
diff --git a/include/std/buffer_view.h b/include/std/buffer_view.h index 4993dc2..59a97d3 100644 --- a/include/std/buffer_view.h +++ b/include/std/buffer_view.h @@ -10,5 +10,6 @@ typedef struct { BufferView create_buffer_view_null(); BufferView create_buffer_view(const char *data, usize size); +bool buffer_view_equals(const BufferView *self, const BufferView *other); #endif diff --git a/include/std/misc.h b/include/std/misc.h index 2fbe92c..e89f1eb 100644 --- a/include/std/misc.h +++ b/include/std/misc.h @@ -41,13 +41,4 @@ #define ignore_result_int(expr) (void)((expr)+1) -typedef enum { - bool_false, - bool_true -} bool; - -#ifndef NULL -#define NULL ((void*)0) -#endif - #endif diff --git a/include/std/types.h b/include/std/types.h index a8a44fd..bbf31c5 100644 --- a/include/std/types.h +++ b/include/std/types.h @@ -20,4 +20,13 @@ typedef size_t usize; typedef float f32; typedef double f64; +typedef enum { + bool_false, + bool_true +} bool; + +#ifndef NULL +#define NULL ((void*)0) +#endif + #endif |