finished inital pass of gen_c11 (singleheader and segeregated)

This commit is contained in:
2025-02-11 13:00:55 -05:00
parent a5af8b3d80
commit 66d9b4e98a
9 changed files with 311 additions and 57 deletions
+2 -2
View File
@@ -72,7 +72,7 @@
#pragma endregion Build Options
#pragma region Compiler Vendor
#pragma region Vendor
#if defined( _MSC_VER )
# pragma message("Detected MSVC")
@@ -128,7 +128,7 @@
# define GCC_VERSION_CHECK(major,minor,patch) (0)
#endif
#pragma endregion Compiler Vendor
#pragma endregion Vendor
#pragma region Language
+1 -1
View File
@@ -25,4 +25,4 @@ set_thread_namef(char *fmt, ...)
}
#define thread_namef(...) (set_thread_namef(__VA_ARGS__))
#define thraed_name(str) (set_thread_name(str))
#define thread_name(str) (set_thread_name(str))
+1 -5
View File
@@ -4,12 +4,8 @@
# include "debug.h"
# include "strings.h"
# include "thread_context.h"
////////////////////////////////
//~ rjf: Third Party Includes
# define STB_SPRINTF_IMPLEMENTATION
# if BUILD_STATIC
# #define STB_SPRINTF_STATIC
# endif
# define STB_SPRINTF_STATIC
# include "third_party/stb/stb_sprintf.h"
#endif
+12 -12
View File
@@ -7,7 +7,7 @@
//~ allen: Time
typedef enum WeekDay WeekDay;
enum Weekday
enum WeekDay
{
WeekDay_Sun,
WeekDay_Mon,
@@ -101,15 +101,15 @@ date_time_from_dense_time(DenseTime time) {
inline DateTime
date_time_from_micro_seconds(U64 time){
DateTime result = {0};
result.micro_sec = time % 1000; time /= 1000;
result.msec = time % 1000; time /= 1000;
result.sec = time % 60; time /= 60;
result.min = time % 60; time /= 60;
result.hour = time % 24; time /= 24;
result.day = time % 31; time /= 31;
result.mon = time % 12; time /= 12;
assert(time <= MAX_U32);
result.year = (U32)time;
return(result);
DateTime result = {0};
result.micro_sec = time % 1000; time /= 1000;
result.msec = time % 1000; time /= 1000;
result.sec = time % 60; time /= 60;
result.min = time % 60; time /= 60;
result.hour = time % 24; time /= 24;
result.day = time % 31; time /= 31;
result.mon = time % 12; time /= 12;
assert(time <= MAX_U32);
result.year = (U32)time;
return(result);
}
+1 -1
View File
@@ -1,4 +1,4 @@
#if INTELLISENSE_DIRECTIVES
#ifdef INTELLISENSE_DIRECTIVES
# pragma once
# include "os/os.h"
#endif