From e1c8564af2b02122e442503dd2c0fb77d2b935e4 Mon Sep 17 00:00:00 2001 From: rimio Date: Fri, 2 Mar 2018 00:20:16 +0200 Subject: Added UNDEFINED type; old error case renamed to NONE; added test case answers --- include/ecbor.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/ecbor.h') diff --git a/include/ecbor.h b/include/ecbor.h index 0977e4b..c8a43f7 100644 --- a/include/ecbor.h +++ b/include/ecbor.h @@ -61,8 +61,9 @@ typedef enum { * CBOR types */ typedef enum { - /* Unknown type */ - ECBOR_TYPE_UNDEFINED = -1, + /* This is used when, for some reason, no other type could be resolved; + Usually denotes an error occured. */ + ECBOR_TYPE_NONE = -1, /* First type, used for bounds checking */ ECBOR_TYPE_FIRST = 0, @@ -84,9 +85,10 @@ typedef enum { ECBOR_TYPE_FP64 = 10, ECBOR_TYPE_BOOL = 11, ECBOR_TYPE_NULL = 12, + ECBOR_TYPE_UNDEFINED = 13, /* Last type, used for bounds checking */ - ECBOR_TYPE_LAST = ECBOR_TYPE_NULL + ECBOR_TYPE_LAST = ECBOR_TYPE_UNDEFINED } ecbor_type_t; /* -- cgit v1.2.3