File tree 3 files changed +5
-1
lines changed
3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 27
27
CborError error = CborNoError; \
28
28
error = (expr); \
29
29
if (CborErrorOutOfMemory == error) \
30
- return CborErrorTooManyItems ; \
30
+ return CborErrorSplitItems ; \
31
31
if (CborNoError != error) \
32
32
return error; \
33
33
} while(0);
Original file line number Diff line number Diff line change @@ -189,6 +189,7 @@ typedef enum CborError {
189
189
/* encoder errors */
190
190
CborErrorTooManyItems = 768 ,
191
191
CborErrorTooFewItems ,
192
+ CborErrorSplitItems ,
192
193
193
194
/* internal implementation errors */
194
195
CborErrorDataTooLarge = 1024 ,
Original file line number Diff line number Diff line change @@ -163,6 +163,9 @@ const char *cbor_error_string(CborError error)
163
163
case CborErrorTooFewItems :
164
164
return _ ("too few items added to encoder" );
165
165
166
+ case CborErrorSplitItems :
167
+ return _ ("splitted item added to encoder" );
168
+
166
169
case CborErrorDataTooLarge :
167
170
return _ ("internal error: data too large" );
168
171
You can’t perform that action at this time.
0 commit comments