Skip to content

Commit d0f0949

Browse files
MeherRushiMeher C
authored andcommitted
feat: complete CBOR parser with metadata, opaque nodes, and LY_VALUE_CBOR
1 parent d3f1d6f commit d0f0949

17 files changed

+1549
-695
lines changed

src/lcbor.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,6 @@ lycbor_token2str(enum cbor_type cbortype)
4545
return "decimals and special values (true, false, nil, ...)";
4646
}
4747

48-
return "";
49-
}
50-
51-
return "object";
52-
case LYJSON_OBJECT_NEXT:
53-
return "object next";
54-
case LYJSON_OBJECT_CLOSED:
55-
return "object closed";
56-
case LYJSON_ARRAY:
57-
return "array";
58-
case LYJSON_ARRAY_NEXT:
59-
return "array next";
60-
case LYJSON_ARRAY_CLOSED:
61-
return "array closed";
62-
case LYJSON_OBJECT_NAME:
63-
return "object name";
64-
case LYJSON_NUMBER:
65-
return "number";
66-
case LYJSON_STRING:
67-
return "string";
68-
case LYJSON_TRUE:
69-
return "true";
70-
case LYJSON_FALSE:
71-
return "false";
72-
case LYJSON_NULL:
73-
return "null";
74-
case LYJSON_END:
75-
return "end of input";
76-
}
77-
7848
return "";
7949
}
8050

0 commit comments

Comments
 (0)