Scratch is no longer used by this function's implementations.
/*
- * Copyright (c) 2015, 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:
void *state, u8 key); \
char gf_name##_B_Reverse(const struct NFA *n, u64a offset, const u8 *buf, \
size_t buflen, const u8 *hbuf, size_t hlen, \
- struct hs_scratch *scratch, NfaCallback cb, \
- void *context); \
+ NfaCallback cb, void *context); \
char gf_name##_queueCompressState(const struct NFA *nfa, \
const struct mq *q, s64a loc); \
char gf_name##_expandState(const struct NFA *nfa, void *dest, \
const void *src, u64a offset, u8 key); \
- enum nfa_zombie_status gf_name##_zombie_status(const struct NFA *nfa, \
- struct mq *q, s64a loc); \
+ enum nfa_zombie_status gf_name##_zombie_status(const struct NFA *nfa, \
+ struct mq *q, s64a loc); \
GENERATE_NFA_DUMP_DECL(gf_name)
GENERATE_NFA_DECL(nfaExecLimEx32_1)
char JOIN(LIMEX_API_ROOT, _B_Reverse)(const struct NFA *n, u64a offset,
const u8 *buf, size_t buflen,
const u8 *hbuf, size_t hlen,
- UNUSED struct hs_scratch *scratch,
NfaCallback cb, void *context) {
assert(buf || hbuf);
assert(buflen || hlen);
#include "callback.h"
#include "ue2common.h"
-struct hs_scratch;
struct mq;
struct NFA;
* @param buflen length of buf
* @param hbuf history buf
* @param hlen length of hbuf
- * @param scratch scratch
* @param callback the callback to call for each match raised
* @param context context pointer passed to each callback
- *
- * Note: is NOT reentrant
*/
char nfaBlockExecReverse(const struct NFA *nfa, u64a offset, const u8 *buf,
size_t buflen, const u8 *hbuf, size_t hlen,
- struct hs_scratch *scratch, NfaCallback callback,
- void *context);
+ NfaCallback callback, void *context);
/**
* Check whether the given NFA's state indicates that it is in one or more
/*
- * Copyright (c) 2015, 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:
char nfaBlockExecReverse(const struct NFA *nfa, u64a offset, const u8 *buf,
size_t buflen, const u8 *hbuf, size_t hlen,
- struct hs_scratch *scratch, NfaCallback callback,
- void *context) {
+ NfaCallback callback, void *context) {
assert(nfa);
assert(ISALIGNED_CL(nfa) && ISALIGNED_CL(getImplNfa(nfa)));
DISPATCH_BY_NFA_TYPE(_B_Reverse(nfa, offset, buf, buflen, hbuf, hlen,
- scratch, callback, context));
+ callback, context));
return 0;
}
*from_offset = to_offset;
nfaBlockExecReverse(nfa, to_offset, buf, buf_bytes, hbuf, history_bytes,
- scratch, somRevCallback, from_offset);
+ somRevCallback, from_offset);
assert(*from_offset <= to_offset);
}
/*
- * Copyright (c) 2015, 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:
const size_t hlen = 0;
nfaBlockExecReverse(nfa.get(), offset, buf, buflen, hbuf, hlen,
- scratch.get(), onMatch, &matches);
+ onMatch, &matches);
ASSERT_EQ(3, matches);
}