f20f6f3fdf
backported that was written for the TRE integration project in Google Summer of Code 2011. This is a temporary solution until the whole regex library is not replaced so that BSD grep development can continue and the backported code gets some review and testing. This change only improves scalability slightly, there is no big performance boost yet but several minor bugs have been found and fixed. Approved by: delphij (mentor) Sposored by: Google Summer of Code 2011 MFC after: 1 week
22 lines
579 B
C
22 lines
579 B
C
/* $FreeBSD$ */
|
|
|
|
#ifndef TRE_FASTMATCH_H
|
|
#define TRE_FASTMATCH_H 1
|
|
|
|
#include <fastmatch.h>
|
|
#include <hashtable.h>
|
|
#include <limits.h>
|
|
#include <regex.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "hashtable.h"
|
|
|
|
int tre_compile_literal(fastmatch_t *preg, const tre_char_t *regex,
|
|
size_t, int);
|
|
int tre_compile_fast(fastmatch_t *preg, const tre_char_t *regex, size_t, int);
|
|
int tre_match_fast(const fastmatch_t *fg, const void *data, size_t len,
|
|
tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags);
|
|
void tre_free_fast(fastmatch_t *preg);
|
|
|
|
#endif /* TRE_FASTMATCH_H */
|