diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-09-23 06:11:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-09-23 06:11:29 +0000 |
commit | 997470b3e151845b067b0a7c865f9ab7177d14c1 (patch) | |
tree | c08e477ee770cf2218dd2e0d20f60bf61de600bf /posix/regcomp.c | |
parent | 8f7aee92287b84e9a18d5da1c7027d7067446a90 (diff) | |
download | glibc-997470b3e151845b067b0a7c865f9ab7177d14c1.zip glibc-997470b3e151845b067b0a7c865f9ab7177d14c1.tar.gz glibc-997470b3e151845b067b0a7c865f9ab7177d14c1.tar.bz2 |
[BZ #281]
* posix/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
* posix/regcomp.c: Remove unnecessary uses of
unsigned RE_TRANSLATE_TYPE.
* posix/regex_internal.h: Likewise.
* posix/regex_internal.c: Likewise.
* posix/regexexec.c: Likewise.
Based on a patch by Stepan Kasal <kasal@ucw.cz>.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r-- | posix/regcomp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c index c93f79e..bf374a8 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -117,7 +117,7 @@ static reg_errcode_t build_equiv_class (re_bitset_ptr_t sbcset, re_charset_t *mbcset, int *equiv_class_alloc, const unsigned char *name); -static reg_errcode_t build_charclass (unsigned RE_TRANSLATE_TYPE trans, +static reg_errcode_t build_charclass (RE_TRANSLATE_TYPE trans, re_bitset_ptr_t sbcset, re_charset_t *mbcset, int *char_class_alloc, @@ -126,13 +126,13 @@ static reg_errcode_t build_charclass (unsigned RE_TRANSLATE_TYPE trans, #else /* not RE_ENABLE_I18N */ static reg_errcode_t build_equiv_class (re_bitset_ptr_t sbcset, const unsigned char *name); -static reg_errcode_t build_charclass (unsigned RE_TRANSLATE_TYPE trans, +static reg_errcode_t build_charclass (RE_TRANSLATE_TYPE trans, re_bitset_ptr_t sbcset, const unsigned char *class_name, reg_syntax_t syntax); #endif /* not RE_ENABLE_I18N */ static bin_tree_t *build_charclass_op (re_dfa_t *dfa, - unsigned RE_TRANSLATE_TYPE trans, + RE_TRANSLATE_TYPE trans, const unsigned char *class_name, const unsigned char *extra, int non_match, reg_errcode_t *err); @@ -3559,7 +3559,7 @@ build_charclass (trans, sbcset, mbcset, char_class_alloc, class_name, syntax) #else /* not RE_ENABLE_I18N */ build_charclass (trans, sbcset, class_name, syntax) #endif /* not RE_ENABLE_I18N */ - unsigned RE_TRANSLATE_TYPE trans; + RE_TRANSLATE_TYPE trans; re_bitset_ptr_t sbcset; const unsigned char *class_name; reg_syntax_t syntax; @@ -3634,7 +3634,7 @@ build_charclass (trans, sbcset, class_name, syntax) static bin_tree_t * build_charclass_op (dfa, trans, class_name, extra, non_match, err) re_dfa_t *dfa; - unsigned RE_TRANSLATE_TYPE trans; + RE_TRANSLATE_TYPE trans; const unsigned char *class_name; const unsigned char *extra; int non_match; |