summaryrefslogtreecommitdiffhomepage
path: root/dev/lib
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-17 10:15:38 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-17 10:15:38 +0100
commit1d943dcfcddb68f489c126b1e0df41170287e63d (patch)
tree6507901f62b1ea75e599644e44540f2322c35f1a /dev/lib
parentd5c23fd4c37e29bc74a15491d43ef6bba8d3915a (diff)
feat: lib: make licensing clear.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib')
-rw-r--r--dev/lib/core/includes.hpp2
-rw-r--r--dev/lib/except/error.hpp5
-rw-r--r--dev/lib/fix/fix.hpp2
-rw-r--r--dev/lib/logic/equiv.hpp2
-rw-r--r--dev/lib/memory/allocator_system.hpp1
-rw-r--r--dev/lib/memory/tracked_ptr.hpp2
-rw-r--r--dev/lib/net/modem.hpp3
-rw-r--r--dev/lib/net/url.hpp2
-rw-r--r--dev/lib/tests/gtest.hpp2
-rw-r--r--dev/lib/tests/hpptest.hpp2
10 files changed, 11 insertions, 12 deletions
diff --git a/dev/lib/core/includes.hpp b/dev/lib/core/includes.hpp
index f988fc1..ff59535 100644
--- a/dev/lib/core/includes.hpp
+++ b/dev/lib/core/includes.hpp
@@ -2,7 +2,7 @@
* File: core/includes.hpp
* Purpose: Core includes for the OCL library.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once
diff --git a/dev/lib/except/error.hpp b/dev/lib/except/error.hpp
index 16bf5eb..73e0074 100644
--- a/dev/lib/except/error.hpp
+++ b/dev/lib/except/error.hpp
@@ -8,13 +8,14 @@
#define _OCL_ERR_HPP
#include <stdexcept>
+#include <lib/core/error_handler.hpp>
-namespace ocl
+namespace ocl::error
{
using runtime_error = std::runtime_error;
using fix_error = runtime_error;
using math_error = runtime_error;
using cgi_error = runtime_error;
-} // namespace ocl
+} // namespace ocl::error
#endif // _OCL_ERR_HPP \ No newline at end of file
diff --git a/dev/lib/fix/fix.hpp b/dev/lib/fix/fix.hpp
index 2d2c742..8035d55 100644
--- a/dev/lib/fix/fix.hpp
+++ b/dev/lib/fix/fix.hpp
@@ -2,7 +2,7 @@
* File: fix/fix.hpp
* Purpose: Financial Information Exchange parser in C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#ifndef _OCL_FIX_PARSER_HPP
diff --git a/dev/lib/logic/equiv.hpp b/dev/lib/logic/equiv.hpp
index 5b022f8..704e451 100644
--- a/dev/lib/logic/equiv.hpp
+++ b/dev/lib/logic/equiv.hpp
@@ -2,7 +2,7 @@
* File: equiv.hpp
* Purpose: Equivalence runtime c++ header.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once
diff --git a/dev/lib/memory/allocator_system.hpp b/dev/lib/memory/allocator_system.hpp
index 1243ed5..6fd0119 100644
--- a/dev/lib/memory/allocator_system.hpp
+++ b/dev/lib/memory/allocator_system.hpp
@@ -9,7 +9,6 @@
#define _OCL_ALLOCATOR_SYSTEM_HPP
#include <lib/core/includes.hpp>
-#include <stdexcept>
#include <memory>
namespace ocl
diff --git a/dev/lib/memory/tracked_ptr.hpp b/dev/lib/memory/tracked_ptr.hpp
index d2f8450..61daada 100644
--- a/dev/lib/memory/tracked_ptr.hpp
+++ b/dev/lib/memory/tracked_ptr.hpp
@@ -2,7 +2,7 @@
* File: memory/tracked_ptr.hpp
* Purpose: Custom smart pointer implementation in C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once
diff --git a/dev/lib/net/modem.hpp b/dev/lib/net/modem.hpp
index 074f182..450aee1 100644
--- a/dev/lib/net/modem.hpp
+++ b/dev/lib/net/modem.hpp
@@ -2,7 +2,7 @@
* File: net/modem.hpp
* Purpose: Modem concept in modern C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#ifndef _OCL_NET_NETWORK_HPP
@@ -12,7 +12,6 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <string>
-#include <utility>
#include <cstddef>
#define OCL_MODEM_INTERFACE : public ocl::net::basic_modem
diff --git a/dev/lib/net/url.hpp b/dev/lib/net/url.hpp
index ff6aebe..a337538 100644
--- a/dev/lib/net/url.hpp
+++ b/dev/lib/net/url.hpp
@@ -2,7 +2,7 @@
* File: net/url.hpp
* Purpose: URL container in modern C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once
diff --git a/dev/lib/tests/gtest.hpp b/dev/lib/tests/gtest.hpp
index deb2ddf..31ae5d7 100644
--- a/dev/lib/tests/gtest.hpp
+++ b/dev/lib/tests/gtest.hpp
@@ -2,7 +2,7 @@
* File: tests/gtest.hpp
* Purpose: Google Test wrapper for the OCL library.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#include <gtest/gtest.h>
diff --git a/dev/lib/tests/hpptest.hpp b/dev/lib/tests/hpptest.hpp
index f520339..5f78179 100644
--- a/dev/lib/tests/hpptest.hpp
+++ b/dev/lib/tests/hpptest.hpp
@@ -2,7 +2,7 @@
* File: tests/hpptest.hpp
* Purpose: HPP Test wrapper for the OCL library.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
- * Copyright 2025, Amlal El Mahrouss
+ * Copyright 2025, Amlal El Mahrouss, licensed under the MIT license.
*/
#pragma once