summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit
diff options
context:
space:
mode:
Diffstat (limited to 'include/CompilerKit')
-rw-r--r--include/CompilerKit/Detail/Config.h5
-rw-r--r--include/CompilerKit/Detail/PreConfig.h3
-rw-r--r--include/CompilerKit/MachO.h4
-rw-r--r--include/CompilerKit/UUID.h2
-rw-r--r--include/CompilerKit/Utilities/Compiler.h2
5 files changed, 11 insertions, 5 deletions
diff --git a/include/CompilerKit/Detail/Config.h b/include/CompilerKit/Detail/Config.h
index 651904e..14d4fd0 100644
--- a/include/CompilerKit/Detail/Config.h
+++ b/include/CompilerKit/Detail/Config.h
@@ -16,6 +16,7 @@
#include <ocl/tproc.hpp>
namespace CompilerKit {
+
inline static constexpr int kBaseYear = 1900;
using STLString = std::string;
using RopeString = ocl::tproc::crope;
@@ -63,6 +64,10 @@ inline bool install_signal(Int32 signal, void (*handler)(int)) noexcept {
return true;
}
+
} // namespace CompilerKit
+/// @brief This function is for internal uses only, do not call it without a wrapper!
+CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input);
+
#endif // __COMPILERKIT_CONFIG_H__
diff --git a/include/CompilerKit/Detail/PreConfig.h b/include/CompilerKit/Detail/PreConfig.h
index 882e00b..9294c01 100644
--- a/include/CompilerKit/Detail/PreConfig.h
+++ b/include/CompilerKit/Detail/PreConfig.h
@@ -87,8 +87,7 @@
#define kObjectFileExt ".obj"
#define kBinaryFileExt ".bin"
-#define kAsmFileExts \
- { ".64x", ".32x", ".masm", ".s", ".S", ".asm", ".x64" }
+#define kAsmFileExts {".64x", ".32x", ".masm", ".s", ".S", ".asm", ".x64"}
#define kAsmFileExtsMax (7U)
diff --git a/include/CompilerKit/MachO.h b/include/CompilerKit/MachO.h
index 05131ad..2942420 100644
--- a/include/CompilerKit/MachO.h
+++ b/include/CompilerKit/MachO.h
@@ -43,7 +43,9 @@ namespace MachO {
constexpr uint32_t kSectionAlign = 4;
/// @brief Helper to align a value to page boundary
- inline uint64_t AlignToPage(uint64_t value) { return (value + kPageSize - 1) & ~(kPageSize - 1); }
+ inline uint64_t AlignToPage(uint64_t value) {
+ return (value + kPageSize - 1) & ~(kPageSize - 1);
+ }
/// @brief Helper to copy segment/section name safely
inline void CopySegmentName(char* dest, const char* src) {
diff --git a/include/CompilerKit/UUID.h b/include/CompilerKit/UUID.h
index a334052..02f95dc 100644
--- a/include/CompilerKit/UUID.h
+++ b/include/CompilerKit/UUID.h
@@ -165,7 +165,7 @@ namespace Detail {
process_byte(static_cast<unsigned char>((bitCount >> 24) & 0xFF));
process_byte(static_cast<unsigned char>((bitCount >> 16) & 0xFF));
process_byte(static_cast<unsigned char>((bitCount >> 8) & 0xFF));
- process_byte(static_cast<unsigned char>((bitCount) &0xFF));
+ process_byte(static_cast<unsigned char>((bitCount) & 0xFF));
memcpy(digest, m_digest, 5 * sizeof(uint32_t));
return digest;
diff --git a/include/CompilerKit/Utilities/Compiler.h b/include/CompilerKit/Utilities/Compiler.h
index dd2c5c1..094647b 100644
--- a/include/CompilerKit/Utilities/Compiler.h
+++ b/include/CompilerKit/Utilities/Compiler.h
@@ -90,7 +90,7 @@ inline void drvi_crash_handler(std::int32_t id) {
switch (id) {
default: {
- kStdOut << "SIGNAL: (" << id << ")." << kBlank << kStdEndl;
+ kStdOut << "SIGNAL: (" << id << ")." << kBlank << kStdEndl;
break;
}
}