From 58845a7030dfca1812db98099cd7954c7449bac2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 5 Mar 2004 10:54:16 +0000 Subject: Update. * include/wctype.h: Add libc_hidden_proto for __towctrans. * wctype/towctrans.c: Add libc_hidden_def. * libio/memstream.c (open_memstream): Use _IO_init with INTUSE. * posix/regexec.c (transit_state): Remove unused variable next_state. * posix/regcomp.c (init_dfa): Use __btowc instead of btowc. --- posix/regcomp.c | 2 +- posix/regexec.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'posix') diff --git a/posix/regcomp.c b/posix/regcomp.c index eccb93e46e..bc9e56bd02 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -867,7 +867,7 @@ init_dfa (dfa, pat_len) else for (i = 0, ch = 0; i < BITSET_UINTS; ++i) for (j = 0; j < UINT_BITS; ++j, ++ch) - if (btowc (ch) != WEOF) + if (__btowc (ch) != WEOF) dfa->sb_char[i] |= 1 << j; } #endif diff --git a/posix/regexec.c b/posix/regexec.c index 09142c5f7a..ad62178bbd 100644 --- a/posix/regexec.c +++ b/posix/regexec.c @@ -2148,7 +2148,7 @@ transit_state (err, mctx, state) re_dfastate_t *state; { re_dfa_t *const dfa = mctx->dfa; - re_dfastate_t **trtable, *next_state; + re_dfastate_t **trtable; unsigned char ch; if (re_string_cur_idx (&mctx->input) + 1 >= mctx->input.bufs_len @@ -2208,13 +2208,13 @@ transit_state (err, mctx, state) } /* Update the state_log if we need */ -re_dfastate_t * -merge_state_with_log (err, mctx, next_state) - reg_errcode_t *err; - re_match_context_t *mctx; - re_dfastate_t *next_state; -{ - re_dfa_t *const dfa = mctx->dfa; +re_dfastate_t * +merge_state_with_log (err, mctx, next_state) + reg_errcode_t *err; + re_match_context_t *mctx; + re_dfastate_t *next_state; +{ + re_dfa_t *const dfa = mctx->dfa; int cur_idx = re_string_cur_idx (&mctx->input); if (cur_idx > mctx->state_log_top) -- cgit v1.2.3