diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-23 03:48:06 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-23 03:48:06 +0200 |
| commit | 2eed4954c762bb8050e40798c3d9f1d3998324d1 (patch) | |
| tree | 8848d4345fca4d62c23d1e7136eeff2978c9e6c5 /dev/LibCompiler/Defines.h | |
| parent | 8ad58a91a11380203c4a81fe4dc93e7734631b32 (diff) | |
feat!(LibCompiler): Codebase and diagram has been improved.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/Defines.h')
| -rw-r--r-- | dev/LibCompiler/Defines.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/dev/LibCompiler/Defines.h b/dev/LibCompiler/Defines.h index eacf9c0..1735606 100644 --- a/dev/LibCompiler/Defines.h +++ b/dev/LibCompiler/Defines.h @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024-2025 Amlal EL Mahrous, all rights reserved + Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved ------------------------------------------- */ @@ -99,22 +99,16 @@ #define LC_IMPORT_C extern "C" #define LC_IMPORT extern - -#include <ctime> -#include <fstream> -#include <string> -#include <vector> - namespace LibCompiler { inline constexpr int kBaseYear = 1900; -typedef std::string String; +typedef std::string STLString; -inline String current_date() noexcept { +inline STLString current_date() noexcept { auto time_data = time(nullptr); auto time_struct = gmtime(&time_data); - String fmt = std::to_string(kBaseYear + time_struct->tm_year); + STLString fmt = std::to_string(kBaseYear + time_struct->tm_year); fmt += "-"; fmt += std::to_string(time_struct->tm_mon + 1); @@ -144,7 +138,6 @@ inline bool to_str(CharType* str, Int32 limit, Int32 base) noexcept { return true; } -using String = std::basic_string<CharType>; } // namespace LibCompiler #define PACKED __attribute__((packed)) |
