* @param expression
* The NULL-terminated expression to parse. Note that this string must
* represent ONLY the pattern to be matched, with no delimiters or flags;
- * any global flags should be specified with the @a flags argument. For
+ * any global flags should be specified with the @p flags argument. For
* example, the expression `/abc?def/i` should be compiled by providing
- * `abc?def` as the @a expression, and @ref HS_FLAG_CASELESS as the @a
+ * `abc?def` as the @p expression, and @ref HS_FLAG_CASELESS as the @a
* flags.
*
* @param flags
* hs_compile()) these strings must contain only the pattern to be
* matched, with no delimiters or flags. For example, the expression
* `/abc?def/i` should be compiled by providing `abc?def` as the first
- * string in the @a expressions array, and @ref HS_FLAG_CASELESS as the
- * first value in the @a flags array.
+ * string in the @p expressions array, and @ref HS_FLAG_CASELESS as the
+ * first value in the @p flags array.
*
* @param flags
* Array of flags which modify the behaviour of each expression. Multiple
*
* @return
* @ref HS_SUCCESS is returned on successful compilation; @ref
- * HS_COMPILER_ERROR on failure, with details provided in the @a error
+ * HS_COMPILER_ERROR on failure, with details provided in the @p error
* parameter.
*
*/
* hs_compile()) these strings must contain only the pattern to be
* matched, with no delimiters or flags. For example, the expression
* `/abc?def/i` should be compiled by providing `abc?def` as the first
- * string in the @a expressions array, and @ref HS_FLAG_CASELESS as the
- * first value in the @a flags array.
+ * string in the @p expressions array, and @ref HS_FLAG_CASELESS as the
+ * first value in the @p flags array.
*
* @param flags
* Array of flags which modify the behaviour of each expression. Multiple
*
* @return
* @ref HS_SUCCESS is returned on successful compilation; @ref
- * HS_COMPILER_ERROR on failure, with details provided in the @a error
+ * HS_COMPILER_ERROR on failure, with details provided in the @p error
* parameter.
*
*/
* @param expression
* The NULL-terminated expression to parse. Note that this string must
* represent ONLY the pattern to be matched, with no delimiters or flags;
- * any global flags should be specified with the @a flags argument. For
+ * any global flags should be specified with the @p flags argument. For
* example, the expression `/abc?def/i` should be compiled by providing
- * `abc?def` as the @a expression, and @ref HS_FLAG_CASELESS as the @a
+ * `abc?def` as the @p expression, and @ref HS_FLAG_CASELESS as the @a
* flags.
*
* @param flags
* @param expression
* The NULL-terminated expression to parse. Note that this string must
* represent ONLY the pattern to be matched, with no delimiters or flags;
- * any global flags should be specified with the @a flags argument. For
+ * any global flags should be specified with the @p flags argument. For
* example, the expression `/abc?def/i` should be compiled by providing
- * `abc?def` as the @a expression, and @ref HS_FLAG_CASELESS as the @a
+ * `abc?def` as the @p expression, and @ref HS_FLAG_CASELESS as the @a
* flags.
*
* @param flags
* - If the start of match value lies outside this horizon (possible only
* when the SOM_HORIZON value is not @ref HS_MODE_SOM_HORIZON_LARGE),
- * the @a from value will be set to @ref HS_OFFSET_PAST_HORIZON.
+ * the @p from value will be set to @ref HS_OFFSET_PAST_HORIZON.
* - This argument will be set to zero if the Start of Match flag is not
* enabled for the given pattern.
*
* This function completes matching on the given stream and frees the memory
* associated with the stream state. After this call, the stream pointed to by
- * @a id is invalid and can no longer be used. To reuse the stream state after
+ * @p id is invalid and can no longer be used. To reuse the stream state after
* completion, rather than closing it, the @ref hs_reset_stream function can be
* used.
*
*
* @param scratch
* A per-thread scratch space allocated by @ref hs_alloc_scratch(). This is
- * allowed to be NULL only if the @a onEvent callback is also NULL.
+ * allowed to be NULL only if the @p onEvent callback is also NULL.
*
* @param onEvent
* Pointer to a match event callback function. If a NULL pointer is given,
*
* @param scratch
* A per-thread scratch space allocated by @ref hs_alloc_scratch(). This is
- * allowed to be NULL only if the @a onEvent callback is also NULL.
+ * allowed to be NULL only if the @p onEvent callback is also NULL.
*
* @param onEvent
* Pointer to a match event callback function. If a NULL pointer is given,
/**
* Duplicate the given 'from' stream state onto the 'to' stream. The 'to' stream
- * will first be reset (reporting any EOD matches if a non-NULL @a onEvent
+ * will first be reset (reporting any EOD matches if a non-NULL @p onEvent
* callback handler is provided).
*
* Note: the 'to' stream and the 'from' stream must be open against the same
*
* @param scratch
* A per-thread scratch space allocated by @ref hs_alloc_scratch(). This is
- * allowed to be NULL only if the @a onEvent callback is also NULL.
+ * allowed to be NULL only if the @p onEvent callback is also NULL.
*
* @param onEvent
* Pointer to a match event callback function. If a NULL pointer is given,
* Creates a compressed representation of the provided stream in the buffer
* provided. This compressed representation can be converted back into a stream
* state by using @ref hs_expand_stream() or @ref hs_reset_and_expand_stream().
- * The size of the compressed representation will be placed into @a used_space.
+ * The size of the compressed representation will be placed into @p used_space.
*
* If there is not sufficient space in the buffer to hold the compressed
- * represention, @ref HS_INSUFFICIENT_SPACE will be returned and @a used_space
+ * representation, @ref HS_INSUFFICIENT_SPACE will be returned and @p used_space
* will be populated with the amount of space required.
*
* Note: this function does not close the provided stream, you may continue to
* @param buf
* Buffer to write the compressed representation into. Note: if the call is
* just being used to determine the amount of space required, it is allowed
- * to pass NULL here and @a buf_space as 0.
+ * to pass NULL here and @p buf_space as 0.
*
* @param buf_space
- * The number of bytes in @a buf. If buf_space is too small, the call will
+ * The number of bytes in @p buf. If buf_space is too small, the call will
* fail with @ref HS_INSUFFICIENT_SPACE.
*
* @param used_space
* Pointer to where the amount of used space will be written to. The used
- * buffer space is always less than or equal to @a buf_space. If the call
+ * buffer space is always less than or equal to @p buf_space. If the call
* fails with @ref HS_INSUFFICIENT_SPACE, this pointer will be used to
* write out the amount of buffer space required.
*
* Decompresses a compressed representation created by @ref hs_compress_stream()
* into a new stream.
*
- * Note: @a buf must correspond to a complete compressed representation created
- * by @ref hs_compress_stream() of a stream that was opened against @a db. It is
+ * Note: @p buf must correspond to a complete compressed representation created
+ * by @ref hs_compress_stream() of a stream that was opened against @p db. It is
* not always possible to detect misuse of this API and behaviour is undefined
* if these properties are not satisfied.
*
/**
* Decompresses a compressed representation created by @ref hs_compress_stream()
* on top of the 'to' stream. The 'to' stream will first be reset (reporting
- * any EOD matches if a non-NULL @a onEvent callback handler is provided).
+ * any EOD matches if a non-NULL @p onEvent callback handler is provided).
*
* Note: the 'to' stream must be opened against the same database as the
* compressed stream.
*
- * Note: @a buf must correspond to a complete compressed representation created
- * by @ref hs_compress_stream() of a stream that was opened against @a db. It is
+ * Note: @p buf must correspond to a complete compressed representation created
+ * by @ref hs_compress_stream() of a stream that was opened against @p db. It is
* not always possible to detect misuse of this API and behaviour is undefined
* if these properties are not satisfied.
*
*
* @param scratch
* A per-thread scratch space allocated by @ref hs_alloc_scratch(). This is
- * allowed to be NULL only if the @a onEvent callback is also NULL.
+ * allowed to be NULL only if the @p onEvent callback is also NULL.
*
* @param onEvent
* Pointer to a match event callback function. If a NULL pointer is given,
*
* @param count
* Number of data blocks to scan. This should correspond to the size of
- * of the @a data and @a length arrays.
+ * of the @p data and @p length arrays.
*
* @param flags
* Flags modifying the behaviour of this function. This parameter is