diff options
| author | hiddenalpha.ch | 2026-08-27 21:53:02 +0200 |
|---|---|---|
| committer | hiddenalpha.ch | 2026-08-27 21:53:02 +0200 |
| commit | bd0a884c73d24f87bc67ab415964586584f4ef05 (patch) | |
| tree | 0e58dd90120ddd1f94500deaf1d3321a4d0ade88 /include | |
| parent | ec43d17a96e4fcb7e590d7f5c2b4d82d579f6e66 (diff) | |
| download | Qntan-bd0a884c73d24f87bc67ab415964586584f4ef05.tar.gz Qntan-bd0a884c73d24f87bc67ab415964586584f4ef05.zip | |
Fix as compiler said:
> import/include/qntan/Qntan.h:1595:18: error: ISO C99 doesn’t support unnamed structs/unions [-Werror=pedantic]
> import/include/qntan/Qntan.h:1599:18: error: ISO C99 doesn’t support unnamed structs/unions [-Werror=pedantic]
> import/include/qntan/Qntan.h:1600:10: error: ISO C99 doesn’t support unnamed structs/unions [-Werror=pedantic]
Diffstat (limited to 'include')
| -rw-r--r-- | include/qntan/Qntan.h | 14 |
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; }; }; }; |
