mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-31 11:50:05 +00:00
copy over docs from the wrong repo; take out error/warning wrappers
This commit is contained in:
+2
-22
@@ -266,7 +266,7 @@ MD_FindLastSubstring(MD_String8 str, MD_String8 substring, MD_StringMatchFlags f
|
||||
}
|
||||
|
||||
MD_FUNCTION_IMPL MD_String8
|
||||
MD_TrimExtension(MD_String8 string)
|
||||
MD_ChopExtension(MD_String8 string)
|
||||
{
|
||||
MD_u64 period_pos = MD_FindLastSubstring(string, MD_S8Lit("."), 0);
|
||||
if(period_pos < string.size)
|
||||
@@ -277,7 +277,7 @@ MD_TrimExtension(MD_String8 string)
|
||||
}
|
||||
|
||||
MD_FUNCTION_IMPL MD_String8
|
||||
MD_TrimFolder(MD_String8 string)
|
||||
MD_SkipFolder(MD_String8 string)
|
||||
{
|
||||
MD_u64 slash_pos = MD_FindLastSubstring(string, MD_S8Lit("/"), MD_StringMatchFlag_SlashInsensitive);
|
||||
if(slash_pos < string.size)
|
||||
@@ -2341,26 +2341,6 @@ MD_NodeErrorF(MD_Node *node, char *fmt, ...)
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
MD_FUNCTION_IMPL void
|
||||
MD_NodeWarningF(MD_Node *node, char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
MD_NodeWarning(node, MD_PushStringFV(fmt, args));
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
MD_FUNCTION_IMPL void
|
||||
MD_OutputError(FILE *f, MD_Error *error)
|
||||
{
|
||||
const char *kind_name = "error";
|
||||
fprintf(stderr, "%.*s:%i:%i: %s: %.*s\n",
|
||||
MD_StringExpand(error->location.filename),
|
||||
error->location.line, error->location.column,
|
||||
kind_name,
|
||||
MD_StringExpand(error->string));
|
||||
}
|
||||
|
||||
MD_GLOBAL MD_Expr _md_nil_expr =
|
||||
{
|
||||
&_md_nil_node,
|
||||
|
||||
Reference in New Issue
Block a user