aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-25 21:15:34 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-25 21:15:34 +0100
commit257b6719ed89104018f6a521f6141ecd3eec3fd9 (patch)
tree590217da5f5131494ee3f002b44da25fa600a96d /nihil.ucl
parent0fc4b95e63370b9131c4e76f5f7137a4764dc341 (diff)
downloadnihil-257b6719ed89104018f6a521f6141ecd3eec3fd9.tar.gz
nihil-257b6719ed89104018f6a521f6141ecd3eec3fd9.tar.bz2
nihil: add an error type
Diffstat (limited to 'nihil.ucl')
-rw-r--r--nihil.ucl/integer.ccm1
-rw-r--r--nihil.ucl/object.ccm10
-rw-r--r--nihil.ucl/real.ccm1
3 files changed, 4 insertions, 8 deletions
diff --git a/nihil.ucl/integer.ccm b/nihil.ucl/integer.ccm
index e43ae8b..7a87df3 100644
--- a/nihil.ucl/integer.ccm
+++ b/nihil.ucl/integer.ccm
@@ -13,6 +13,7 @@ module;
export module nihil.ucl:integer;
import :object;
+import :type;
namespace nihil::ucl {
diff --git a/nihil.ucl/object.ccm b/nihil.ucl/object.ccm
index 5becfa8..9b48256 100644
--- a/nihil.ucl/object.ccm
+++ b/nihil.ucl/object.ccm
@@ -16,16 +16,15 @@ module;
#include <ucl.h>
+import nihil;
+
export module nihil.ucl:object;
-import nihil;
import :error;
import :type;
namespace nihil::ucl {
-export struct parser;
-
/***********************************************************************
* The basic object type.
*/
@@ -75,11 +74,6 @@ protected:
::ucl_object_t *_object = nullptr;
friend auto swap(object &a, object &b) -> void;
-
-private:
-
- friend struct parser;
- friend struct iterator;
};
/***********************************************************************
diff --git a/nihil.ucl/real.ccm b/nihil.ucl/real.ccm
index e0ecbb5..4e2748b 100644
--- a/nihil.ucl/real.ccm
+++ b/nihil.ucl/real.ccm
@@ -11,6 +11,7 @@ module;
export module nihil.ucl:real;
import :object;
+import :type;
namespace nihil::ucl {