mirror of
https://github.com/Ed94/metadesk.git
synced 2026-11-29 17:13:22 -08:00
[api] cut subtle wrapper node constructors
This commit is contained in:
1 parent
6450cd703c
commit
c3ec42c70c
5 files changed
+11
-39
No files matched your search
+1
-1
@@ -66,7 +66,7 @@ static MD_Node * NewChildLabel(MD_Node *parent, MD_String8 label)
|
||||
{
|
||||
MD_Node *result = 0;
|
||||
|
||||
result = MD_MakeNodeFromString(MD_NodeKind_Label, MD_S8Lit(""), 0, 0, label);
|
||||
result = MD_MakeNode(MD_NodeKind_Label, label, label, MD_S8Lit(""), 0, 0);
|
||||
if(parent)
|
||||
{
|
||||
MD_PushChild(parent, result);
|
||||
|
||||
@@ -58,7 +58,7 @@ EndTest(void)
|
||||
static MD_Node *
|
||||
MakeTestNode(MD_NodeKind kind, MD_String8 string)
|
||||
{
|
||||
return MD_MakeNodeFromString(kind, MD_S8Lit("`TEST_NODE`"), 0, 0, string);
|
||||
return MD_MakeNode(kind, string, string, MD_S8Lit("`TEST_NODE`"), 0, 0);
|
||||
}
|
||||
|
||||
static MD_C_Expr *
|
||||
|
||||
Reference in new issue
Block a user