shithub: riscv

Download patch

ref: f860f25f054305a6430d2113bb5e6c4680b1a2f3
parent: 8550a2adb53e41368b0ca706a070cf3e554031c6
author: Ori Bernstein <ori@eigenstate.org>
date: Sun May 17 04:18:49 EDT 2020

Add stdbool.h to ape

in accordance with c99:7.16. Used by perl, trivial enough
that I feel ok with adding it before the port is fully done.

--- /dev/null
+++ b/sys/include/ape/stdbool.h
@@ -1,0 +1,12 @@
+#ifndef __STDBOOL_H__
+#define __STDBOOL_H__
+
+/* Strictly speaking, this should be a built-in type. */
+typedef char _Bool;
+
+#define bool _Bool
+#define true 1
+#define false 0
+#define __bool_true_false_are_defined 1
+
+#endif