make json work with new optionals

pull/1049/head
Alexander Medvednikov 2019-07-03 21:47:49 +02:00
parent dec0d961f5
commit 8c36b9499d
3 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ all: clean v
$(info V has been successfully built)
v: v.c
cc -march=native -std=gnu11 -w -o v v.c
cc -std=gnu11 -w -o v v.c
./v -o v compiler
rm v.c

View File

@ -105,7 +105,7 @@ string res = tos2("");
}
// cJSON_delete
//p.cgen.fns << '$dec return opt_ok(res); \n}'
p.cgen.fns << '$dec return opt_ok(res, sizeof(res)); \n}'
p.cgen.fns << '$dec return opt_ok(res, sizeof(*res)); \n}'
p.cgen.fns << '/*enc start*/ $enc return o;}'
}