glibc/posix
Ulrich Drepper 56b168be5d Update.
2004-01-02  Jakub Jelinek  <jakub@redhat.com>

	* posix/regex_internal.c (re_node_set_insert): Remove unused variables.

	* posix/regex_internal.h (re_dfa_t): Add syntax field.
	* posix/regcomp.c (parse): Initialize dfa->syntax.
	* posix/regexec.c (acquire_init_state_context,
	prune_impossible_nodes, check_matching, check_halt_state_context,
	proceed_next_node, sift_states_iter_mb, sift_states_backward,
	update_cur_sifted_state, sift_states_bkref, transit_state,
	transit_state_sb, transit_state_mb, transit_state_bkref,
	get_subexp, get_subexp_sub, check_arrival, expand_bkref_cache,
	build_trtable): Remove preg argument, add dfa argument instead
	and remove dfa = preg->buffer initialization in the body.
	Adjust all callers.
	(check_node_accept_bytes, group_nodes_into_DFAstates,
	check_node_accept): Likewise.  Use dfa->syntax instead of
	preg->syntax.
	(check_arrival_add_next_nodes): Remove preg argument.

	* posix/regex_internal.h (re_match_context_t): Make input
	re_string_t instead of a pointer to it.
	* posix/regex_internal.c (re_string_construct_common): Don't clear
	pstr here...
	(re_string_construct): ... but only here.
	* posix/regexec.c (match_ctx_init): Remove input argument.  Don't
	initialize fields to zero.
	(re_search_internal): Move input into mctx.input.
	(acquire_init_state_context, check_matching,
	check_halt_state_context, proceed_next_node,
	clean_state_log_if_needed, sift_states_bkref, sift_states_iter_mb,
	transit_state, transit_state_sb, transit_state_mb,
	transit_state_bkref, get_subexp, check_arrival,
	check_arrival_add_next_nodes, check_node_accept, extend_buffers):
	Change mctx->input into &mctx->input and mctx->input->field into
	mctx->input.field.

2004-01-02  Jakub Jelinek  <jakub@redhat.com>
	    Paolo Bonzini  <bonzini@gnu.org>

	* posix/regex_internal.h (re_const_bitset_ptr_t): New type.
	(re_string_t): Add newline_anchor, word_char and word_ops_used fields.
	(re_dfa_t): Change word_char type to bitset.  Add word_ops_used field.
	(re_string_context_at, re_string_reconstruct): Remove last argument.
	* posix/regex_internal.c (re_string_allocate): Initialize
	pstr->word_char and pstr->word_ops_used.
	(re_string_context_at): Remove newline_anchor argument.
	Use input->newline_anchor instead, swap && conditions.
	Only use IS_WIDE_WORD_CHAR if input->word_ops_used != 0.
	Use input->word_char bitmap instead of IS_WORD_CHAR.
	(re_string_reconstruct): Likewise.
	Adjust re_string_context_at caller.
	* posix/regexec.c (acquire_init_state_context,
	check_halt_state_context, transit_state, transit_state_sb,
	transit_state_mb, transit_state_bkref, check_arrival,
	check_node_accept): Adjust re_string_context_at and
	re_string_reconstruct callers.
	(re_search_internal): Likewise.  Set input.newline_anchor.
	(build_trtable): Use dfa->word_char bitmap instead of IS_WORD_CHAR.
	* posix/regcomp.c (init_word_char): Change return type to void.
	Set dfa->word_ops_used.
	(free_dfa_content): Don't free dfa->word_char.
	(parse_expression): Remove error handling for init_word_char.
