mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-09 10:50:08 +00:00
* posix/regex_internal.h: Prevent some declarations and definitions
to be seen when used in tests.
This commit is contained in:
parent
ec1e04dedb
commit
3fa1046805
@ -1,5 +1,8 @@
|
|||||||
2007-08-25 Ulrich Drepper <drepper@redhat.com>
|
2007-08-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* posix/regex_internal.h: Prevent some declarations and definitions
|
||||||
|
to be seen when used in tests.
|
||||||
|
|
||||||
* posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
|
* posix/tst-rfc3484.c (__idna_to_unicode_lzlz): Initialize *OUTPUT.
|
||||||
* posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
|
* posix/tst-rfc3484-2.c (__idna_to_unicode_lzlz): Likewise.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Extended regular expression matching and search library.
|
/* Extended regular expression matching and search library.
|
||||||
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
|
Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
|
||||||
|
|
||||||
@ -385,18 +385,20 @@ typedef struct re_dfa_t re_dfa_t;
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NOT_IN_libc
|
||||||
static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr,
|
static reg_errcode_t re_string_realloc_buffers (re_string_t *pstr,
|
||||||
int new_buf_len)
|
int new_buf_len)
|
||||||
internal_function;
|
internal_function;
|
||||||
#ifdef RE_ENABLE_I18N
|
# ifdef RE_ENABLE_I18N
|
||||||
static void build_wcs_buffer (re_string_t *pstr) internal_function;
|
static void build_wcs_buffer (re_string_t *pstr) internal_function;
|
||||||
static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;
|
static int build_wcs_upper_buffer (re_string_t *pstr) internal_function;
|
||||||
#endif /* RE_ENABLE_I18N */
|
# endif /* RE_ENABLE_I18N */
|
||||||
static void build_upper_buffer (re_string_t *pstr) internal_function;
|
static void build_upper_buffer (re_string_t *pstr) internal_function;
|
||||||
static void re_string_translate_buffer (re_string_t *pstr) internal_function;
|
static void re_string_translate_buffer (re_string_t *pstr) internal_function;
|
||||||
static unsigned int re_string_context_at (const re_string_t *input, int idx,
|
static unsigned int re_string_context_at (const re_string_t *input, int idx,
|
||||||
int eflags)
|
int eflags)
|
||||||
internal_function __attribute ((pure));
|
internal_function __attribute ((pure));
|
||||||
|
#endif
|
||||||
#define re_string_peek_byte(pstr, offset) \
|
#define re_string_peek_byte(pstr, offset) \
|
||||||
((pstr)->mbs[(pstr)->cur_idx + offset])
|
((pstr)->mbs[(pstr)->cur_idx + offset])
|
||||||
#define re_string_fetch_byte(pstr) \
|
#define re_string_fetch_byte(pstr) \
|
||||||
@ -732,6 +734,7 @@ re_string_wchar_at (const re_string_t *pstr, int idx)
|
|||||||
return (wint_t) pstr->wcs[idx];
|
return (wint_t) pstr->wcs[idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ifndef NOT_IN_libc
|
||||||
static int
|
static int
|
||||||
internal_function __attribute ((pure))
|
internal_function __attribute ((pure))
|
||||||
re_string_elem_size_at (const re_string_t *pstr, int idx)
|
re_string_elem_size_at (const re_string_t *pstr, int idx)
|
||||||
@ -758,6 +761,7 @@ re_string_elem_size_at (const re_string_t *pstr, int idx)
|
|||||||
# endif /* _LIBC */
|
# endif /* _LIBC */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
#endif /* RE_ENABLE_I18N */
|
#endif /* RE_ENABLE_I18N */
|
||||||
|
|
||||||
#endif /* _REGEX_INTERNAL_H */
|
#endif /* _REGEX_INTERNAL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user