mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-11 04:11:24 -07:00
gen_c11.c: generates base
This commit is contained in:
@@ -95,7 +95,7 @@ typedef distinct(S16, B16);
|
||||
typedef distinct(S32, B32);
|
||||
|
||||
typedef void VoidProc(void);
|
||||
typedef_generic_selector(VoidProc);
|
||||
distinct_register_selector(VoidProc);
|
||||
|
||||
////////////////////////////////
|
||||
//~ NOTE(allen): Constants
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
# pragma once
|
||||
#endif
|
||||
|
||||
#pragma region Build Options
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Build Options
|
||||
|
||||
@@ -68,6 +70,8 @@
|
||||
|
||||
#define BUILD_TITLE_STRING_LITERAL BUILD_TITLE " (" BUILD_VERSION_STRING_LITERAL " " BUILD_RELEASE_PHASE_STRING_LITERAL ") - " __DATE__ "" BUILD_GIT_HASH_STRING_LITERAL_APPEND BUILD_MODE_STRING_LITERAL_APPEND
|
||||
|
||||
#pragma endregion Build Options
|
||||
|
||||
#pragma region Compiler Vendor
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
@@ -126,7 +130,7 @@
|
||||
|
||||
#pragma endregion Compiler Vendor
|
||||
|
||||
#pragma endregion Language
|
||||
#pragma region Language
|
||||
|
||||
#if ! defined(LANG_C)
|
||||
# ifdef __cplusplus
|
||||
@@ -265,9 +269,6 @@
|
||||
|
||||
#pragma endregion Operating System
|
||||
|
||||
#pragma region Language
|
||||
#pragma endregion Langage
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Zero All Undefined Options
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
// or have their usage removed during the library generation pass.
|
||||
#endif
|
||||
|
||||
#pragma region _Generic Macros
|
||||
// ____ _ ______ _ _ ____ _ __ _
|
||||
// / ___} (_) | ____} | | (_) / __ \ | | | |(_)
|
||||
// | | ___ ___ _ __ ___ _ __ _ ___ | |__ _ _ _ __ ___| |_ _ ___ _ __ | | | |_ _____ _ __ | | ___ __ _ __| | _ _ __ __ _
|
||||
@@ -172,4 +171,3 @@ size_t generic_example_hash__P_long_long( long long val ) { return val * 2654435
|
||||
#undef function_generic_example_varadic
|
||||
#undef function_generic_example_direct_type
|
||||
#undef generic_example_do_something_with
|
||||
#pragma endregion _Generic Macros
|
||||
|
||||
+1
-1
@@ -1129,7 +1129,7 @@ indented_from_string__ainfo(AllocatorInfo ainfo, String8 string)
|
||||
{
|
||||
TempArena scratch = scratch_begin(ainfo);
|
||||
|
||||
read_only local_persist U8 indentation_bytes[] = " ";
|
||||
local_persist U8 indentation_bytes[] = " ";
|
||||
String8List indented_strings = {0};
|
||||
|
||||
S64 depth = 0;
|
||||
|
||||
+6
-6
@@ -153,7 +153,7 @@ struct FuzzyMatchRangeList
|
||||
|
||||
inline U8
|
||||
integer_symbols(U8 value) {
|
||||
read_only local_persist
|
||||
local_persist
|
||||
U8 lookup_table[16] = {
|
||||
'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F',
|
||||
};
|
||||
@@ -162,7 +162,7 @@ integer_symbols(U8 value) {
|
||||
|
||||
inline U8
|
||||
base64(U8 value) {
|
||||
read_only local_persist
|
||||
local_persist
|
||||
U8 lookup_table[64] = {
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
||||
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
|
||||
@@ -176,7 +176,7 @@ base64(U8 value) {
|
||||
|
||||
inline U8
|
||||
base64_reverse(U8 value) {
|
||||
read_only local_persist
|
||||
local_persist
|
||||
U8 lookup_table[128] = {
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
@@ -193,8 +193,8 @@ base64_reverse(U8 value) {
|
||||
// NOTE(allen): Includes reverses for uppercase and lowercase hex.
|
||||
inline U8
|
||||
integer_symbol_reverse(U8 value) {
|
||||
read_only local_persist
|
||||
lookup_table[128] = {
|
||||
local_persist
|
||||
U8 lookup_table[128] = {
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,
|
||||
@@ -839,7 +839,7 @@ force_inline String8 str8_path_list_join_by_style__arena(Arena* arena, String8Li
|
||||
inline U8
|
||||
utf8_class(U8 value)
|
||||
{
|
||||
read_only local_persist
|
||||
local_persist
|
||||
U8 lookup_table[32] = {
|
||||
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,2,2,2,2,3,3,4,5,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user