summary refs log tree commit diff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-27 16:44:39 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-27 16:44:39 +0000
commitab4b89fe8a6b41b6317e18e0d14c81103f3d98e1 (patch)
tree57afed6eec52d039993ba5448ba6614f8112e7f4 /posix/regex_internal.h
parentd143c49e00c816194b02c51995f7267f77e6a3d7 (diff)
downloadglibc-ab4b89fe8a6b41b6317e18e0d14c81103f3d98e1.tar.gz
glibc-ab4b89fe8a6b41b6317e18e0d14c81103f3d98e1.tar.xz
glibc-ab4b89fe8a6b41b6317e18e0d14c81103f3d98e1.zip
Update.
2004-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* posix/regex_internal.h (struct re_dfastate_t): Make
	word_trtable a pointer to the 512-item transition table.
	* posix/regexec.c (build_trtable): Fill in either state->trtable
	or state->word_trtable.  Return a boolean indicating success.
	(transit_state): Expect state->trtable to be a 256-item
	transition table.  Reorganize code to have less tests in
	the common case, and to save an indentation level.
Diffstat (limited to 'posix/regex_internal.h')
-rw-r--r--posix/regex_internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index 0ccd8d3665..23765c970e 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -486,7 +486,7 @@ struct re_dfastate_t
   re_node_set non_eps_nodes;
   re_node_set inveclosure;
   re_node_set *entrance_nodes;
-  struct re_dfastate_t **trtable;
+  struct re_dfastate_t **trtable, **word_trtable;
   unsigned int context : 4;
   unsigned int halt : 1;
   /* If this state can accept `multi byte'.
@@ -496,7 +496,6 @@ struct re_dfastate_t
   /* If this state has backreference node(s).  */
   unsigned int has_backref : 1;
   unsigned int has_constraint : 1;
-  unsigned int word_trtable : 1;
 };
 typedef struct re_dfastate_t re_dfastate_t;