dtsod dollar list bug fixed

This commit is contained in:
Timerix22 2023-05-24 02:38:11 +06:00
parent 3d941e0688
commit 588453a2b7
2 changed files with 8 additions and 1 deletions

View File

@ -320,6 +320,9 @@ Maybe __deserialize(char** _text, bool _calledRecursively) {
Unitype lu;
if(Hashtable_tryGet(dict,nameCPtr, &lu)){
list=(Autoarr(Unitype)*)lu.VoidPtr;
// Key is not used in that case, because it is already added
// to the table with the first dollar list item.
free(nameCPtr);
}
else{
list=Autoarr_create(Unitype,ARR_BC,ARR_BL);

View File

@ -12,7 +12,11 @@ const char text[]=
" text: \"_$\\\"\\\\'''a ыыы000;2;=:%d;```\";\n"
" list: [10,20,30,0,0 ];"
"};"
"h: { };";
"h: { };"
"$dollar_list_single: { smth: \"-_-\"; };"
"$dollar_list_many: { i: 0; };"
"$dollar_list_many: { i: 1; };"
"$dollar_list_many: { i: 2; };";
void print_dtsod(Hashtable* dtsod){
kprintf("\e[92m");