mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 21:35:10 +00:00
[MOD/WIP] Kill off the stanza sending function
The stanza sender is dead. All hail the Stanza Builder.
This commit is contained in:
parent
f6b0d741d5
commit
ffc0679493
8 changed files with 379 additions and 184 deletions
|
|
@ -177,14 +177,17 @@ XMLCopy(XMLElement *original)
|
|||
ret->name = StrDuplicate(original->name);
|
||||
ret->data = StrDuplicate(original->data);
|
||||
|
||||
if (original->children)
|
||||
{
|
||||
size_t i;
|
||||
ret->children = ArrayCreate();
|
||||
|
||||
for (i = 0; i < ArraySize(ret->children); i++)
|
||||
for (i = 0; i < ArraySize(original->children); i++)
|
||||
{
|
||||
ArrayAdd(ret->children, XMLCopy(ArrayGet(original->children, i)));
|
||||
XMLElement *child = ArrayGet(original->children, i);
|
||||
ArrayAdd(
|
||||
ret->children,
|
||||
XMLCopy(child)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (original->attrs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue