Skip to content

Commit

Permalink
Forgot to check these in
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Lundblade committed Nov 5, 2024
1 parent 36b4fc4 commit 2bb476c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
13 changes: 0 additions & 13 deletions inc/qcbor/qcbor_encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,6 @@ static void
QCBOREncode_Allow(QCBOREncodeContext *pCtx, uint8_t uAllow);


/*
* QCBOR_ENCODE_CONFIG_V1_COMPAT
*/
static void
QCBOREncode_Setv1Compatibility(QCBOREncodeContext *pCtx);


/**
* @brief Add a signed 64-bit integer to the encoded output.
*
Expand Down Expand Up @@ -3289,12 +3282,6 @@ QCBOREncode_Allow(QCBOREncodeContext *pMe, const uint8_t uAllow)
#endif /* ! QCBOR_DISABLE_ENCODE_USAGE_GUARDS */
}

static inline void
QCBOREncode_Setv1Compatibility(QCBOREncodeContext *pMe)
{
pMe->uConfig = QCBOR_ENCODE_CONFIG_V1_COMPAT;
}



static inline void
Expand Down
8 changes: 0 additions & 8 deletions inc/qcbor/qcbor_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,12 @@ typedef struct _QCBOREncodeContext QCBORPrivateEncodeContext;
#define QCBOR_ENCODE_MODE_DCBOR 3


// TODO: probably get rid of this
/* Operate in compatibility with QCBOR 1.0
* So far the differences are:
* - AddNegativeBigNum and AddBigFloat with a negative big num
*/
#define QCBOR_ENCODE_CONFIG_V1_COMPAT 0x01

struct _QCBOREncodeContext {
/* PRIVATE DATA STRUCTURE */
UsefulOutBuf OutBuf; /* Pointer to output buffer, its length and
* position in it. */
uint8_t uError; /* Error state, always from QCBORError enum */
uint8_t uMode; /* @ref QCBOR_ENCODE_MODE_PREFERRED or related */
uint8_t uConfig; /* QCBOR_ENCODE_CONFIG_xxx */
uint8_t uAllow; /* @ref QCBOR_ENCODE_ALLOW_NAN_PAYLOAD, ... */
void (*pfnCloseMap)(QCBORPrivateEncodeContext *); /* Use of function
* pointer explained in QCBOREncode_SerializationCDE() */
Expand Down

0 comments on commit 2bb476c

Please sign in to comment.