From 81c5f8e750fcda6a2451fb54604130431434f88f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Aug 2019 02:57:08 +0200 Subject: Implement more instructions, implement function parameters and arguments --- include/std/buffer_view.h | 1 + include/std/misc.h | 9 --------- include/std/types.h | 9 +++++++++ 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'include/std') 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 -- cgit v1.2.3