more arranging functions; MD_MakeNode

This commit is contained in:
Allen Webster
2021-04-17 01:26:39 -07:00
parent a5fe806f9e
commit b915615716
7 changed files with 61 additions and 64 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ int main(int argument_count, char **arguments)
for(int i = 1; i < argument_count; i += 1)
{
MD_Node *root = MD_ParseWholeFile(MD_S8CString(arguments[i])).node;
MD_PushSibling(&first, &last, MD_NilNode(), root);
MD_PushSibling(&first, &last, root);
}
// NOTE(rjf): Put errors on every single node.
+1 -1
View File
@@ -29,7 +29,7 @@ int main(int argument_count, char **arguments)
for(int i = 1; i < argument_count; i += 1)
{
MD_Node *root = MD_ParseWholeFile(MD_S8CString(arguments[i])).node;
MD_PushSibling(&first, &last, MD_NilNode(), root);
MD_PushSibling(&first, &last, root);
}
// NOTE(rjf): Call "custom layer" back.
+1 -1
View File
@@ -64,7 +64,7 @@ int main(int argument_count, char **arguments)
for(int i = 1; i < argument_count; i += 1)
{
MD_Node *root = MD_ParseWholeFile(MD_S8CString(arguments[i])).node;
MD_PushSibling(&first, &last, MD_NilNode(), root);
MD_PushSibling(&first, &last, root);
}
for(MD_EachNode(root, first))
@@ -74,7 +74,7 @@ int main(int argument_count, char **arguments)
MD_String8 path = MD_PushStringF("%.*s/%.*s",
MD_StringExpand(folder),
MD_StringExpand(file_info.filename));
MD_PushSibling(&first_root, &last_root, MD_NilNode(), MD_ParseWholeFile(path).node);
MD_PushSibling(&first_root, &last_root, MD_ParseWholeFile(path).node);
}
}
}