diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-07 08:44:53 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-07 08:44:53 +0100 |
| commit | 696d6ffdd2404f2aca526075a0df9022e3397d72 (patch) | |
| tree | a34b4a3026dbd3a2ed41794555ab2f9020c4df35 /dev/SCIKit | |
| parent | 50c9f923a00e2fc1b80c9a7d860f96a4509d2232 (diff) | |
IMP: made make_application to executable, and refactor source code with
better comments.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/SCIKit')
| -rw-r--r-- | dev/SCIKit/Foundation.h | 2 | ||||
| -rw-r--r-- | dev/SCIKit/LPC.h | 5 | ||||
| -rw-r--r-- | dev/SCIKit/Macros.h | 17 | ||||
| -rw-r--r-- | dev/SCIKit/makefile | 12 |
4 files changed, 13 insertions, 23 deletions
diff --git a/dev/SCIKit/Foundation.h b/dev/SCIKit/Foundation.h index aeef7928..0bce54a2 100644 --- a/dev/SCIKit/Foundation.h +++ b/dev/SCIKit/Foundation.h @@ -11,8 +11,6 @@ Purpose: SCIKit Foundation header. #define SCIKIT_FOUNDATION_H
#include <SCIKit/Macros.h>
-#include <SCIKit/CompilerHint.h>
-#include <SCIKit/LPC.h>
// ------------------------------------------------------------------------------------------ //
/// @brief Dynamic Loader API.
diff --git a/dev/SCIKit/LPC.h b/dev/SCIKit/LPC.h index c81554d4..95cdad90 100644 --- a/dev/SCIKit/LPC.h +++ b/dev/SCIKit/LPC.h @@ -6,9 +6,10 @@ #pragma once +#include <SCIKit/Macros.h> + /// @file LPC.h -/// @brief Local Process Codes. -/// +/// @brief Local Process Code type and values. #define ErrLocalIsOk() (kLastError == kErrorSuccess) #define ErrLocalFailed() (kLastError != kErrorSuccess) #define ErrLocal() (kLastError) diff --git a/dev/SCIKit/Macros.h b/dev/SCIKit/Macros.h index 66263f34..114b74ef 100644 --- a/dev/SCIKit/Macros.h +++ b/dev/SCIKit/Macros.h @@ -1,13 +1,18 @@ #pragma once -// ------------------------------------------------------------------------------------------ // -/// @brief Handle Type and Macros definitions. -// ------------------------------------------------------------------------------------------ // +/***********************************************************************************/ +/// @file SCIKit/Macros.h +/// @brief Macros and core types. +/***********************************************************************************/ + +#include <SCIKit/CompilerHint.h> #define ATTRIBUTE(X) __attribute__((X)) #define IMPORT_CXX extern "C++" #define IMPORT_C extern "C" +#define DEPRECATED ATTRIBUTE(deprecated) + typedef bool Bool; typedef void Void; @@ -29,10 +34,8 @@ typedef char Char; typedef VoidPtr SCIObject; -typedef SCIObject DLLObject; typedef SCIObject IOObject; -typedef SCIObject SCMObject; +typedef IOObject FSObject; +typedef SCIObject DLLObject; typedef SCIObject ThreadObject; typedef SCIObject SocketObject; -typedef SCIObject ShellObject; -typedef SCIObject UIObject; diff --git a/dev/SCIKit/makefile b/dev/SCIKit/makefile deleted file mode 100644 index 1974aed3..00000000 --- a/dev/SCIKit/makefile +++ /dev/null @@ -1,12 +0,0 @@ -######################
-# (C) ZKA
-# SCIKit makefile.
-######################
-
-CC=clang++
-FLAGS=-I../ -shared -fPIC
-OUTPUT=SCIKit.dll
-
-.PHONY: build-sci
-build-sci:
- $(CC) $(wildcard src/*.cc) $(FLAGS) -o $(OUTPUT)
|