2004-01-02 21:20:51 +00:00
..
bits (_POSIX_NGROUPS_MAX): Define to 8 or 0 depending on selected standard. (NGROUPS_MAX): Define to 8 if not defined. 2003-07-02 07:17:15 +00:00
glob
rxspencer Update. 2003-12-27 23:40:06 +00:00
sys Update. 2003-04-19 16:57:17 +00:00
.cvsignore
annexc.c
BOOST.tests Update. 2003-12-27 23:40:06 +00:00
bsd-getpgrp.c
bug-regex1.c
bug-regex2.c
bug-regex3.c
bug-regex4.c 2003-04-07 Jakub Jelinek <jakub@redhat.com> 2003-04-08 01:23:29 +00:00
bug-regex5.c
bug-regex6.c
bug-regex7.c
bug-regex8.c
bug-regex9.c
bug-regex10.c
bug-regex11.c Update. 2003-12-30 20:01:17 +00:00
bug-regex12.c Update. 2003-10-02 22:41:11 +00:00
bug-regex13.c Update. 2003-12-22 06:52:35 +00:00
bug-regex14.c
bug-regex15.c
bug-regex16.c
bug-regex17.c Update. 2003-11-12 07:56:31 +00:00
bug-regex18.c Update. 2003-11-29 06:13:09 +00:00
bug-regex19.c Update. 2003-12-22 06:52:35 +00:00
bug-regex20.c Update. 2003-11-26 03:24:15 +00:00
bug-regex21.c Update. 2003-11-19 19:37:31 +00:00
confstr.c
cpio.h
Depend
execl.c
execle.c
execlp.c
execv.c
execvp.c
fnmatch_loop.c Update. 2003-06-13 21:05:42 +00:00
fnmatch.c Update. 2003-11-18 19:12:03 +00:00
fnmatch.h
getconf.c Update copyright year. 2004-01-01 20:42:01 +00:00
getopt1.c
getopt_init.c
getopt.c Update. 2003-09-12 22:37:19 +00:00
getopt.h Update. 2003-09-12 22:37:19 +00:00
glob.h
globtest.c
globtest.sh Update. 2003-10-27 01:36:12 +00:00
Makefile Update. 2003-12-04 08:04:57 +00:00
PCRE.tests Update. 2003-12-27 23:40:06 +00:00
ptestcases.h Update. 2003-11-26 03:24:15 +00:00
PTESTS Update. 2003-11-26 03:24:15 +00:00
PTESTS2C.sed Update. 2003-11-13 01:04:26 +00:00
re_comp.h
regcomp.c Update. 2004-01-02 21:20:51 +00:00
regex_internal.c Update. 2004-01-02 21:20:51 +00:00
regex_internal.h Update. 2004-01-02 21:20:51 +00:00
regex.c Update. 2003-11-16 07:14:28 +00:00
regex.h Update. 2003-11-13 06:01:46 +00:00
regexbug1.c
regexec.c Update. 2004-01-02 21:20:51 +00:00
runptests.c Update. 2003-11-26 03:24:15 +00:00
runtests.c Update. 2003-11-13 20:04:16 +00:00
sched.h Update. 2003-05-10 07:48:16 +00:00
spawn_faction_addclose.c
spawn_faction_adddup2.c
spawn_faction_addopen.c
spawn_faction_destroy.c
spawn_faction_init.c
spawn_int.h
spawn.c
spawn.h Update. 2003-04-19 16:57:17 +00:00
spawnattr_destroy.c
spawnattr_getdefault.c
spawnattr_getflags.c
spawnattr_getpgroup.c
spawnattr_getschedparam.c
spawnattr_getschedpolicy.c
spawnattr_getsigmask.c
spawnattr_init.c
spawnattr_setdefault.c
spawnattr_setflags.c
spawnattr_setpgroup.c
spawnattr_setschedparam.c
spawnattr_setschedpolicy.c
spawnattr_setsigmask.c
spawnp.c
tar.h
test-vfork.c
testcases.h
testfnm.c
TESTS
TESTS2C.sed
transbug.c * posix/transbug.c: Include <string.h> for memset and strlen 2003-06-25 11:04:58 +00:00
tst-boost.c Update. 2003-12-04 08:04:57 +00:00
tst-chmod.c
tst-dir.c
tst-exec.c
tst-fnmatch.c
tst-fnmatch.input
tst-fork.c
tst-getaddrinfo.c
tst-getconf.sh
tst-getlogin.c
tst-gnuglob.c
tst-mmap.c
tst-nanosleep.c * posix/tst-nanosleep.c: Include <time.h> for nanosleep 2003-06-25 11:14:37 +00:00
tst-nice.c 2003-03-20 Roland McGrath <roland@redhat.com> 2003-03-20 11:40:36 +00:00
tst-pcre.c Update. 2003-12-04 08:04:57 +00:00
tst-preadwrite64.c
tst-preadwrite.c
tst-regex.c Update. 2003-11-29 06:13:09 +00:00
tst-regexloc.c
tst-rxspencer.c Update. 2003-12-23 02:29:44 +00:00
tst-spawn.c
tst-truncate64.c
tst-truncate.c
tstgetopt.c
unistd.h Update. 2003-09-04 16:19:05 +00:00
Versions Update. 2003-09-17 00:49:19 +00:00
wait.h
wordexp-test.c Update. 2003-09-18 02:54:32 +00:00
wordexp-tst.sh
wordexp.h (CFLAGS-oldtmpfile.c): Add -fexceptions. 2003-09-02 07:14:15 +00:00