mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* stdlib/random_r.c (__setstate_r): Correct offset when computing new rptr and fptr. Reported by Michael Fischer <fischer@cs.yale.edu>. * posix/regex.h: Add macro definitions to allow compiling outside glibc.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
2000-08-21 Ulrich Drepper <drepper@redhat.com>
|
2000-08-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* stdlib/random_r.c (__setstate_r): Correct offset when computing
|
||||||
|
new rptr and fptr. Reported by Michael Fischer <fischer@cs.yale.edu>.
|
||||||
|
|
||||||
|
* posix/regex.h: Add macro definitions to allow compiling outside
|
||||||
|
glibc.
|
||||||
|
|
||||||
* sysdeps/i370/Implies: Removed.
|
* sysdeps/i370/Implies: Removed.
|
||||||
* sysdeps/mvs/Implies: Removed.
|
* sysdeps/mvs/Implies: Removed.
|
||||||
|
|
||||||
|
@ -513,6 +513,22 @@ extern int re_exec _RE_ARGS ((const char *));
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* GCC 2.95 and later have "__restrict"; C99 compilers have
|
||||||
|
"restrict", and "configure" may have defined "restrict". */
|
||||||
|
#ifndef __restrict
|
||||||
|
# if ! (2 < __GNUC__ || (2 == __GNUC__ && 95 <= __GNUC_MINOR__))
|
||||||
|
# if defined restrict || 199901L <= __STDC_VERSION__
|
||||||
|
# define __restrict restrict
|
||||||
|
# else
|
||||||
|
# define __restrict
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
/* For now unconditionally define __restrict_arr to expand to nothing.
|
||||||
|
Ideally we would have a test for the compiler which allows defining
|
||||||
|
it to restrict. */
|
||||||
|
# define __restrict_arr
|
||||||
|
#endif
|
||||||
|
|
||||||
/* POSIX compatibility. */
|
/* POSIX compatibility. */
|
||||||
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
|
extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,
|
||||||
const char *__restrict __pattern,
|
const char *__restrict __pattern,
|
||||||
|
@ -295,8 +295,8 @@ __setstate_r (arg_state, buf)
|
|||||||
if (type != TYPE_0)
|
if (type != TYPE_0)
|
||||||
{
|
{
|
||||||
int rear = new_state[0] / MAX_TYPES;
|
int rear = new_state[0] / MAX_TYPES;
|
||||||
buf->rptr = &new_state[rear];
|
buf->rptr = &new_state[1 + rear];
|
||||||
buf->fptr = &new_state[(rear + separation) % degree];
|
buf->fptr = &new_state[1 + (rear + separation) % degree];
|
||||||
}
|
}
|
||||||
buf->state = &new_state[1];
|
buf->state = &new_state[1];
|
||||||
/* Set end_ptr too. */
|
/* Set end_ptr too. */
|
||||||
|
Reference in New Issue
Block a user