Skip to content

Commit

Permalink
Make all doxygen '@' (#266)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurence Lundblade <[email protected]>
  • Loading branch information
laurencelundblade and Laurence Lundblade authored Nov 3, 2024
1 parent 20fba4f commit 88ba566
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 30 deletions.
2 changes: 1 addition & 1 deletion example.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static bool EngineCompare(const CarEngine *pE1, const CarEngine *pE2)
* @return The pointer and length of the encoded CBOR or
* @ref NULLUsefulBufC on error.
*
* This encodes the input structure \c pEngine as a CBOR map of
* This encodes the input structure @c pEngine as a CBOR map of
* label-value pairs. An array of float is one of the items in the
* map.
*
Expand Down
4 changes: 2 additions & 2 deletions inc/qcbor/UsefulBuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,8 @@ UsefulOutBuf_GetOutPlace(UsefulOutBuf *pUOutBuf);
* @param[in] uAmount The amount to advance.
*
* This advances the position in the output buffer
* by \c uAmount. This assumes that the
* caller has written \c uAmount to the pointer obtained
* by @c uAmount. This assumes that the
* caller has written @c uAmount to the pointer obtained
* with UsefulOutBuf_GetOutPlace().
*
* Warning: this bypasses the buffer safety provided by
Expand Down
4 changes: 1 addition & 3 deletions inc/qcbor/qcbor_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ========================================================================= */

#ifndef qcbor_common_h
#define qcbor_common_h


#ifdef __cplusplus
extern "C" {
#if 0
Expand Down Expand Up @@ -533,7 +531,7 @@ typedef enum {
* that they are not QCBOR_SUCCESS. See QCBORDecode_SetError(). */
QCBOR_ERR_FIRST_USER_DEFINED = 128,

/** See \ref QCBOR_ERR_FIRST_USER_DEFINED */
/** See @ref QCBOR_ERR_FIRST_USER_DEFINED */
QCBOR_ERR_LAST_USER_DEFINED = 255

/* This is stored in uint8_t; never add values > 255 */
Expand Down
12 changes: 6 additions & 6 deletions inc/qcbor/qcbor_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,8 @@ QCBORDecode_SetUpAllocator(QCBORDecodeContext *pCtx,
*
* See [Decode Error Overview](#Decode-Errors-Overview).
*
* If a decoding error occurs or previously occured, \c uDataType and
* \c uLabelType will be set to @ref QCBOR_TYPE_NONE. If there is no
* If a decoding error occurs or previously occured, @c uDataType and
* @c uLabelType will be set to @ref QCBOR_TYPE_NONE. If there is no
* need to know the specific error, it is sufficient to check for @ref
* QCBOR_TYPE_NONE.
*
Expand Down Expand Up @@ -1352,11 +1352,11 @@ QCBORDecode_IsUnrecoverableError(QCBORError uErr);
* and propagate up.
*
* When the error condition is set, QCBORDecode_VGetNext() will always
* return an item with data and label type as \ref QCBOR_TYPE_NONE.
* return an item with data and label type as @ref QCBOR_TYPE_NONE.
*
* The main intent of this is to set a user-defined error code in the
* range of \ref QCBOR_ERR_FIRST_USER_DEFINED to
* \ref QCBOR_ERR_LAST_USER_DEFINED, but it is OK to set QCBOR-defined
* range of @ref QCBOR_ERR_FIRST_USER_DEFINED to
* @ref QCBOR_ERR_LAST_USER_DEFINED, but it is OK to set QCBOR-defined
* error codes too.
*/
static void
Expand Down Expand Up @@ -1599,7 +1599,7 @@ QCBORDecode_IsTagged(QCBORDecodeContext *pCtx,
* internally.
*
* This works the same as QCBORDecode_GetNext() except that it also
* returns the list of tags for the data item in \c pTagList.
* returns the list of tags for the data item in @c pTagList.
*
* The 0th tag returned here is the one furthest from the data
* item. This is opposite the order for QCBORDecode_GetNthTag().
Expand Down
2 changes: 1 addition & 1 deletion inc/qcbor/qcbor_encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ QCBOREncode_AddBytesToMapN(QCBOREncodeContext *pCtx, int64_t nLabel, UsefulBufC
* multiple writes.
*
* The pointer in @c pPlace is where to start writing. Writing is just
* copying bytes to the location by the pointer in \c pPlace. Writing
* copying bytes to the location by the pointer in @c pPlace. Writing
* past the length in @c pPlace will be writing off the end of the
* output buffer.
*
Expand Down
34 changes: 17 additions & 17 deletions src/qcbor_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ QCBORDecode_Private_GetNextMapOrArray(QCBORDecodeContext *pMe,
*
* pDecodedItem[in,out] The data item to convert.
*
* The 0th tag is discarded. \ref CBOR_TAG_INVALID16 is
* The 0th tag is discarded. @ref CBOR_TAG_INVALID16 is
* shifted into empty slot at the end of the tag list.
*/
static void
Expand Down Expand Up @@ -2330,7 +2330,7 @@ QCBORDecode_Private_GetNextTagContent(QCBORDecodeContext *pMe,
* exponent.
*
* @returns Decoding errors from getting primitive data items or
* \ref QCBOR_ERR_BAD_EXP_AND_MANTISSA.
* @ref QCBOR_ERR_BAD_EXP_AND_MANTISSA.
*
* When called pDecodedItem must be the array with two members, the
* exponent and mantissa.
Expand Down Expand Up @@ -2511,8 +2511,8 @@ static const struct StringTagMapEntry QCBOR_Private_StringTagMap[] = {
* @param[in,out] pDecodedItem The data item.
*
* @returns This returns QCBOR_SUCCESS if the tag was procssed,
* \ref QCBOR_ERR_UNSUPPORTED if the tag was not processed and
* \ref QCBOR_ERR_UNRECOVERABLE_TAG_CONTENT if the content type was wrong for the tag.
* @ref QCBOR_ERR_UNSUPPORTED if the tag was not processed and
* @ref QCBOR_ERR_UNRECOVERABLE_TAG_CONTENT if the content type was wrong for the tag.
*
* Process the CBOR tags that whose content is a byte string or a text
* string and for which the string is just passed on to the caller.
Expand Down Expand Up @@ -2570,7 +2570,7 @@ QCBOR_Private_ProcessTaggedString(uint16_t uTag, QCBORItem *pDecodedItem)
* @ref CBOR_TAG_BIG_FLOAT.
* @param[in] pDecodedItem Item being decoded.
*
* @returns One of the 6 values between \ref QCBOR_TYPE_DECIMAL_FRACTION
* @returns One of the 6 values between @ref QCBOR_TYPE_DECIMAL_FRACTION
* and @ref QCBOR_TYPE_BIGFLOAT_NEG_BIGNUM.
*
* Does mapping between a CBOR tag number and a QCBOR type. with a
Expand Down Expand Up @@ -3320,7 +3320,7 @@ typedef struct {
*
* @retval Also errors returned by QCBORDecode_GetNext().
*
* On input, \c pItemArray contains a list of labels and data types of
* On input, @c pItemArray contains a list of labels and data types of
* items to be found.
*
* On output, the fully retrieved items are filled in with values and
Expand Down Expand Up @@ -3608,10 +3608,10 @@ QCBORDecode_GetItemInMapSZ(QCBORDecodeContext *pMe,
* @param[out] pItem The item for the array/map.
* @param[out] pEncodedCBOR Pointer and length of the encoded map or array.
*
* The next item to be decoded must be a map or array as specified by \c uType.
* The next item to be decoded must be a map or array as specified by @c uType.
*
* \c pItem will be filled in with the label and tags of the array or map
* in addition to \c pEncodedCBOR giving the pointer and length of the
* @c pItem will be filled in with the label and tags of the array or map
* in addition to @c pEncodedCBOR giving the pointer and length of the
* encoded CBOR.
*
* When this is complete, the traversal cursor is at the end of the array or
Expand Down Expand Up @@ -3711,7 +3711,7 @@ QCBORDecode_Private_GetArrayOrMap(QCBORDecodeContext *pMe,
* @param[out] pItem The item for the array/map.
* @param[out] pEncodedCBOR Pointer and length of the encoded map or array.
*
* The next item to be decoded must be a map or array as specified by \c uType.
* The next item to be decoded must be a map or array as specified by @c uType.
*
* When this is complete, the traversal cursor is unchanged.
*/void
Expand Down Expand Up @@ -3774,8 +3774,8 @@ QCBOR_Private_CheckTypeList(const int uDataType,
* @param[in] TagSpec Specification for matching tags.
* @param[in] pItem The item to check.
*
* @retval QCBOR_SUCCESS \c uDataType is allowed by @c TagSpec
* @retval QCBOR_ERR_UNEXPECTED_TYPE \c uDataType is not allowed by @c TagSpec
* @retval QCBOR_SUCCESS @c uDataType is allowed by @c TagSpec
* @retval QCBOR_ERR_UNEXPECTED_TYPE @c uDataType is not allowed by @c TagSpec
*
* This checks the item data type of untagged items as well as of
* tagged items against a specification to see if decoding should
Expand Down Expand Up @@ -5080,7 +5080,7 @@ typedef QCBORError (*fExponentiator)(uint64_t uMantissa, int64_t nExponent, uint
* unsigned integer.
*
* There are many inputs for which the result will not fit in the
* 64-bit integer and \ref QCBOR_ERR_CONVERSION_UNDER_OVER_FLOW will
* 64-bit integer and @ref QCBOR_ERR_CONVERSION_UNDER_OVER_FLOW will
* be returned.
*/
static QCBORError
Expand Down Expand Up @@ -5128,7 +5128,7 @@ QCBOR_Private_Exponentitate10(const uint64_t uMantissa,
* output is a 64-bit unsigned integer.
*
* There are many inputs for which the result will not fit in the
* 64-bit integer and \ref QCBOR_ERR_CONVERSION_UNDER_OVER_FLOW will
* 64-bit integer and @ref QCBOR_ERR_CONVERSION_UNDER_OVER_FLOW will
* be returned.
*/
static QCBORError
Expand Down Expand Up @@ -5175,7 +5175,7 @@ QCBOR_Private_Exponentitate2(const uint64_t uMantissa,
*
* @returns Error code
*
* \c pfExp performs exponentiation on and unsigned mantissa and
* @c pfExp performs exponentiation on and unsigned mantissa and
* produces an unsigned result. This converts the mantissa from signed
* and converts the result to signed. The exponentiation function is
* either for base 2 or base 10 (and could be other if needed).
Expand Down Expand Up @@ -5263,7 +5263,7 @@ QCBOR_Private_ExponentiateNN(const int64_t nMantissa,
*
* @returns Error code
*
* \c pfExp performs exponentiation on and unsigned mantissa and
* @c pfExp performs exponentiation on and unsigned mantissa and
* produces an unsigned result. This errors out if the mantissa
* is negative because the output is unsigned.
*/
Expand Down Expand Up @@ -5295,7 +5295,7 @@ QCBOR_Private_ExponentitateNU(const int64_t nMantissa,
*
* @returns Error code
*
* \c pfExp performs exponentiation on and unsigned mantissa and
* @c pfExp performs exponentiation on and unsigned mantissa and
* produces an unsigned result so this is just a wrapper that does
* nothing (and is likely inlined).
*/
Expand Down

0 comments on commit 88ba566

Please sign in to comment.