mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
zero-init
This commit is contained in:
+6
-9
@@ -77,8 +77,8 @@
|
||||
# define MD_DEFAULT_SCRATCH 1
|
||||
#endif
|
||||
|
||||
#if !defined(MD_DISABLE_PRINT_HELPERS)
|
||||
# define MD_DISABLE_PRINT_HELPERS 0
|
||||
#if !defined(MD_ENABLE_PRINT_HELPERS)
|
||||
# define MD_ENABLE_PRINT_HELPERS 0
|
||||
#endif
|
||||
|
||||
|
||||
@@ -316,8 +316,9 @@
|
||||
//~ Linkage Wrappers
|
||||
|
||||
#if !defined(MD_FUNCTION)
|
||||
# define MD_FUNCTION static
|
||||
# define MD_FUNCTION
|
||||
#endif
|
||||
#define MD_FUNCTION_IMPL MD_FUNCTION
|
||||
|
||||
#if !defined(MD_GLOBAL)
|
||||
# define MD_GLOBAL static
|
||||
@@ -1047,7 +1048,7 @@ MD_FUNCTION MD_ParseResult MD_ParseResultZero(void);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseNodeSet(MD_Arena *arena, MD_String8 string, MD_u64 offset, MD_Node *parent,
|
||||
MD_ParseSetRule rule);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseOneNode(MD_Arena *arena, MD_String8 string, MD_u64 offset);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseWholeString(MD_Arena *arena, MD_String8 name, MD_String8 contents);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseWholeString(MD_Arena *arena, MD_String8 filename, MD_String8 contents);
|
||||
|
||||
MD_FUNCTION MD_ParseResult MD_ParseWholeFile(MD_Arena *arena, MD_String8 filename);
|
||||
|
||||
@@ -1105,7 +1106,7 @@ MD_FUNCTION MD_String8 MD_StringFromMessageKind(MD_MessageKind kind);
|
||||
MD_FUNCTION MD_String8 MD_FormatMessage(MD_Arena *arena, MD_CodeLoc loc, MD_MessageKind kind,
|
||||
MD_String8 string);
|
||||
|
||||
#if !MD_DISABLE_PRINT_HELPERS
|
||||
#if MD_ENABLE_PRINT_HELPERS
|
||||
#include <stdio.h>
|
||||
MD_FUNCTION void MD_PrintMessage(FILE *file, MD_CodeLoc loc, MD_MessageKind kind,
|
||||
MD_String8 string);
|
||||
@@ -1139,10 +1140,6 @@ MD_FUNCTION void MD_ReconstructionFromNode(MD_Arena *arena, MD_String8List *out,
|
||||
int indent, MD_String8 indent_string,
|
||||
MD_GenerateFlags flags);
|
||||
|
||||
#if !MD_DISABLE_PRINT_HELPERS
|
||||
MD_FUNCTION void MD_PrintDebugDumpFromNode(FILE *file, MD_Node *node, MD_GenerateFlags flags);
|
||||
#endif
|
||||
|
||||
//~ Command Line Argument Helper
|
||||
|
||||
MD_FUNCTION MD_String8List MD_StringListFromArgCV(MD_Arena *arena, int argument_count,
|
||||
|
||||
Reference in New Issue
Block a user