json: update internal type definition to match JSMN
PATCH 1/1 json: update internal type definition to match JSMN
Fixes ceda955ba7 ("shared: Update JSMN to latest version")
--- src/json.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
src/json.h +4 -4
@@ -27,10 +27,10 @@ struct json_iter;*/ enum json_type {JSON_UNDEFINED =0 , -JSON_OBJECT =1 , -JSON_ARRAY =2 , -JSON_STRING =3 , -JSON_PRIMITIVE =4 +JSON_OBJECT =1 <<0 , +JSON_ARRAY =1 <<1 , +JSON_STRING =1 <<2 , +JSON_PRIMITIVE =1 <<4 , };enum json_flag {
Signature · 1 line
2.34.3
Quoted 11 lines · James Prestwood
Fixes ceda955ba7 ("shared: Update JSMN to latest version")---
src/json.h | 8 ++++----1 file changed, 4 insertions(+), 4 deletions(-)src/json.h +0
-0@@ -27,10 +27,10 @@ struct json_iter;*/
src/json.h struct json_iter; · line 33
Quoted 10 lines
src/json.h +4
-4enum json_type { JSON_UNDEFINED = 0, - JSON_OBJECT = 1, - JSON_ARRAY = 2, - JSON_STRING = 3, - JSON_PRIMITIVE = 4 + JSON_OBJECT = 1 << 0, + JSON_ARRAY = 1 << 1, + JSON_STRING = 1 << 2, + JSON_PRIMITIVE = 1 << 4,
Whoops, this should be 1 << 3. I can send v2 or just fix this up when applying?
Quoted 3 lines
src/json.h +0
-0};
enumjson_flag{
Hi James,
Quoted 10 lines · James Prestwood
Quoted 5 lines · James Prestwood
Fixes ceda955ba7 ("shared: Update JSMN to latest version")--- src/json.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)Whoops, this should be 1 << 3. I can send v2 or just fix this up when applying?
I fixed this up and applied.
Regards,
-Denis