From bd0a884c73d24f87bc67ab415964586584f4ef05 Mon Sep 17 00:00:00 2001 From: hiddenalpha.ch Date: Thu, 27 Aug 2026 21:53:02 +0200 Subject: 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] --- include/qntan/Qntan.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/qntan/Qntan.h') 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; }; }; }; -- cgit v1.3.1