mirror of
https://github.com/Ed94/metadesk.git
synced 2026-10-14 12:59:42 -07:00
more arranging functions; MD_MakeNode
This commit is contained in:
1 parent
a5fe806f9e
commit
b915615716
7 files changed
+61
-64
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user