mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-05 07:08:45 +00:00
[examples] hello_world.c first pass; parse check touch ups; API touch ups
This commit is contained in:
+153
-133
File diff suppressed because it is too large
Load Diff
+9
-6
@@ -77,8 +77,8 @@
|
||||
# define MD_DEFAULT_SCRATCH 1
|
||||
#endif
|
||||
|
||||
#if !defined(MD_ENABLE_PRINT_HELPERS)
|
||||
# define MD_ENABLE_PRINT_HELPERS 0
|
||||
#if !defined(MD_DISABLE_PRINT_HELPERS)
|
||||
# define MD_DISABLE_PRINT_HELPERS 0
|
||||
#endif
|
||||
|
||||
|
||||
@@ -316,9 +316,8 @@
|
||||
//~ Linkage Wrappers
|
||||
|
||||
#if !defined(MD_FUNCTION)
|
||||
# define MD_FUNCTION
|
||||
# define MD_FUNCTION static
|
||||
#endif
|
||||
#define MD_FUNCTION_IMPL MD_FUNCTION
|
||||
|
||||
#if !defined(MD_GLOBAL)
|
||||
# define MD_GLOBAL static
|
||||
@@ -1048,7 +1047,7 @@ MD_FUNCTION void MD_MessageListPush(MD_MessageList *list, MD_Message *
|
||||
MD_FUNCTION void MD_MessageListConcat(MD_MessageList *list, MD_MessageList *to_push);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseResultZero(void);
|
||||
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 filename, MD_String8 contents);
|
||||
MD_FUNCTION MD_ParseResult MD_ParseWholeString(MD_Arena *arena, MD_String8 name, MD_String8 contents);
|
||||
|
||||
MD_FUNCTION MD_ParseResult MD_ParseWholeFile(MD_Arena *arena, MD_String8 filename);
|
||||
|
||||
@@ -1106,7 +1105,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_ENABLE_PRINT_HELPERS
|
||||
#if !MD_DISABLE_PRINT_HELPERS
|
||||
#include <stdio.h>
|
||||
MD_FUNCTION void MD_PrintMessage(FILE *file, MD_CodeLoc loc, MD_MessageKind kind,
|
||||
MD_String8 string);
|
||||
@@ -1140,6 +1139,10 @@ 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