From 1c53b01e863129b11b64577ddea29eec11c7392e Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 5 Nov 2024 21:26:21 +0100 Subject: META: Update copyright holder. IMP: Add Macros.h to SCIKit for types and macros. IMP: Include Macros.h to Foundation.h. Signed-off-by: Amlal El Mahrouss --- dev/SCIKit/CompilerHint.h | 2 +- dev/SCIKit/Foundation.h | 44 ++++--------------------------------- dev/SCIKit/LPC.h | 2 +- dev/SCIKit/Macros.h | 38 ++++++++++++++++++++++++++++++++ dev/SCIKit/src/DispatchSysCalls.asm | 2 +- dev/SCIKit/src/Foundation.cc | 2 +- 6 files changed, 46 insertions(+), 44 deletions(-) create mode 100644 dev/SCIKit/Macros.h (limited to 'dev/SCIKit') diff --git a/dev/SCIKit/CompilerHint.h b/dev/SCIKit/CompilerHint.h index 66b28e99..1026dfc0 100644 --- a/dev/SCIKit/CompilerHint.h +++ b/dev/SCIKit/CompilerHint.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright Amlal EL Mahrouss. + Copyright (C) 2024, EL Mahrouss Logic, all rights reserved. ------------------------------------------- */ diff --git a/dev/SCIKit/Foundation.h b/dev/SCIKit/Foundation.h index 134e34dd..aeef7928 100644 --- a/dev/SCIKit/Foundation.h +++ b/dev/SCIKit/Foundation.h @@ -1,55 +1,19 @@ /* ------------------------------------------- -Copyright Amlal EL Mahrouss. +Copyright (C) 2024, EL Mahrouss Logic, all rights reserved. -File: sci_base.h -Purpose: SCI core header file (C++ only). +File: Foundation.h +Purpose: SCIKit Foundation header. ------------------------------------------- */ #ifndef SCIKIT_FOUNDATION_H #define SCIKIT_FOUNDATION_H -#define ATTRIBUTE(X) __attribute__((X)) -#define IMPORT_CXX extern "C++" -#define IMPORT_C extern "C" - -typedef bool Bool; -typedef void Void; - -typedef __UINT64_TYPE__ UInt64; -typedef __UINT32_TYPE__ UInt32; -typedef __UINT16_TYPE__ UInt16; -typedef __UINT8_TYPE__ UInt8; - -typedef __SIZE_TYPE__ SizeT; - -typedef __INT64_TYPE__ SInt64; -typedef __INT32_TYPE__ SInt32; -typedef __INT16_TYPE__ SInt16; -typedef __INT8_TYPE__ SInt8; - -typedef void* VoidPtr; -typedef __UINTPTR_TYPE__ UIntPtr; -typedef char Char; - +#include #include #include -// ------------------------------------------------------------------------------------------ // -/// @brief Handle Type Definitions. -// ------------------------------------------------------------------------------------------ // - -typedef VoidPtr SCIObject; - -typedef SCIObject DLLObject; -typedef SCIObject IOObject; -typedef SCIObject SCMObject; -typedef SCIObject ThreadObject; -typedef SCIObject SocketObject; -typedef SCIObject ShellObject; -typedef SCIObject UIObject; - // ------------------------------------------------------------------------------------------ // /// @brief Dynamic Loader API. // ------------------------------------------------------------------------------------------ // diff --git a/dev/SCIKit/LPC.h b/dev/SCIKit/LPC.h index d3477d88..c81554d4 100644 --- a/dev/SCIKit/LPC.h +++ b/dev/SCIKit/LPC.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright Amlal EL Mahrouss. + Copyright (C) 2024, EL Mahrouss Logic, all rights reserved. ------------------------------------------- */ diff --git a/dev/SCIKit/Macros.h b/dev/SCIKit/Macros.h new file mode 100644 index 00000000..66263f34 --- /dev/null +++ b/dev/SCIKit/Macros.h @@ -0,0 +1,38 @@ +#pragma once + +// ------------------------------------------------------------------------------------------ // +/// @brief Handle Type and Macros definitions. +// ------------------------------------------------------------------------------------------ // + +#define ATTRIBUTE(X) __attribute__((X)) +#define IMPORT_CXX extern "C++" +#define IMPORT_C extern "C" + +typedef bool Bool; +typedef void Void; + +typedef __UINT64_TYPE__ UInt64; +typedef __UINT32_TYPE__ UInt32; +typedef __UINT16_TYPE__ UInt16; +typedef __UINT8_TYPE__ UInt8; + +typedef __SIZE_TYPE__ SizeT; + +typedef __INT64_TYPE__ SInt64; +typedef __INT32_TYPE__ SInt32; +typedef __INT16_TYPE__ SInt16; +typedef __INT8_TYPE__ SInt8; + +typedef void* VoidPtr; +typedef __UINTPTR_TYPE__ UIntPtr; +typedef char Char; + +typedef VoidPtr SCIObject; + +typedef SCIObject DLLObject; +typedef SCIObject IOObject; +typedef SCIObject SCMObject; +typedef SCIObject ThreadObject; +typedef SCIObject SocketObject; +typedef SCIObject ShellObject; +typedef SCIObject UIObject; diff --git a/dev/SCIKit/src/DispatchSysCalls.asm b/dev/SCIKit/src/DispatchSysCalls.asm index bc40f410..337e9533 100644 --- a/dev/SCIKit/src/DispatchSysCalls.asm +++ b/dev/SCIKit/src/DispatchSysCalls.asm @@ -2,7 +2,7 @@ ;; * ======================================================== ;; * ;; * ZKA -;; * Copyright Amlal EL Mahrouss., all rights reserved. +;; * Copyright (C) 2024, EL Mahrouss Logic, all rights reserved., all rights reserved. ;; * ;; * ======================================================== ;; */ diff --git a/dev/SCIKit/src/Foundation.cc b/dev/SCIKit/src/Foundation.cc index 3d9f4734..e58a61ce 100644 --- a/dev/SCIKit/src/Foundation.cc +++ b/dev/SCIKit/src/Foundation.cc @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright Amlal EL Mahrouss. + Copyright (C) 2024, EL Mahrouss Logic, all rights reserved. ------------------------------------------- */ -- cgit v1.2.3