svn commit: r232006 - user/gabor/tre-integration/contrib/tre/lib

Gabor Kovesdan gabor at FreeBSD.org
Wed Feb 22 21:46:16 UTC 2012


Author: gabor
Date: Wed Feb 22 21:46:15 2012
New Revision: 232006
URL: http://svn.freebsd.org/changeset/base/232006

Log:
  - Add back struct that has been removed with an old header

Modified:
  user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.h

Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.h
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.h	Wed Feb 22 21:45:52 2012	(r232005)
+++ user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.h	Wed Feb 22 21:46:15 2012	(r232006)
@@ -1,14 +1,40 @@
 #ifndef TRE_FASTMATCH_H
 #define TRE_FASTMATCH_H 1
 
-#include <fastmatch.h>
 #include <limits.h>
 #include <regex.h>
 #include <stdbool.h>
+#include <wchar.h>
 
 #include "hashtable.h"
 #include "tre-internal.h"
 
+typedef struct {
+  size_t wlen;
+  size_t len;
+  wchar_t *wpattern;
+  bool *wescmap;
+  unsigned int qsBc[UCHAR_MAX + 1];
+  unsigned int *bmGs;
+  char *pattern;
+  bool *escmap;
+  unsigned int defBc;
+  void *qsBc_table;
+  unsigned int *sbmGs;
+  const char *re_endp;
+
+  /* flags */
+  bool hasdot;
+  bool bol;
+  bool eol;
+  bool word;
+  bool icase;
+  bool newline;
+  bool nosub;
+  bool matchall;
+  bool reversed;
+} fastmatch_t;
+
 int
 tre_proc_literal(fastmatch_t *, const tre_char_t *, size_t,
 		 const char *, size_t, int);


More information about the svn-src-user mailing list