mirror of
https://git.telodendria.io/Telodendria/Cytoplasm.git
synced 2025-04-25 10:26:03 +00:00
parent
bc67393036
commit
29070c8f41
2 changed files with 8 additions and 2 deletions
|
@ -660,11 +660,15 @@ Main(Array * args)
|
|||
StreamPrintf(implFile, " }\n\n");
|
||||
if (StrEquals(fieldType, "array"))
|
||||
{
|
||||
StreamPrintf(implFile, " out->%s = JsonValueAsArray(JsonValueDuplicate(val));\n", key);
|
||||
StreamPrintf(implFile, " val = JsonValueDuplicate(val);\n");
|
||||
StreamPrintf(implFile, " out->%s = JsonValueAsArray(val);\n", key);
|
||||
StreamPrintf(implFile, " Free(val); /* Not JsonValueFree() because we want the inner value. */\n");
|
||||
}
|
||||
else if (StrEquals(fieldType, "object"))
|
||||
{
|
||||
StreamPrintf(implFile, " out->%s = JsonValueAsObject(JsonValueDuplicate(val));\n", key);
|
||||
StreamPrintf(implFile, " val = JsonValueDuplicate(val);\n");
|
||||
StreamPrintf(implFile, " out->%s = JsonValueAsObject(val);\n", key);
|
||||
StreamPrintf(implFile, " Free(val); /* Not JsonValueFree() because we want the inner value. */\n");
|
||||
}
|
||||
else if (*fieldType == '[' && fieldType[strlen(fieldType) - 1] == ']')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue