summaryrefslogtreecommitdiff
path: root/include/qntan/Qntan.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qntan/Qntan.h')
-rw-r--r--include/qntan/Qntan.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/qntan/Qntan.h b/include/qntan/Qntan.h
index db84e83..45df974 100644
--- a/include/qntan/Qntan.h
+++ b/include/qntan/Qntan.h
@@ -1589,13 +1589,15 @@ struct Qntan_JsonTreeDec_JsonNode {
union /* See 'type' to know which of those values is valid. */ {
double valNumber;
int valBool;
- struct/*valString*/{
- char const *valStr;
- int valStr_len;
+ struct valStr {
+ char const *buf;
+ int len;
};
- struct/*object or array. For object keys see 'childs[i]->key' */{
- struct Qntan_JsonTreeDec_JsonNode **childs;
- int childs_len;
+ struct valChild {
+ /* dictionary or array. For dictionary keys see 'valChild.arr[i]->key'
+ */
+ struct Qntan_JsonTreeDec_JsonNode **arr;
+ int cnt;
};
};
};