diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:10 +0300 |
commit | 1aeb9a455974457866f78722ad98114bafc84e8a (patch) | |
tree | e4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/nfa/nfa_api.h | |
parent | bd5ef432f5cfb1e18851381329d94665a4c22470 (diff) | |
download | ydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/nfa/nfa_api.h')
-rw-r--r-- | contrib/libs/hyperscan/src/nfa/nfa_api.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/contrib/libs/hyperscan/src/nfa/nfa_api.h b/contrib/libs/hyperscan/src/nfa/nfa_api.h index e3f7f74311..c97e2cadf2 100644 --- a/contrib/libs/hyperscan/src/nfa/nfa_api.h +++ b/contrib/libs/hyperscan/src/nfa/nfa_api.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, Intel Corporation + * Copyright (c) 2015-2016, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -120,16 +120,16 @@ char nfaInitCompressedState(const struct NFA *nfa, u64a offset, void *state, */ char nfaQueueExec(const struct NFA *nfa, struct mq *q, s64a end); -/** - * Main execution function that doesn't perform the checks and optimisations of - * nfaQueueExec() and just dispatches directly to the nfa implementations. It is - * intended to be used by the Tamarama engine. - */ -char nfaQueueExec_raw(const struct NFA *nfa, struct mq *q, s64a end); - -/** Return value indicating that the engine is dead. */ -#define MO_DEAD 0 - +/** + * Main execution function that doesn't perform the checks and optimisations of + * nfaQueueExec() and just dispatches directly to the nfa implementations. It is + * intended to be used by the Tamarama engine. + */ +char nfaQueueExec_raw(const struct NFA *nfa, struct mq *q, s64a end); + +/** Return value indicating that the engine is dead. */ +#define MO_DEAD 0 + /** Return value indicating that the engine is alive. */ #define MO_ALIVE 1 @@ -166,13 +166,13 @@ char nfaQueueExec_raw(const struct NFA *nfa, struct mq *q, s64a end); char nfaQueueExecToMatch(const struct NFA *nfa, struct mq *q, s64a end); /** - * Main execution function that doesn't perform the checks and optimisations of - * nfaQueueExecToMatch() and just dispatches directly to the nfa - * implementations. It is intended to be used by the Tamarama engine. - */ -char nfaQueueExec2_raw(const struct NFA *nfa, struct mq *q, s64a end); - -/** + * Main execution function that doesn't perform the checks and optimisations of + * nfaQueueExecToMatch() and just dispatches directly to the nfa + * implementations. It is intended to be used by the Tamarama engine. + */ +char nfaQueueExec2_raw(const struct NFA *nfa, struct mq *q, s64a end); + +/** * Report matches at the current queue location. * * @param nfa the NFA to execute @@ -193,15 +193,15 @@ char nfaReportCurrentMatches(const struct NFA *nfa, struct mq *q); char nfaInAcceptState(const struct NFA *nfa, ReportID report, struct mq *q); /** - * Returns non-zero if the NFA is in any accept state regardless of report - * ID. - */ -char nfaInAnyAcceptState(const struct NFA *nfa, struct mq *q); - -/** + * Returns non-zero if the NFA is in any accept state regardless of report + * ID. + */ +char nfaInAnyAcceptState(const struct NFA *nfa, struct mq *q); + +/** * Process the queued commands on the given NFA up to end or the first match. * - * Note: This version is meant for rose prefix/infix NFAs: + * Note: This version is meant for rose prefix/infix NFAs: * - never uses a callback * - loading of state at a point in history is not special cased * @@ -210,9 +210,9 @@ char nfaInAnyAcceptState(const struct NFA *nfa, struct mq *q); * end with some variant of end. The location field of the events must * be monotonically increasing. If not all the data was processed during * the call, the queue is updated to reflect the remaining work. - * @param report we are interested in. If the given report will be raised at - * the end location, the function returns @ref MO_MATCHES_PENDING. If no - * match information is desired, MO_INVALID_IDX should be passed in. + * @param report we are interested in. If the given report will be raised at + * the end location, the function returns @ref MO_MATCHES_PENDING. If no + * match information is desired, MO_INVALID_IDX should be passed in. * @return @ref MO_ALIVE if the nfa is still active with no matches pending, * and @ref MO_MATCHES_PENDING if there are matches pending, 0 if not * alive @@ -228,9 +228,9 @@ char nfaQueueExecRose(const struct NFA *nfa, struct mq *q, ReportID report); * Runs an NFA in reverse from (buf + buflen) to buf and then from (hbuf + hlen) * to hbuf (main buffer and history buffer). * - * Note: provides the match location as the "end" offset when the callback is - * called. - * + * Note: provides the match location as the "end" offset when the callback is + * called. + * * @param nfa engine to run * @param offset base offset of buf * @param buf main buffer @@ -242,7 +242,7 @@ char nfaQueueExecRose(const struct NFA *nfa, struct mq *q, ReportID report); */ char nfaBlockExecReverse(const struct NFA *nfa, u64a offset, const u8 *buf, size_t buflen, const u8 *hbuf, size_t hlen, - NfaCallback callback, void *context); + NfaCallback callback, void *context); /** * Check whether the given NFA's state indicates that it is in one or more @@ -256,13 +256,13 @@ char nfaBlockExecReverse(const struct NFA *nfa, u64a offset, const u8 *buf, * @param offset the offset to return (via the callback) with each match * @param callback the callback to call for each match raised * @param context context pointer passed to each callback - * - * @return @ref MO_HALT_MATCHING if the user instructed us to halt, otherwise - * @ref MO_CONTINUE_MATCHING. + * + * @return @ref MO_HALT_MATCHING if the user instructed us to halt, otherwise + * @ref MO_CONTINUE_MATCHING. */ char nfaCheckFinalState(const struct NFA *nfa, const char *state, const char *streamState, u64a offset, - NfaCallback callback, void *context); + NfaCallback callback, void *context); /** * Indicates if an engine is a zombie. |