Commit e3ceedb355182bd4c881248c62cb82f651600333

Thomas de Grivel 2023-04-19T19:26:58

real numbers

diff --git a/libc3/real.c b/libc3/real.c
new file mode 100644
index 0000000..40631cf
--- /dev/null
+++ b/libc3/real.c
@@ -0,0 +1,24 @@
+/* c3
+ * Copyright 2022,2023 kmx.io <contact@kmx.io>
+ *
+ * Permission is hereby granted to use this software granted the above
+ * copyright notice and this permission paragraph are included in all
+ * copies and substantial portions of this software.
+ *
+ * THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+ * PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+ * AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+ * THIS SOFTWARE.
+ */
+#include "real.h"
+
+typedef struct real s_real;
+
+struct real {
+  s_integer i;
+  s_integer exponent;
+};
+
+/*
+typedef sw real[2][];
+*/