|
|
00db10 |
commit 2e09a79ada1f6d92809a037d41895e3d9302ad59
|
|
|
00db10 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
00db10 |
Date: Fri Jun 7 22:24:35 2013 +0000
|
|
|
00db10 |
|
|
|
00db10 |
Avoid use of "register" as optimization hint.
|
|
|
00db10 |
|
|
|
00db10 |
Conflicts:
|
|
|
00db10 |
hurd/hurdmalloc.c
|
|
|
00db10 |
(Adjusted for missing previous backport.)
|
|
|
00db10 |
resolv/arpa/nameser.h
|
|
|
00db10 |
resolv/compat-gethnamaddr.c
|
|
|
00db10 |
resolv/ns_print.c
|
|
|
00db10 |
resolv/res_init.c
|
|
|
00db10 |
resolv/res_mkquery.c
|
|
|
00db10 |
(Changes were already part of the stub resolver rebase
|
|
|
00db10 |
in glibc-rh677316-resolv.patch.)
|
|
|
00db10 |
time/tzset.c
|
|
|
00db10 |
(Changes were already part of the fix for rhbz#1234449.)
|
|
|
00db10 |
wcsmbs/wcsrchr.c
|
|
|
00db10 |
(Resolve textual conflict due to glibc-rh731837-16.patch.)
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/bits/byteswap.h b/bits/byteswap.h
|
|
|
00db10 |
index 7e5daedb83e29a4c..068a824539a4a302 100644
|
|
|
00db10 |
--- a/bits/byteswap.h
|
|
|
00db10 |
+++ b/bits/byteswap.h
|
|
|
00db10 |
@@ -48,7 +48,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
00db10 |
# else
|
|
|
00db10 |
# define __bswap_32(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
|
|
|
00db10 |
+ ({ unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
|
|
|
00db10 |
# endif
|
|
|
00db10 |
#else
|
|
|
00db10 |
static __inline unsigned int
|
|
|
00db10 |
diff --git a/crypt/crypt.c b/crypt/crypt.c
|
|
|
00db10 |
index 3360639139715348..34b8f2e280263f7a 100644
|
|
|
00db10 |
--- a/crypt/crypt.c
|
|
|
00db10 |
+++ b/crypt/crypt.c
|
|
|
00db10 |
@@ -88,8 +88,8 @@ _ufc_doit_r(itr, __data, res)
|
|
|
00db10 |
{
|
|
|
00db10 |
int i;
|
|
|
00db10 |
long64 l, r, s, *k;
|
|
|
00db10 |
- register long64 *sb01 = (long64*)__data->sb0;
|
|
|
00db10 |
- register long64 *sb23 = (long64*)__data->sb2;
|
|
|
00db10 |
+ long64 *sb01 = (long64*)__data->sb0;
|
|
|
00db10 |
+ long64 *sb23 = (long64*)__data->sb2;
|
|
|
00db10 |
|
|
|
00db10 |
l = (((long64)res[0]) << 32) | ((long64)res[1]);
|
|
|
00db10 |
r = (((long64)res[2]) << 32) | ((long64)res[3]);
|
|
|
00db10 |
diff --git a/debug/stpcpy_chk.c b/debug/stpcpy_chk.c
|
|
|
00db10 |
index 2bb7b518447b8b66..3934d132d930093c 100644
|
|
|
00db10 |
--- a/debug/stpcpy_chk.c
|
|
|
00db10 |
+++ b/debug/stpcpy_chk.c
|
|
|
00db10 |
@@ -29,8 +29,8 @@ __stpcpy_chk (dest, src, destlen)
|
|
|
00db10 |
const char *src;
|
|
|
00db10 |
size_t destlen;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *d = dest;
|
|
|
00db10 |
- register const char *s = src;
|
|
|
00db10 |
+ char *d = dest;
|
|
|
00db10 |
+ const char *s = src;
|
|
|
00db10 |
|
|
|
00db10 |
do
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/debug/wcscat_chk.c b/debug/wcscat_chk.c
|
|
|
00db10 |
index 27d9ee5f90853048..c2ac552c5fd34827 100644
|
|
|
00db10 |
--- a/debug/wcscat_chk.c
|
|
|
00db10 |
+++ b/debug/wcscat_chk.c
|
|
|
00db10 |
@@ -23,8 +23,8 @@
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
__wcscat_chk (wchar_t *dest, const wchar_t *src, size_t destlen)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t *s1 = dest;
|
|
|
00db10 |
- register const wchar_t *s2 = src;
|
|
|
00db10 |
+ wchar_t *s1 = dest;
|
|
|
00db10 |
+ const wchar_t *s2 = src;
|
|
|
00db10 |
wchar_t c;
|
|
|
00db10 |
|
|
|
00db10 |
/* Find the end of the string. */
|
|
|
00db10 |
diff --git a/gmon/gmon.c b/gmon/gmon.c
|
|
|
00db10 |
index 0d2ed0594e4baf1e..9774d57ccced2079 100644
|
|
|
00db10 |
--- a/gmon/gmon.c
|
|
|
00db10 |
+++ b/gmon/gmon.c
|
|
|
00db10 |
@@ -102,7 +102,7 @@ __monstartup (lowpc, highpc)
|
|
|
00db10 |
u_long lowpc;
|
|
|
00db10 |
u_long highpc;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int o;
|
|
|
00db10 |
+ int o;
|
|
|
00db10 |
char *cp;
|
|
|
00db10 |
struct gmonparam *p = &_gmonparam;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/gmon/mcount.c b/gmon/mcount.c
|
|
|
00db10 |
index 5a4a2499d461acc7..0c2acd2890dd7ed9 100644
|
|
|
00db10 |
--- a/gmon/mcount.c
|
|
|
00db10 |
+++ b/gmon/mcount.c
|
|
|
00db10 |
@@ -58,10 +58,10 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
|
|
00db10 |
*/
|
|
|
00db10 |
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
|
|
00db10 |
{
|
|
|
00db10 |
- register ARCINDEX *frompcindex;
|
|
|
00db10 |
- register struct tostruct *top, *prevtop;
|
|
|
00db10 |
- register struct gmonparam *p;
|
|
|
00db10 |
- register ARCINDEX toindex;
|
|
|
00db10 |
+ ARCINDEX *frompcindex;
|
|
|
00db10 |
+ struct tostruct *top, *prevtop;
|
|
|
00db10 |
+ struct gmonparam *p;
|
|
|
00db10 |
+ ARCINDEX toindex;
|
|
|
00db10 |
int i;
|
|
|
00db10 |
|
|
|
00db10 |
p = &_gmonparam;
|
|
|
00db10 |
diff --git a/hurd/hurdmalloc.c b/hurd/hurdmalloc.c
|
|
|
00db10 |
index 12da1f2abc50ef0a..886b40208da56866 100644
|
|
|
00db10 |
--- a/hurd/hurdmalloc.c
|
|
|
00db10 |
+++ b/hurd/hurdmalloc.c
|
|
|
00db10 |
@@ -171,10 +171,10 @@ malloc_init (void)
|
|
|
00db10 |
static void
|
|
|
00db10 |
more_memory(int size, free_list_t fl)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int amount;
|
|
|
00db10 |
- register int n;
|
|
|
00db10 |
+ int amount;
|
|
|
00db10 |
+ int n;
|
|
|
00db10 |
vm_address_t where;
|
|
|
00db10 |
- register header_t h;
|
|
|
00db10 |
+ header_t h;
|
|
|
00db10 |
kern_return_t r;
|
|
|
00db10 |
|
|
|
00db10 |
if (size <= vm_page_size) {
|
|
|
00db10 |
@@ -203,11 +203,11 @@ more_memory(int size, free_list_t fl)
|
|
|
00db10 |
/* Declaration changed to standard one for GNU. */
|
|
|
00db10 |
void *
|
|
|
00db10 |
malloc(size)
|
|
|
00db10 |
- register size_t size;
|
|
|
00db10 |
+ size_t size;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i, n;
|
|
|
00db10 |
- register free_list_t fl;
|
|
|
00db10 |
- register header_t h;
|
|
|
00db10 |
+ int i, n;
|
|
|
00db10 |
+ free_list_t fl;
|
|
|
00db10 |
+ header_t h;
|
|
|
00db10 |
|
|
|
00db10 |
if ((int) size < 0) /* sanity check */
|
|
|
00db10 |
return 0;
|
|
|
00db10 |
@@ -272,9 +272,9 @@ void
|
|
|
00db10 |
free(base)
|
|
|
00db10 |
void *base;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register header_t h;
|
|
|
00db10 |
- register free_list_t fl;
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ header_t h;
|
|
|
00db10 |
+ free_list_t fl;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
if (base == 0)
|
|
|
00db10 |
return;
|
|
|
00db10 |
@@ -322,9 +322,9 @@ realloc(old_base, new_size)
|
|
|
00db10 |
void *old_base;
|
|
|
00db10 |
size_t new_size;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register header_t h;
|
|
|
00db10 |
- register free_list_t fl;
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ header_t h;
|
|
|
00db10 |
+ free_list_t fl;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
unsigned int old_size;
|
|
|
00db10 |
char *new_base;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -382,10 +382,10 @@ realloc(old_base, new_size)
|
|
|
00db10 |
void
|
|
|
00db10 |
print_malloc_free_list()
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i, size;
|
|
|
00db10 |
- register free_list_t fl;
|
|
|
00db10 |
- register int n;
|
|
|
00db10 |
- register header_t h;
|
|
|
00db10 |
+ int i, size;
|
|
|
00db10 |
+ free_list_t fl;
|
|
|
00db10 |
+ int n;
|
|
|
00db10 |
+ header_t h;
|
|
|
00db10 |
int total_used = 0;
|
|
|
00db10 |
int total_free = 0;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -416,7 +416,7 @@ malloc_fork_prepare(void)
|
|
|
00db10 |
* malloc critical section.
|
|
|
00db10 |
*/
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
for (i = 0; i < NBUCKETS; i++) {
|
|
|
00db10 |
spin_lock(&malloc_free_list[i].lock);
|
|
|
00db10 |
@@ -429,7 +429,7 @@ malloc_fork_parent(void)
|
|
|
00db10 |
* Called in the parent process after a fork() to resume normal operation.
|
|
|
00db10 |
*/
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
for (i = NBUCKETS-1; i >= 0; i--) {
|
|
|
00db10 |
spin_unlock(&malloc_free_list[i].lock);
|
|
|
00db10 |
@@ -442,7 +442,7 @@ malloc_fork_child(void)
|
|
|
00db10 |
* Called in the child process after a fork() to resume normal operation.
|
|
|
00db10 |
*/
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
for (i = NBUCKETS-1; i >= 0; i--) {
|
|
|
00db10 |
spin_unlock(&malloc_free_list[i].lock);
|
|
|
00db10 |
diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h
|
|
|
00db10 |
index c14f069668810930..0e9db1a226f4df95 100644
|
|
|
00db10 |
--- a/include/rpc/auth_des.h
|
|
|
00db10 |
+++ b/include/rpc/auth_des.h
|
|
|
00db10 |
@@ -7,12 +7,12 @@ libc_hidden_proto (getsecretkey)
|
|
|
00db10 |
libc_hidden_proto (rtime)
|
|
|
00db10 |
|
|
|
00db10 |
extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred);
|
|
|
00db10 |
-extern bool_t xdr_authdes_verf (register XDR *xdrs,
|
|
|
00db10 |
- register struct authdes_verf *verf);
|
|
|
00db10 |
+extern bool_t xdr_authdes_verf (XDR *xdrs,
|
|
|
00db10 |
+ struct authdes_verf *verf);
|
|
|
00db10 |
struct svc_req;
|
|
|
00db10 |
struct rpc_msg;
|
|
|
00db10 |
-extern enum auth_stat _svcauth_des (register struct svc_req *rqst,
|
|
|
00db10 |
- register struct rpc_msg *msg);
|
|
|
00db10 |
+extern enum auth_stat _svcauth_des (struct svc_req *rqst,
|
|
|
00db10 |
+ struct rpc_msg *msg);
|
|
|
00db10 |
|
|
|
00db10 |
|
|
|
00db10 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
|
00db10 |
diff --git a/inet/inet_lnaof.c b/inet/inet_lnaof.c
|
|
|
00db10 |
index 0e115a4420920225..c993c8b8471f4215 100644
|
|
|
00db10 |
--- a/inet/inet_lnaof.c
|
|
|
00db10 |
+++ b/inet/inet_lnaof.c
|
|
|
00db10 |
@@ -44,7 +44,7 @@ in_addr_t
|
|
|
00db10 |
inet_lnaof(in)
|
|
|
00db10 |
struct in_addr in;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register u_int32_t i = ntohl(in.s_addr);
|
|
|
00db10 |
+ u_int32_t i = ntohl(in.s_addr);
|
|
|
00db10 |
|
|
|
00db10 |
if (IN_CLASSA(i))
|
|
|
00db10 |
return ((i)&IN_CLASSA_HOST);
|
|
|
00db10 |
diff --git a/inet/inet_net.c b/inet/inet_net.c
|
|
|
00db10 |
index d58f1ae8e3d89bf5..68e232f3d3dc1e1d 100644
|
|
|
00db10 |
--- a/inet/inet_net.c
|
|
|
00db10 |
+++ b/inet/inet_net.c
|
|
|
00db10 |
@@ -43,10 +43,10 @@ static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93";
|
|
|
00db10 |
*/
|
|
|
00db10 |
u_int32_t
|
|
|
00db10 |
inet_network(cp)
|
|
|
00db10 |
- register const char *cp;
|
|
|
00db10 |
+ const char *cp;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register u_int32_t val, base, n, i;
|
|
|
00db10 |
- register char c;
|
|
|
00db10 |
+ u_int32_t val, base, n, i;
|
|
|
00db10 |
+ char c;
|
|
|
00db10 |
u_int32_t parts[4], *pp = parts;
|
|
|
00db10 |
int digit;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/inet/inet_netof.c b/inet/inet_netof.c
|
|
|
00db10 |
index e49177a0f4b79bbf..9b0aed992e9ba65f 100644
|
|
|
00db10 |
--- a/inet/inet_netof.c
|
|
|
00db10 |
+++ b/inet/inet_netof.c
|
|
|
00db10 |
@@ -43,7 +43,7 @@ in_addr_t
|
|
|
00db10 |
inet_netof(in)
|
|
|
00db10 |
struct in_addr in;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register u_int32_t i = ntohl(in.s_addr);
|
|
|
00db10 |
+ u_int32_t i = ntohl(in.s_addr);
|
|
|
00db10 |
|
|
|
00db10 |
if (IN_CLASSA(i))
|
|
|
00db10 |
return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);
|
|
|
00db10 |
diff --git a/inet/rcmd.c b/inet/rcmd.c
|
|
|
00db10 |
index af4fad34c95e9af7..7da79b0730d9ad3a 100644
|
|
|
00db10 |
--- a/inet/rcmd.c
|
|
|
00db10 |
+++ b/inet/rcmd.c
|
|
|
00db10 |
@@ -769,8 +769,8 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
|
|
|
00db10 |
size_t ralen;
|
|
|
00db10 |
const char *luser, *ruser, *rhost;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *user;
|
|
|
00db10 |
- register char *p;
|
|
|
00db10 |
+ const char *user;
|
|
|
00db10 |
+ char *p;
|
|
|
00db10 |
int hcheck, ucheck;
|
|
|
00db10 |
char *buf = NULL;
|
|
|
00db10 |
size_t bufsize = 0;
|
|
|
00db10 |
diff --git a/io/fts.c b/io/fts.c
|
|
|
00db10 |
index 5ba202b8aa8b6669..c9c054d6d36ab20f 100644
|
|
|
00db10 |
--- a/io/fts.c
|
|
|
00db10 |
+++ b/io/fts.c
|
|
|
00db10 |
@@ -87,12 +87,12 @@ static int fts_safe_changedir (FTS *, FTSENT *, int, const char *)
|
|
|
00db10 |
FTS *
|
|
|
00db10 |
fts_open(argv, options, compar)
|
|
|
00db10 |
char * const *argv;
|
|
|
00db10 |
- register int options;
|
|
|
00db10 |
+ int options;
|
|
|
00db10 |
int (*compar) (const FTSENT **, const FTSENT **);
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTS *sp;
|
|
|
00db10 |
- register FTSENT *p, *root;
|
|
|
00db10 |
- register int nitems;
|
|
|
00db10 |
+ FTS *sp;
|
|
|
00db10 |
+ FTSENT *p, *root;
|
|
|
00db10 |
+ int nitems;
|
|
|
00db10 |
FTSENT *parent = NULL;
|
|
|
00db10 |
FTSENT *tmp;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -204,10 +204,10 @@ static void
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
fts_load(sp, p)
|
|
|
00db10 |
FTS *sp;
|
|
|
00db10 |
- register FTSENT *p;
|
|
|
00db10 |
+ FTSENT *p;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int len;
|
|
|
00db10 |
- register char *cp;
|
|
|
00db10 |
+ int len;
|
|
|
00db10 |
+ char *cp;
|
|
|
00db10 |
|
|
|
00db10 |
/*
|
|
|
00db10 |
* Load the stream structure for the next traversal. Since we don't
|
|
|
00db10 |
@@ -231,7 +231,7 @@ int
|
|
|
00db10 |
fts_close(sp)
|
|
|
00db10 |
FTS *sp;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *freep, *p;
|
|
|
00db10 |
+ FTSENT *freep, *p;
|
|
|
00db10 |
int saved_errno;
|
|
|
00db10 |
|
|
|
00db10 |
/*
|
|
|
00db10 |
@@ -283,11 +283,11 @@ fts_close(sp)
|
|
|
00db10 |
|
|
|
00db10 |
FTSENT *
|
|
|
00db10 |
fts_read(sp)
|
|
|
00db10 |
- register FTS *sp;
|
|
|
00db10 |
+ FTS *sp;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *p, *tmp;
|
|
|
00db10 |
- register int instr;
|
|
|
00db10 |
- register char *t;
|
|
|
00db10 |
+ FTSENT *p, *tmp;
|
|
|
00db10 |
+ int instr;
|
|
|
00db10 |
+ char *t;
|
|
|
00db10 |
int saved_errno;
|
|
|
00db10 |
|
|
|
00db10 |
/* If finished or unrecoverable error, return NULL. */
|
|
|
00db10 |
@@ -495,10 +495,10 @@ fts_set(sp, p, instr)
|
|
|
00db10 |
|
|
|
00db10 |
FTSENT *
|
|
|
00db10 |
fts_children(sp, instr)
|
|
|
00db10 |
- register FTS *sp;
|
|
|
00db10 |
+ FTS *sp;
|
|
|
00db10 |
int instr;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *p;
|
|
|
00db10 |
+ FTSENT *p;
|
|
|
00db10 |
int fd;
|
|
|
00db10 |
|
|
|
00db10 |
if (instr != 0 && instr != FTS_NAMEONLY) {
|
|
|
00db10 |
@@ -578,12 +578,12 @@ fts_children(sp, instr)
|
|
|
00db10 |
static FTSENT *
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
fts_build(sp, type)
|
|
|
00db10 |
- register FTS *sp;
|
|
|
00db10 |
+ FTS *sp;
|
|
|
00db10 |
int type;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct dirent *dp;
|
|
|
00db10 |
- register FTSENT *p, *head;
|
|
|
00db10 |
- register int nitems;
|
|
|
00db10 |
+ struct dirent *dp;
|
|
|
00db10 |
+ FTSENT *p, *head;
|
|
|
00db10 |
+ int nitems;
|
|
|
00db10 |
FTSENT *cur, *tail;
|
|
|
00db10 |
DIR *dirp;
|
|
|
00db10 |
void *oldaddr;
|
|
|
00db10 |
@@ -848,12 +848,12 @@ static u_short
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
fts_stat(sp, p, follow)
|
|
|
00db10 |
FTS *sp;
|
|
|
00db10 |
- register FTSENT *p;
|
|
|
00db10 |
+ FTSENT *p;
|
|
|
00db10 |
int follow;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *t;
|
|
|
00db10 |
- register dev_t dev;
|
|
|
00db10 |
- register ino_t ino;
|
|
|
00db10 |
+ FTSENT *t;
|
|
|
00db10 |
+ dev_t dev;
|
|
|
00db10 |
+ ino_t ino;
|
|
|
00db10 |
struct stat *sbp, sb;
|
|
|
00db10 |
int saved_errno;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -933,9 +933,9 @@ internal_function
|
|
|
00db10 |
fts_sort(sp, head, nitems)
|
|
|
00db10 |
FTS *sp;
|
|
|
00db10 |
FTSENT *head;
|
|
|
00db10 |
- register int nitems;
|
|
|
00db10 |
+ int nitems;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT **ap, *p;
|
|
|
00db10 |
+ FTSENT **ap, *p;
|
|
|
00db10 |
|
|
|
00db10 |
/*
|
|
|
00db10 |
* Construct an array of pointers to the structures and call qsort(3).
|
|
|
00db10 |
@@ -973,7 +973,7 @@ fts_alloc(sp, name, namelen)
|
|
|
00db10 |
const char *name;
|
|
|
00db10 |
size_t namelen;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *p;
|
|
|
00db10 |
+ FTSENT *p;
|
|
|
00db10 |
size_t len;
|
|
|
00db10 |
|
|
|
00db10 |
/*
|
|
|
00db10 |
@@ -1009,9 +1009,9 @@ fts_alloc(sp, name, namelen)
|
|
|
00db10 |
static void
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
fts_lfree(head)
|
|
|
00db10 |
- register FTSENT *head;
|
|
|
00db10 |
+ FTSENT *head;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register FTSENT *p;
|
|
|
00db10 |
+ FTSENT *p;
|
|
|
00db10 |
|
|
|
00db10 |
/* Free a linked list of structures. */
|
|
|
00db10 |
while ((p = head)) {
|
|
|
00db10 |
diff --git a/libio/fileops.c b/libio/fileops.c
|
|
|
00db10 |
index ff5941bd2f20b7de..ae56437168efc524 100644
|
|
|
00db10 |
--- a/libio/fileops.c
|
|
|
00db10 |
+++ b/libio/fileops.c
|
|
|
00db10 |
@@ -1327,7 +1327,7 @@ _IO_new_file_xsputn (f, data, n)
|
|
|
00db10 |
const void *data;
|
|
|
00db10 |
_IO_size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *s = (const char *) data;
|
|
|
00db10 |
+ const char *s = (const char *) data;
|
|
|
00db10 |
_IO_size_t to_do = n;
|
|
|
00db10 |
int must_flush = 0;
|
|
|
00db10 |
_IO_size_t count = 0;
|
|
|
00db10 |
@@ -1344,7 +1344,7 @@ _IO_new_file_xsputn (f, data, n)
|
|
|
00db10 |
count = f->_IO_buf_end - f->_IO_write_ptr;
|
|
|
00db10 |
if (count >= n)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *p;
|
|
|
00db10 |
+ const char *p;
|
|
|
00db10 |
for (p = s + n; p > s; )
|
|
|
00db10 |
{
|
|
|
00db10 |
if (*--p == '\n')
|
|
|
00db10 |
@@ -1410,9 +1410,9 @@ _IO_file_xsgetn (fp, data, n)
|
|
|
00db10 |
void *data;
|
|
|
00db10 |
_IO_size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register _IO_size_t want, have;
|
|
|
00db10 |
- register _IO_ssize_t count;
|
|
|
00db10 |
- register char *s = data;
|
|
|
00db10 |
+ _IO_size_t want, have;
|
|
|
00db10 |
+ _IO_ssize_t count;
|
|
|
00db10 |
+ char *s = data;
|
|
|
00db10 |
|
|
|
00db10 |
want = n;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -1512,9 +1512,9 @@ _IO_file_xsgetn_mmap (fp, data, n)
|
|
|
00db10 |
void *data;
|
|
|
00db10 |
_IO_size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register _IO_size_t have;
|
|
|
00db10 |
+ _IO_size_t have;
|
|
|
00db10 |
char *read_ptr = fp->_IO_read_ptr;
|
|
|
00db10 |
- register char *s = (char *) data;
|
|
|
00db10 |
+ char *s = (char *) data;
|
|
|
00db10 |
|
|
|
00db10 |
have = fp->_IO_read_end - fp->_IO_read_ptr;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/libio/iofopncook.c b/libio/iofopncook.c
|
|
|
00db10 |
index b1c0d7f6ccc4db15..8240601d4eec468b 100644
|
|
|
00db10 |
--- a/libio/iofopncook.c
|
|
|
00db10 |
+++ b/libio/iofopncook.c
|
|
|
00db10 |
@@ -30,9 +30,9 @@
|
|
|
00db10 |
#include <shlib-compat.h>
|
|
|
00db10 |
|
|
|
00db10 |
/* Prototyped for local functions. */
|
|
|
00db10 |
-static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
|
|
|
00db10 |
+static _IO_ssize_t _IO_cookie_read (_IO_FILE* fp, void* buf,
|
|
|
00db10 |
_IO_ssize_t size);
|
|
|
00db10 |
-static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
|
|
|
00db10 |
+static _IO_ssize_t _IO_cookie_write (_IO_FILE* fp,
|
|
|
00db10 |
const void* buf, _IO_ssize_t size);
|
|
|
00db10 |
static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
|
|
|
00db10 |
static _IO_off64_t _IO_cookie_seekoff (_IO_FILE *fp, _IO_off64_t offset,
|
|
|
00db10 |
diff --git a/libio/oldfileops.c b/libio/oldfileops.c
|
|
|
00db10 |
index 7060ea8c346d15cc..0d778fa253822171 100644
|
|
|
00db10 |
--- a/libio/oldfileops.c
|
|
|
00db10 |
+++ b/libio/oldfileops.c
|
|
|
00db10 |
@@ -697,7 +697,7 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
00db10 |
const void *data;
|
|
|
00db10 |
_IO_size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *s = (char *) data;
|
|
|
00db10 |
+ const char *s = (char *) data;
|
|
|
00db10 |
_IO_size_t to_do = n;
|
|
|
00db10 |
int must_flush = 0;
|
|
|
00db10 |
_IO_size_t count = 0;
|
|
|
00db10 |
@@ -714,7 +714,7 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
00db10 |
count = f->_IO_buf_end - f->_IO_write_ptr;
|
|
|
00db10 |
if (count >= n)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *p;
|
|
|
00db10 |
+ const char *p;
|
|
|
00db10 |
for (p = s + n; p > s; )
|
|
|
00db10 |
{
|
|
|
00db10 |
if (*--p == '\n')
|
|
|
00db10 |
@@ -746,8 +746,8 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
00db10 |
}
|
|
|
00db10 |
else
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *p = f->_IO_write_ptr;
|
|
|
00db10 |
- register int i = (int) count;
|
|
|
00db10 |
+ char *p = f->_IO_write_ptr;
|
|
|
00db10 |
+ int i = (int) count;
|
|
|
00db10 |
while (--i >= 0)
|
|
|
00db10 |
*p++ = *s++;
|
|
|
00db10 |
f->_IO_write_ptr = p;
|
|
|
00db10 |
diff --git a/libio/wfileops.c b/libio/wfileops.c
|
|
|
00db10 |
index 1fe3439d21152fce..5ed1a922ae6ccbd0 100644
|
|
|
00db10 |
--- a/libio/wfileops.c
|
|
|
00db10 |
+++ b/libio/wfileops.c
|
|
|
00db10 |
@@ -966,7 +966,7 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
00db10 |
const void *data;
|
|
|
00db10 |
_IO_size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const wchar_t *s = (const wchar_t *) data;
|
|
|
00db10 |
+ const wchar_t *s = (const wchar_t *) data;
|
|
|
00db10 |
_IO_size_t to_do = n;
|
|
|
00db10 |
int must_flush = 0;
|
|
|
00db10 |
_IO_size_t count;
|
|
|
00db10 |
@@ -984,7 +984,7 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
00db10 |
count = f->_wide_data->_IO_buf_end - f->_wide_data->_IO_write_ptr;
|
|
|
00db10 |
if (count >= n)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const wchar_t *p;
|
|
|
00db10 |
+ const wchar_t *p;
|
|
|
00db10 |
for (p = s + n; p > s; )
|
|
|
00db10 |
{
|
|
|
00db10 |
if (*--p == L'\n')
|
|
|
00db10 |
@@ -1014,8 +1014,8 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
00db10 |
}
|
|
|
00db10 |
else
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t *p = f->_wide_data->_IO_write_ptr;
|
|
|
00db10 |
- register int i = (int) count;
|
|
|
00db10 |
+ wchar_t *p = f->_wide_data->_IO_write_ptr;
|
|
|
00db10 |
+ int i = (int) count;
|
|
|
00db10 |
while (--i >= 0)
|
|
|
00db10 |
*p++ = *s++;
|
|
|
00db10 |
f->_wide_data->_IO_write_ptr = p;
|
|
|
00db10 |
diff --git a/mach/msgserver.c b/mach/msgserver.c
|
|
|
00db10 |
index 915a08868a34378d..b087e7263511b554 100644
|
|
|
00db10 |
--- a/mach/msgserver.c
|
|
|
00db10 |
+++ b/mach/msgserver.c
|
|
|
00db10 |
@@ -78,8 +78,8 @@ __mach_msg_server_timeout (boolean_t (*demux) (mach_msg_header_t *request,
|
|
|
00db10 |
mach_msg_option_t option,
|
|
|
00db10 |
mach_msg_timeout_t timeout)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register mig_reply_header_t *request, *reply;
|
|
|
00db10 |
- register mach_msg_return_t mr;
|
|
|
00db10 |
+ mig_reply_header_t *request, *reply;
|
|
|
00db10 |
+ mach_msg_return_t mr;
|
|
|
00db10 |
|
|
|
00db10 |
if (max_size == 0)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/malloc/obstack.c b/malloc/obstack.c
|
|
|
00db10 |
index 5786da0aa4af81da..e3ce53f987727eca 100644
|
|
|
00db10 |
--- a/malloc/obstack.c
|
|
|
00db10 |
+++ b/malloc/obstack.c
|
|
|
00db10 |
@@ -155,7 +155,7 @@ _obstack_begin (struct obstack *h,
|
|
|
00db10 |
void *(*chunkfun) (long),
|
|
|
00db10 |
void (*freefun) (void *))
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
00db10 |
+ struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
00db10 |
|
|
|
00db10 |
if (alignment == 0)
|
|
|
00db10 |
alignment = DEFAULT_ALIGNMENT;
|
|
|
00db10 |
@@ -202,7 +202,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
|
|
|
00db10 |
void (*freefun) (void *, void *),
|
|
|
00db10 |
void *arg)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
00db10 |
+ struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
00db10 |
|
|
|
00db10 |
if (alignment == 0)
|
|
|
00db10 |
alignment = DEFAULT_ALIGNMENT;
|
|
|
00db10 |
@@ -253,11 +253,11 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
|
|
|
00db10 |
void
|
|
|
00db10 |
_obstack_newchunk (struct obstack *h, int length)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk *old_chunk = h->chunk;
|
|
|
00db10 |
- register struct _obstack_chunk *new_chunk;
|
|
|
00db10 |
- register long new_size;
|
|
|
00db10 |
- register long obj_size = h->next_free - h->object_base;
|
|
|
00db10 |
- register long i;
|
|
|
00db10 |
+ struct _obstack_chunk *old_chunk = h->chunk;
|
|
|
00db10 |
+ struct _obstack_chunk *new_chunk;
|
|
|
00db10 |
+ long new_size;
|
|
|
00db10 |
+ long obj_size = h->next_free - h->object_base;
|
|
|
00db10 |
+ long i;
|
|
|
00db10 |
long already;
|
|
|
00db10 |
char *object_base;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -330,8 +330,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj);
|
|
|
00db10 |
int
|
|
|
00db10 |
_obstack_allocated_p (struct obstack *h, void *obj)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
00db10 |
- register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
00db10 |
+ struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
00db10 |
+ struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
00db10 |
|
|
|
00db10 |
lp = (h)->chunk;
|
|
|
00db10 |
/* We use >= rather than > since the object cannot be exactly at
|
|
|
00db10 |
@@ -353,8 +353,8 @@ _obstack_allocated_p (struct obstack *h, void *obj)
|
|
|
00db10 |
void
|
|
|
00db10 |
obstack_free (struct obstack *h, void *obj)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
00db10 |
- register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
00db10 |
+ struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
00db10 |
+ struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
00db10 |
|
|
|
00db10 |
lp = h->chunk;
|
|
|
00db10 |
/* We use >= because there cannot be an object at the beginning of a chunk.
|
|
|
00db10 |
@@ -389,8 +389,8 @@ strong_alias (obstack_free, _obstack_free)
|
|
|
00db10 |
int
|
|
|
00db10 |
_obstack_memory_used (struct obstack *h)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct _obstack_chunk* lp;
|
|
|
00db10 |
- register int nbytes = 0;
|
|
|
00db10 |
+ struct _obstack_chunk* lp;
|
|
|
00db10 |
+ int nbytes = 0;
|
|
|
00db10 |
|
|
|
00db10 |
for (lp = h->chunk; lp != 0; lp = lp->prev)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/misc/getttyent.c b/misc/getttyent.c
|
|
|
00db10 |
index b1e6376fb66dc260..18944e2b99150aea 100644
|
|
|
00db10 |
--- a/misc/getttyent.c
|
|
|
00db10 |
+++ b/misc/getttyent.c
|
|
|
00db10 |
@@ -47,7 +47,7 @@ struct ttyent *
|
|
|
00db10 |
getttynam(tty)
|
|
|
00db10 |
const char *tty;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct ttyent *t;
|
|
|
00db10 |
+ struct ttyent *t;
|
|
|
00db10 |
|
|
|
00db10 |
setttyent();
|
|
|
00db10 |
while ((t = getttyent()))
|
|
|
00db10 |
@@ -64,8 +64,8 @@ struct ttyent *
|
|
|
00db10 |
getttyent()
|
|
|
00db10 |
{
|
|
|
00db10 |
static struct ttyent tty;
|
|
|
00db10 |
- register int c;
|
|
|
00db10 |
- register char *p;
|
|
|
00db10 |
+ int c;
|
|
|
00db10 |
+ char *p;
|
|
|
00db10 |
#define MAXLINELENGTH 100
|
|
|
00db10 |
static char line[MAXLINELENGTH];
|
|
|
00db10 |
|
|
|
00db10 |
@@ -142,10 +142,10 @@ libc_hidden_def (getttyent)
|
|
|
00db10 |
static char *
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
skip(p)
|
|
|
00db10 |
- register char *p;
|
|
|
00db10 |
+ char *p;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *t;
|
|
|
00db10 |
- register int c, q;
|
|
|
00db10 |
+ char *t;
|
|
|
00db10 |
+ int c, q;
|
|
|
00db10 |
|
|
|
00db10 |
for (q = 0, t = p; (c = *p) != '\0'; p++) {
|
|
|
00db10 |
if (c == '"') {
|
|
|
00db10 |
@@ -177,7 +177,7 @@ skip(p)
|
|
|
00db10 |
static char *
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
value(p)
|
|
|
00db10 |
- register char *p;
|
|
|
00db10 |
+ char *p;
|
|
|
00db10 |
{
|
|
|
00db10 |
|
|
|
00db10 |
return ((p = index(p, '=')) ? ++p : NULL);
|
|
|
00db10 |
diff --git a/misc/getusershell.c b/misc/getusershell.c
|
|
|
00db10 |
index 2e8d97e65c77ec4a..677377c3f7fb9081 100644
|
|
|
00db10 |
--- a/misc/getusershell.c
|
|
|
00db10 |
+++ b/misc/getusershell.c
|
|
|
00db10 |
@@ -95,8 +95,8 @@ setusershell()
|
|
|
00db10 |
static char **
|
|
|
00db10 |
initshells()
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char **sp, *cp;
|
|
|
00db10 |
- register FILE *fp;
|
|
|
00db10 |
+ char **sp, *cp;
|
|
|
00db10 |
+ FILE *fp;
|
|
|
00db10 |
struct stat64 statb;
|
|
|
00db10 |
size_t flen;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/misc/syslog.c b/misc/syslog.c
|
|
|
00db10 |
index 748361fc8c44b81f..4976e89b6ea56364 100644
|
|
|
00db10 |
--- a/misc/syslog.c
|
|
|
00db10 |
+++ b/misc/syslog.c
|
|
|
00db10 |
@@ -229,7 +229,7 @@ __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap)
|
|
|
00db10 |
/* Output to stderr if requested. */
|
|
|
00db10 |
if (LogStat & LOG_PERROR) {
|
|
|
00db10 |
struct iovec iov[2];
|
|
|
00db10 |
- register struct iovec *v = iov;
|
|
|
00db10 |
+ struct iovec *v = iov;
|
|
|
00db10 |
|
|
|
00db10 |
v->iov_base = buf + msgoff;
|
|
|
00db10 |
v->iov_len = bufsize - msgoff;
|
|
|
00db10 |
diff --git a/misc/ttyslot.c b/misc/ttyslot.c
|
|
|
00db10 |
index 5872f23fd0b6ffcb..75ca6a2d42d2c79d 100644
|
|
|
00db10 |
--- a/misc/ttyslot.c
|
|
|
00db10 |
+++ b/misc/ttyslot.c
|
|
|
00db10 |
@@ -40,9 +40,9 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
|
|
|
00db10 |
int
|
|
|
00db10 |
ttyslot()
|
|
|
00db10 |
{
|
|
|
00db10 |
- register struct ttyent *ttyp;
|
|
|
00db10 |
- register int slot;
|
|
|
00db10 |
- register char *p;
|
|
|
00db10 |
+ struct ttyent *ttyp;
|
|
|
00db10 |
+ int slot;
|
|
|
00db10 |
+ char *p;
|
|
|
00db10 |
int cnt;
|
|
|
00db10 |
size_t buflen = __sysconf (_SC_TTY_NAME_MAX) + 1;
|
|
|
00db10 |
char *name;
|
|
|
00db10 |
diff --git a/nis/nis_hash.c b/nis/nis_hash.c
|
|
|
00db10 |
index 19b744c73f7208c9..c36ed1d5cbf56457 100644
|
|
|
00db10 |
--- a/nis/nis_hash.c
|
|
|
00db10 |
+++ b/nis/nis_hash.c
|
|
|
00db10 |
@@ -29,11 +29,11 @@
|
|
|
00db10 |
* OZ's original sdbm hash
|
|
|
00db10 |
*/
|
|
|
00db10 |
uint32_t
|
|
|
00db10 |
-__nis_hash (const void *keyarg, register size_t len)
|
|
|
00db10 |
+__nis_hash (const void *keyarg, size_t len)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const u_char *key;
|
|
|
00db10 |
- register size_t loop;
|
|
|
00db10 |
- register uint32_t h;
|
|
|
00db10 |
+ const u_char *key;
|
|
|
00db10 |
+ size_t loop;
|
|
|
00db10 |
+ uint32_t h;
|
|
|
00db10 |
|
|
|
00db10 |
#define HASHC h = *key++ + 65599 * h
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/ports/sysdeps/ia64/bits/byteswap-16.h b/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
00db10 |
index 4a53ffaf6d7c5f92..8e71ac1a779bfca4 100644
|
|
|
00db10 |
--- a/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
00db10 |
+++ b/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
00db10 |
@@ -23,7 +23,7 @@
|
|
|
00db10 |
#if defined __GNUC__ && __GNUC__ >= 2
|
|
|
00db10 |
# define __bswap_16(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
00db10 |
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
00db10 |
if (__builtin_constant_p (x)) \
|
|
|
00db10 |
__v = __bswap_constant_16 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
diff --git a/ports/sysdeps/ia64/bits/byteswap.h b/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
00db10 |
index d363c3e1cf7ad2df..28646f11ae941606 100644
|
|
|
00db10 |
--- a/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
00db10 |
+++ b/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
00db10 |
@@ -38,7 +38,7 @@
|
|
|
00db10 |
#if defined __GNUC__ && __GNUC__ >= 2
|
|
|
00db10 |
# define __bswap_32(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
00db10 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
00db10 |
if (__builtin_constant_p (x)) \
|
|
|
00db10 |
__v = __bswap_constant_32 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
@@ -70,7 +70,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
00db10 |
|
|
|
00db10 |
# define __bswap_64(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned long int __v, __x = (x); \
|
|
|
00db10 |
+ ({ unsigned long int __v, __x = (x); \
|
|
|
00db10 |
if (__builtin_constant_p (x)) \
|
|
|
00db10 |
__v = __bswap_constant_64 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
|
|
|
00db10 |
index 89901f15b303f6ce..7ffa3a9944630a0c 100644
|
|
|
00db10 |
--- a/posix/fnmatch_loop.c
|
|
|
00db10 |
+++ b/posix/fnmatch_loop.c
|
|
|
00db10 |
@@ -46,8 +46,8 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
|
|
|
00db10 |
struct STRUCT *ends;
|
|
|
00db10 |
size_t alloca_used;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const CHAR *p = pattern, *n = string;
|
|
|
00db10 |
- register UCHAR c;
|
|
|
00db10 |
+ const CHAR *p = pattern, *n = string;
|
|
|
00db10 |
+ UCHAR c;
|
|
|
00db10 |
#ifdef _LIBC
|
|
|
00db10 |
# if WIDE_CHAR_VERSION
|
|
|
00db10 |
const char *collseq = (const char *)
|
|
|
00db10 |
@@ -236,7 +236,7 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
|
|
|
00db10 |
/* Nonzero if the sense of the character class is inverted. */
|
|
|
00db10 |
const CHAR *p_init = p;
|
|
|
00db10 |
const CHAR *n_init = n;
|
|
|
00db10 |
- register int not;
|
|
|
00db10 |
+ int not;
|
|
|
00db10 |
CHAR cold;
|
|
|
00db10 |
UCHAR fn;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/posix/getconf.c b/posix/getconf.c
|
|
|
00db10 |
index aa0dd86afbb46904..9cb8f29be28466ff 100644
|
|
|
00db10 |
--- a/posix/getconf.c
|
|
|
00db10 |
+++ b/posix/getconf.c
|
|
|
00db10 |
@@ -1043,7 +1043,7 @@ usage (void)
|
|
|
00db10 |
static void
|
|
|
00db10 |
print_all (const char *path)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const struct conf *c;
|
|
|
00db10 |
+ const struct conf *c;
|
|
|
00db10 |
size_t clen;
|
|
|
00db10 |
long int value;
|
|
|
00db10 |
char *cvalue;
|
|
|
00db10 |
@@ -1087,7 +1087,7 @@ print_all (const char *path)
|
|
|
00db10 |
int
|
|
|
00db10 |
main (int argc, char *argv[])
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const struct conf *c;
|
|
|
00db10 |
+ const struct conf *c;
|
|
|
00db10 |
|
|
|
00db10 |
/* Set locale. Do not set LC_ALL because the other categories must
|
|
|
00db10 |
not be affected (according to POSIX.2). */
|
|
|
00db10 |
diff --git a/posix/getopt.c b/posix/getopt.c
|
|
|
00db10 |
index 537c97741fb37aef..dc2a000487c16225 100644
|
|
|
00db10 |
--- a/posix/getopt.c
|
|
|
00db10 |
+++ b/posix/getopt.c
|
|
|
00db10 |
@@ -228,7 +228,7 @@ exchange (char **argv, struct _getopt_data *d)
|
|
|
00db10 |
{
|
|
|
00db10 |
/* Bottom segment is the short one. */
|
|
|
00db10 |
int len = middle - bottom;
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
/* Swap it with the top part of the top segment. */
|
|
|
00db10 |
for (i = 0; i < len; i++)
|
|
|
00db10 |
@@ -245,7 +245,7 @@ exchange (char **argv, struct _getopt_data *d)
|
|
|
00db10 |
{
|
|
|
00db10 |
/* Top segment is the short one. */
|
|
|
00db10 |
int len = top - middle;
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
/* Swap it with the bottom part of the bottom segment. */
|
|
|
00db10 |
for (i = 0; i < len; i++)
|
|
|
00db10 |
diff --git a/posix/glob.c b/posix/glob.c
|
|
|
00db10 |
index e09314712d68c1b8..8c7a80085128475a 100644
|
|
|
00db10 |
--- a/posix/glob.c
|
|
|
00db10 |
+++ b/posix/glob.c
|
|
|
00db10 |
@@ -1264,7 +1264,7 @@ libc_hidden_def (glob)
|
|
|
00db10 |
/* Free storage allocated in PGLOB by a previous `glob' call. */
|
|
|
00db10 |
void
|
|
|
00db10 |
globfree (pglob)
|
|
|
00db10 |
- register glob_t *pglob;
|
|
|
00db10 |
+ glob_t *pglob;
|
|
|
00db10 |
{
|
|
|
00db10 |
if (pglob->gl_pathv != NULL)
|
|
|
00db10 |
{
|
|
|
00db10 |
@@ -1304,7 +1304,7 @@ collated_compare (const void *a, const void *b)
|
|
|
00db10 |
static int
|
|
|
00db10 |
prefix_array (const char *dirname, char **array, size_t n)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t i;
|
|
|
00db10 |
+ size_t i;
|
|
|
00db10 |
size_t dirlen = strlen (dirname);
|
|
|
00db10 |
#if defined __MSDOS__ || defined WINDOWS32
|
|
|
00db10 |
int sep_char = '/';
|
|
|
00db10 |
@@ -1363,7 +1363,7 @@ __glob_pattern_type (pattern, quote)
|
|
|
00db10 |
const char *pattern;
|
|
|
00db10 |
int quote;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *p;
|
|
|
00db10 |
+ const char *p;
|
|
|
00db10 |
int ret = 0;
|
|
|
00db10 |
|
|
|
00db10 |
for (p = pattern; *p != '\0'; ++p)
|
|
|
00db10 |
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c
|
|
|
00db10 |
index 90ab807390114749..7ffc72955323a555 100644
|
|
|
00db10 |
--- a/stdio-common/printf_fp.c
|
|
|
00db10 |
+++ b/stdio-common/printf_fp.c
|
|
|
00db10 |
@@ -72,7 +72,7 @@
|
|
|
00db10 |
#define outchar(ch) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register const int outc = (ch); \
|
|
|
00db10 |
+ const int outc = (ch); \
|
|
|
00db10 |
if (putc (outc, fp) == EOF) \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
if (buffer_malloced) \
|
|
|
00db10 |
@@ -85,7 +85,7 @@
|
|
|
00db10 |
#define PRINT(ptr, wptr, len) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register size_t outlen = (len); \
|
|
|
00db10 |
+ size_t outlen = (len); \
|
|
|
00db10 |
if (len > 20) \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen) \
|
|
|
00db10 |
diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c
|
|
|
00db10 |
index 5d31f5f6204b612b..2310e02c8344997a 100644
|
|
|
00db10 |
--- a/stdio-common/printf_fphex.c
|
|
|
00db10 |
+++ b/stdio-common/printf_fphex.c
|
|
|
00db10 |
@@ -52,7 +52,7 @@
|
|
|
00db10 |
#define outchar(ch) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register const int outc = (ch); \
|
|
|
00db10 |
+ const int outc = (ch); \
|
|
|
00db10 |
if (putc (outc, fp) == EOF) \
|
|
|
00db10 |
return -1; \
|
|
|
00db10 |
++done; \
|
|
|
00db10 |
@@ -61,7 +61,7 @@
|
|
|
00db10 |
#define PRINT(ptr, wptr, len) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register size_t outlen = (len); \
|
|
|
00db10 |
+ size_t outlen = (len); \
|
|
|
00db10 |
if (wide) \
|
|
|
00db10 |
while (outlen-- > 0) \
|
|
|
00db10 |
outchar (*wptr++); \
|
|
|
00db10 |
diff --git a/stdio-common/printf_size.c b/stdio-common/printf_size.c
|
|
|
00db10 |
index 0cdfeee7f2e4f7bb..f5acf87eda7ddb42 100644
|
|
|
00db10 |
--- a/stdio-common/printf_size.c
|
|
|
00db10 |
+++ b/stdio-common/printf_size.c
|
|
|
00db10 |
@@ -42,7 +42,7 @@
|
|
|
00db10 |
#define outchar(ch) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register const int outc = (ch); \
|
|
|
00db10 |
+ const int outc = (ch); \
|
|
|
00db10 |
if (putc (outc, fp) == EOF) \
|
|
|
00db10 |
return -1; \
|
|
|
00db10 |
++done; \
|
|
|
00db10 |
@@ -51,7 +51,7 @@
|
|
|
00db10 |
#define PRINT(ptr, wptr, len) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register size_t outlen = (len); \
|
|
|
00db10 |
+ size_t outlen = (len); \
|
|
|
00db10 |
if (len > 20) \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen) \
|
|
|
00db10 |
diff --git a/stdio-common/test_rdwr.c b/stdio-common/test_rdwr.c
|
|
|
00db10 |
index 6fa1e1ce2e6e24c7..ce3ad5aefb8d8ea7 100644
|
|
|
00db10 |
--- a/stdio-common/test_rdwr.c
|
|
|
00db10 |
+++ b/stdio-common/test_rdwr.c
|
|
|
00db10 |
@@ -78,7 +78,7 @@ main (int argc, char **argv)
|
|
|
00db10 |
long int where = ftell (f);
|
|
|
00db10 |
if (where == (long int) replace_from)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t i;
|
|
|
00db10 |
+ size_t i;
|
|
|
00db10 |
for (i = replace_from; i < replace_to; ++i)
|
|
|
00db10 |
if (putc(replace[i], f) == EOF)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c
|
|
|
00db10 |
index 7704ddde39856221..5cb366dd48eef16a 100644
|
|
|
00db10 |
--- a/stdio-common/tfformat.c
|
|
|
00db10 |
+++ b/stdio-common/tfformat.c
|
|
|
00db10 |
@@ -4050,7 +4050,7 @@ sprint_double_type sprint_doubles[] =
|
|
|
00db10 |
int required_precision = 13;
|
|
|
00db10 |
|
|
|
00db10 |
static int
|
|
|
00db10 |
-matches (register char *result, register const char *desired)
|
|
|
00db10 |
+matches (char *result, const char *desired)
|
|
|
00db10 |
{
|
|
|
00db10 |
int digits_seen = 0;
|
|
|
00db10 |
for (;; result++, desired++) {
|
|
|
00db10 |
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
|
|
|
00db10 |
index 97805989f6db70bf..a52c8f8cb17eaf58 100644
|
|
|
00db10 |
--- a/stdio-common/vfprintf.c
|
|
|
00db10 |
+++ b/stdio-common/vfprintf.c
|
|
|
00db10 |
@@ -147,7 +147,7 @@
|
|
|
00db10 |
#define outchar(Ch) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register const INT_T outc = (Ch); \
|
|
|
00db10 |
+ const INT_T outc = (Ch); \
|
|
|
00db10 |
if (PUTC (outc, s) == EOF || done == INT_MAX) \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
done = -1; \
|
|
|
00db10 |
@@ -2075,7 +2075,7 @@ printf_unknown (FILE *s, const struct printf_info *info,
|
|
|
00db10 |
CHAR_T work_buffer[MAX (sizeof (info->width), sizeof (info->prec)) * 3];
|
|
|
00db10 |
CHAR_T *const workend
|
|
|
00db10 |
= &work_buffer[sizeof (work_buffer) / sizeof (CHAR_T)];
|
|
|
00db10 |
- register CHAR_T *w;
|
|
|
00db10 |
+ CHAR_T *w;
|
|
|
00db10 |
|
|
|
00db10 |
outchar (L_('%'));
|
|
|
00db10 |
|
|
|
00db10 |
@@ -2281,12 +2281,12 @@ static const struct _IO_jump_t _IO_helper_jumps libio_vtable =
|
|
|
00db10 |
|
|
|
00db10 |
static int
|
|
|
00db10 |
internal_function
|
|
|
00db10 |
-buffered_vfprintf (register _IO_FILE *s, const CHAR_T *format,
|
|
|
00db10 |
+buffered_vfprintf (_IO_FILE *s, const CHAR_T *format,
|
|
|
00db10 |
_IO_va_list args)
|
|
|
00db10 |
{
|
|
|
00db10 |
CHAR_T buf[_IO_BUFSIZ];
|
|
|
00db10 |
struct helper_file helper;
|
|
|
00db10 |
- register _IO_FILE *hp = (_IO_FILE *) &helper._f;
|
|
|
00db10 |
+ _IO_FILE *hp = (_IO_FILE *) &helper._f;
|
|
|
00db10 |
int result, to_flush;
|
|
|
00db10 |
|
|
|
00db10 |
/* Orient the stream. */
|
|
|
00db10 |
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
|
|
|
00db10 |
index d532bb54c31cdcb1..1db8487c1a133996 100644
|
|
|
00db10 |
--- a/stdio-common/vfscanf.c
|
|
|
00db10 |
+++ b/stdio-common/vfscanf.c
|
|
|
00db10 |
@@ -206,13 +206,13 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
|
|
|
00db10 |
#endif
|
|
|
00db10 |
{
|
|
|
00db10 |
va_list arg;
|
|
|
00db10 |
- register const CHAR_T *f = format;
|
|
|
00db10 |
- register UCHAR_T fc; /* Current character of the format. */
|
|
|
00db10 |
- register WINT_T done = 0; /* Assignments done. */
|
|
|
00db10 |
- register size_t read_in = 0; /* Chars read in. */
|
|
|
00db10 |
- register WINT_T c = 0; /* Last char read. */
|
|
|
00db10 |
- register int width; /* Maximum field width. */
|
|
|
00db10 |
- register int flags; /* Modifiers for current format element. */
|
|
|
00db10 |
+ const CHAR_T *f = format;
|
|
|
00db10 |
+ UCHAR_T fc; /* Current character of the format. */
|
|
|
00db10 |
+ WINT_T done = 0; /* Assignments done. */
|
|
|
00db10 |
+ size_t read_in = 0; /* Chars read in. */
|
|
|
00db10 |
+ WINT_T c = 0; /* Last char read. */
|
|
|
00db10 |
+ int width; /* Maximum field width. */
|
|
|
00db10 |
+ int flags; /* Modifiers for current format element. */
|
|
|
00db10 |
int errval = 0;
|
|
|
00db10 |
#ifndef COMPILE_WSCANF
|
|
|
00db10 |
__locale_t loc = _NL_CURRENT_LOCALE;
|
|
|
00db10 |
diff --git a/stdio-common/xbug.c b/stdio-common/xbug.c
|
|
|
00db10 |
index 76a8c547268d4f26..64ba314cbefec6e6 100644
|
|
|
00db10 |
--- a/stdio-common/xbug.c
|
|
|
00db10 |
+++ b/stdio-common/xbug.c
|
|
|
00db10 |
@@ -9,8 +9,8 @@ typedef struct _Buffer {
|
|
|
00db10 |
} Buffer;
|
|
|
00db10 |
|
|
|
00db10 |
void InitBuffer (Buffer *b);
|
|
|
00db10 |
-void AppendToBuffer (register Buffer *b, const char *str, register int len);
|
|
|
00db10 |
-void ReadFile (register Buffer *buffer, FILE *input);
|
|
|
00db10 |
+void AppendToBuffer (Buffer *b, const char *str, int len);
|
|
|
00db10 |
+void ReadFile (Buffer *buffer, FILE *input);
|
|
|
00db10 |
|
|
|
00db10 |
#define INIT_BUFFER_SIZE 10000
|
|
|
00db10 |
|
|
|
00db10 |
@@ -23,9 +23,9 @@ void InitBuffer(b)
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
void AppendToBuffer(b, str, len)
|
|
|
00db10 |
- register Buffer *b;
|
|
|
00db10 |
+ Buffer *b;
|
|
|
00db10 |
const char *str;
|
|
|
00db10 |
- register int len;
|
|
|
00db10 |
+ int len;
|
|
|
00db10 |
{
|
|
|
00db10 |
while (b->used + len > b->room) {
|
|
|
00db10 |
b->buff = (char *)realloc(b->buff, 2*b->room*(sizeof(char)));
|
|
|
00db10 |
@@ -36,11 +36,11 @@ void AppendToBuffer(b, str, len)
|
|
|
00db10 |
}
|
|
|
00db10 |
|
|
|
00db10 |
void ReadFile(buffer, input)
|
|
|
00db10 |
- register Buffer *buffer;
|
|
|
00db10 |
+ Buffer *buffer;
|
|
|
00db10 |
FILE *input;
|
|
|
00db10 |
{
|
|
|
00db10 |
char buf[BUFSIZ + 1];
|
|
|
00db10 |
- register int bytes;
|
|
|
00db10 |
+ int bytes;
|
|
|
00db10 |
|
|
|
00db10 |
buffer->used = 0;
|
|
|
00db10 |
while (!feof(input) && (bytes = fread(buf, 1, BUFSIZ, input)) > 0) {
|
|
|
00db10 |
diff --git a/stdlib/qsort.c b/stdlib/qsort.c
|
|
|
00db10 |
index 2fbe763bd52d2acf..8237bbb563748a5f 100644
|
|
|
00db10 |
--- a/stdlib/qsort.c
|
|
|
00db10 |
+++ b/stdlib/qsort.c
|
|
|
00db10 |
@@ -29,8 +29,8 @@
|
|
|
00db10 |
#define SWAP(a, b, size) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register size_t __size = (size); \
|
|
|
00db10 |
- register char *__a = (a), *__b = (b); \
|
|
|
00db10 |
+ size_t __size = (size); \
|
|
|
00db10 |
+ char *__a = (a), *__b = (b); \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
char __tmp = *__a; \
|
|
|
00db10 |
@@ -89,7 +89,7 @@ void
|
|
|
00db10 |
_quicksort (void *const pbase, size_t total_elems, size_t size,
|
|
|
00db10 |
__compar_d_fn_t cmp, void *arg)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *base_ptr = (char *) pbase;
|
|
|
00db10 |
+ char *base_ptr = (char *) pbase;
|
|
|
00db10 |
|
|
|
00db10 |
const size_t max_thresh = MAX_THRESH * size;
|
|
|
00db10 |
|
|
|
00db10 |
@@ -206,7 +206,7 @@ _quicksort (void *const pbase, size_t total_elems, size_t size,
|
|
|
00db10 |
char *const end_ptr = &base_ptr[size * (total_elems - 1)];
|
|
|
00db10 |
char *tmp_ptr = base_ptr;
|
|
|
00db10 |
char *thresh = min(end_ptr, base_ptr + max_thresh);
|
|
|
00db10 |
- register char *run_ptr;
|
|
|
00db10 |
+ char *run_ptr;
|
|
|
00db10 |
|
|
|
00db10 |
/* Find smallest element in first threshold and place it at the
|
|
|
00db10 |
array's beginning. This is the smallest array element,
|
|
|
00db10 |
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
|
|
|
00db10 |
index d1db356a81c0152b..6185c69243464623 100644
|
|
|
00db10 |
--- a/stdlib/setenv.c
|
|
|
00db10 |
+++ b/stdlib/setenv.c
|
|
|
00db10 |
@@ -112,8 +112,8 @@ __add_to_environ (name, value, combined, replace)
|
|
|
00db10 |
const char *combined;
|
|
|
00db10 |
int replace;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char **ep;
|
|
|
00db10 |
- register size_t size;
|
|
|
00db10 |
+ char **ep;
|
|
|
00db10 |
+ size_t size;
|
|
|
00db10 |
const size_t namelen = strlen (name);
|
|
|
00db10 |
const size_t vallen = value != NULL ? strlen (value) + 1 : 0;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
|
|
|
00db10 |
index 6360833c6b222f3c..2047203a4cee1111 100644
|
|
|
00db10 |
--- a/stdlib/strtod_l.c
|
|
|
00db10 |
+++ b/stdlib/strtod_l.c
|
|
|
00db10 |
@@ -1142,10 +1142,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
00db10 |
really integer digits or belong to the fractional part; i.e. we normalize
|
|
|
00db10 |
123e-2 to 1.23. */
|
|
|
00db10 |
{
|
|
|
00db10 |
- register intmax_t incr = (exponent < 0
|
|
|
00db10 |
- ? MAX (-(intmax_t) int_no, exponent)
|
|
|
00db10 |
- : MIN ((intmax_t) dig_no - (intmax_t) int_no,
|
|
|
00db10 |
- exponent));
|
|
|
00db10 |
+ intmax_t incr = (exponent < 0
|
|
|
00db10 |
+ ? MAX (-(intmax_t) int_no, exponent)
|
|
|
00db10 |
+ : MIN ((intmax_t) dig_no - (intmax_t) int_no, exponent));
|
|
|
00db10 |
int_no += incr;
|
|
|
00db10 |
exponent -= incr;
|
|
|
00db10 |
}
|
|
|
00db10 |
@@ -1466,7 +1465,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
00db10 |
#define got_limb \
|
|
|
00db10 |
if (bits == 0) \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register int cnt; \
|
|
|
00db10 |
+ int cnt; \
|
|
|
00db10 |
if (quot == 0) \
|
|
|
00db10 |
cnt = BITS_PER_MP_LIMB; \
|
|
|
00db10 |
else \
|
|
|
00db10 |
@@ -1618,7 +1617,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
00db10 |
if (numsize < densize)
|
|
|
00db10 |
{
|
|
|
00db10 |
mp_size_t empty = densize - numsize;
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
|
|
|
00db10 |
if (bits <= 0)
|
|
|
00db10 |
exponent -= empty * BITS_PER_MP_LIMB;
|
|
|
00db10 |
@@ -1646,7 +1645,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
00db10 |
used = MANT_DIG - bits;
|
|
|
00db10 |
if (used >= BITS_PER_MP_LIMB)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register int i;
|
|
|
00db10 |
+ int i;
|
|
|
00db10 |
(void) __mpn_lshift (&retval[used
|
|
|
00db10 |
/ BITS_PER_MP_LIMB],
|
|
|
00db10 |
retval,
|
|
|
00db10 |
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
|
|
|
00db10 |
index 784641b2920f1948..615190821e24b41a 100644
|
|
|
00db10 |
--- a/stdlib/strtol_l.c
|
|
|
00db10 |
+++ b/stdlib/strtol_l.c
|
|
|
00db10 |
@@ -231,11 +231,11 @@ INTERNAL (__strtol_l) (nptr, endptr, base, group, loc)
|
|
|
00db10 |
__locale_t loc;
|
|
|
00db10 |
{
|
|
|
00db10 |
int negative;
|
|
|
00db10 |
- register unsigned LONG int cutoff;
|
|
|
00db10 |
- register unsigned int cutlim;
|
|
|
00db10 |
- register unsigned LONG int i;
|
|
|
00db10 |
- register const STRING_TYPE *s;
|
|
|
00db10 |
- register UCHAR_TYPE c;
|
|
|
00db10 |
+ unsigned LONG int cutoff;
|
|
|
00db10 |
+ unsigned int cutlim;
|
|
|
00db10 |
+ unsigned LONG int i;
|
|
|
00db10 |
+ const STRING_TYPE *s;
|
|
|
00db10 |
+ UCHAR_TYPE c;
|
|
|
00db10 |
const STRING_TYPE *save, *end;
|
|
|
00db10 |
int overflow;
|
|
|
00db10 |
#ifndef USE_WIDE_CHAR
|
|
|
00db10 |
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c
|
|
|
00db10 |
index 670beb1e4df0e0dc..1cfb1da8963d7155 100644
|
|
|
00db10 |
--- a/stdlib/tst-strtod.c
|
|
|
00db10 |
+++ b/stdlib/tst-strtod.c
|
|
|
00db10 |
@@ -85,7 +85,7 @@ int
|
|
|
00db10 |
main (int argc, char ** argv)
|
|
|
00db10 |
{
|
|
|
00db10 |
char buf[100];
|
|
|
00db10 |
- register const struct ltest *lt;
|
|
|
00db10 |
+ const struct ltest *lt;
|
|
|
00db10 |
char *ep;
|
|
|
00db10 |
int status = 0;
|
|
|
00db10 |
int save_errno;
|
|
|
00db10 |
@@ -184,7 +184,7 @@ main (int argc, char ** argv)
|
|
|
00db10 |
static void
|
|
|
00db10 |
expand (dst, c)
|
|
|
00db10 |
char *dst;
|
|
|
00db10 |
- register int c;
|
|
|
00db10 |
+ int c;
|
|
|
00db10 |
{
|
|
|
00db10 |
if (isprint (c))
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/stdlib/tst-strtol.c b/stdlib/tst-strtol.c
|
|
|
00db10 |
index 99cd574107cfed1c..448102a2d9652ee3 100644
|
|
|
00db10 |
--- a/stdlib/tst-strtol.c
|
|
|
00db10 |
+++ b/stdlib/tst-strtol.c
|
|
|
00db10 |
@@ -537,14 +537,14 @@ static void expand (char *dst, int c);
|
|
|
00db10 |
static int
|
|
|
00db10 |
do_test (void)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const struct ltest *lt;
|
|
|
00db10 |
+ const struct ltest *lt;
|
|
|
00db10 |
char *ep;
|
|
|
00db10 |
int status = 0;
|
|
|
00db10 |
int save_errno;
|
|
|
00db10 |
|
|
|
00db10 |
for (lt = tests; lt->str != NULL; ++lt)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register long int l;
|
|
|
00db10 |
+ long int l;
|
|
|
00db10 |
|
|
|
00db10 |
errno = 0;
|
|
|
00db10 |
l = strtol (lt->str, &ep, lt->base);
|
|
|
00db10 |
@@ -577,7 +577,7 @@ do_test (void)
|
|
|
00db10 |
|
|
|
00db10 |
for (++lt; lt->str != NULL; lt++)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register unsigned long int ul;
|
|
|
00db10 |
+ unsigned long int ul;
|
|
|
00db10 |
|
|
|
00db10 |
errno = 0;
|
|
|
00db10 |
ul = strtoul (lt->str, &ep, lt->base);
|
|
|
00db10 |
diff --git a/stdlib/tst-strtoll.c b/stdlib/tst-strtoll.c
|
|
|
00db10 |
index b5ae230b4e0267b0..93f1a56a56956bdb 100644
|
|
|
00db10 |
--- a/stdlib/tst-strtoll.c
|
|
|
00db10 |
+++ b/stdlib/tst-strtoll.c
|
|
|
00db10 |
@@ -312,14 +312,14 @@ static void expand (char *dst, int c);
|
|
|
00db10 |
static int
|
|
|
00db10 |
do_test (void)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const struct ltest *lt;
|
|
|
00db10 |
+ const struct ltest *lt;
|
|
|
00db10 |
char *ep;
|
|
|
00db10 |
int status = 0;
|
|
|
00db10 |
int save_errno;
|
|
|
00db10 |
|
|
|
00db10 |
for (lt = tests; lt->str != NULL; ++lt)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register long long int l;
|
|
|
00db10 |
+ long long int l;
|
|
|
00db10 |
|
|
|
00db10 |
errno = 0;
|
|
|
00db10 |
l = strtoll (lt->str, &ep, lt->base);
|
|
|
00db10 |
@@ -352,7 +352,7 @@ do_test (void)
|
|
|
00db10 |
|
|
|
00db10 |
for (++lt; lt->str != NULL; lt++)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register unsigned long long int ul;
|
|
|
00db10 |
+ unsigned long long int ul;
|
|
|
00db10 |
|
|
|
00db10 |
errno = 0;
|
|
|
00db10 |
ul = strtoull (lt->str, &ep, lt->base);
|
|
|
00db10 |
diff --git a/string/bits/string2.h b/string/bits/string2.h
|
|
|
00db10 |
index acd0679e72b10fbf..c9bf59319e1c4892 100644
|
|
|
00db10 |
--- a/string/bits/string2.h
|
|
|
00db10 |
+++ b/string/bits/string2.h
|
|
|
00db10 |
@@ -839,7 +839,7 @@ __stpcpy_small (char *__dest,
|
|
|
00db10 |
# endif
|
|
|
00db10 |
|
|
|
00db10 |
# define __strcmp_cc(s1, s2, l) \
|
|
|
00db10 |
- (__extension__ ({ register int __result = \
|
|
|
00db10 |
+ (__extension__ ({ int __result = \
|
|
|
00db10 |
(((const unsigned char *) (const char *) (s1))[0] \
|
|
|
00db10 |
- ((const unsigned char *) (const char *)(s2))[0]); \
|
|
|
00db10 |
if (l > 0 && __result == 0) \
|
|
|
00db10 |
@@ -868,7 +868,7 @@ __stpcpy_small (char *__dest,
|
|
|
00db10 |
# define __strcmp_cg(s1, s2, l1) \
|
|
|
00db10 |
(__extension__ ({ const unsigned char *__s2 = \
|
|
|
00db10 |
(const unsigned char *) (const char *) (s2); \
|
|
|
00db10 |
- register int __result = \
|
|
|
00db10 |
+ int __result = \
|
|
|
00db10 |
(((const unsigned char *) (const char *) (s1))[0] \
|
|
|
00db10 |
- __s2[0]); \
|
|
|
00db10 |
if (l1 > 0 && __result == 0) \
|
|
|
00db10 |
@@ -969,7 +969,7 @@ __STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject);
|
|
|
00db10 |
__STRING_INLINE size_t
|
|
|
00db10 |
__strcspn_c1 (const char *__s, int __reject)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
while (__s[__result] != '\0' && __s[__result] != __reject)
|
|
|
00db10 |
++__result;
|
|
|
00db10 |
return __result;
|
|
|
00db10 |
@@ -980,7 +980,7 @@ __STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1,
|
|
|
00db10 |
__STRING_INLINE size_t
|
|
|
00db10 |
__strcspn_c2 (const char *__s, int __reject1, int __reject2)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
while (__s[__result] != '\0' && __s[__result] != __reject1
|
|
|
00db10 |
&& __s[__result] != __reject2)
|
|
|
00db10 |
++__result;
|
|
|
00db10 |
@@ -993,7 +993,7 @@ __STRING_INLINE size_t
|
|
|
00db10 |
__strcspn_c3 (const char *__s, int __reject1, int __reject2,
|
|
|
00db10 |
int __reject3)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
while (__s[__result] != '\0' && __s[__result] != __reject1
|
|
|
00db10 |
&& __s[__result] != __reject2 && __s[__result] != __reject3)
|
|
|
00db10 |
++__result;
|
|
|
00db10 |
@@ -1045,7 +1045,7 @@ __STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept);
|
|
|
00db10 |
__STRING_INLINE size_t
|
|
|
00db10 |
__strspn_c1 (const char *__s, int __accept)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
/* Please note that __accept never can be '\0'. */
|
|
|
00db10 |
while (__s[__result] == __accept)
|
|
|
00db10 |
++__result;
|
|
|
00db10 |
@@ -1057,7 +1057,7 @@ __STRING_INLINE size_t __strspn_c2 (const char *__s, int __accept1,
|
|
|
00db10 |
__STRING_INLINE size_t
|
|
|
00db10 |
__strspn_c2 (const char *__s, int __accept1, int __accept2)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
/* Please note that __accept1 and __accept2 never can be '\0'. */
|
|
|
00db10 |
while (__s[__result] == __accept1 || __s[__result] == __accept2)
|
|
|
00db10 |
++__result;
|
|
|
00db10 |
@@ -1069,7 +1069,7 @@ __STRING_INLINE size_t __strspn_c3 (const char *__s, int __accept1,
|
|
|
00db10 |
__STRING_INLINE size_t
|
|
|
00db10 |
__strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t __result = 0;
|
|
|
00db10 |
+ size_t __result = 0;
|
|
|
00db10 |
/* Please note that __accept1 to __accept3 never can be '\0'. */
|
|
|
00db10 |
while (__s[__result] == __accept1 || __s[__result] == __accept2
|
|
|
00db10 |
|| __s[__result] == __accept3)
|
|
|
00db10 |
@@ -1221,7 +1221,7 @@ __STRING_INLINE char *__strsep_1c (char **__s, char __reject);
|
|
|
00db10 |
__STRING_INLINE char *
|
|
|
00db10 |
__strsep_1c (char **__s, char __reject)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *__retval = *__s;
|
|
|
00db10 |
+ char *__retval = *__s;
|
|
|
00db10 |
if (__retval != NULL && (*__s = strchr (__retval, __reject)) != NULL)
|
|
|
00db10 |
*(*__s)++ = '\0';
|
|
|
00db10 |
return __retval;
|
|
|
00db10 |
@@ -1231,10 +1231,10 @@ __STRING_INLINE char *__strsep_2c (char **__s, char __reject1, char __reject2);
|
|
|
00db10 |
__STRING_INLINE char *
|
|
|
00db10 |
__strsep_2c (char **__s, char __reject1, char __reject2)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *__retval = *__s;
|
|
|
00db10 |
+ char *__retval = *__s;
|
|
|
00db10 |
if (__retval != NULL)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *__cp = __retval;
|
|
|
00db10 |
+ char *__cp = __retval;
|
|
|
00db10 |
while (1)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (*__cp == '\0')
|
|
|
00db10 |
@@ -1259,10 +1259,10 @@ __STRING_INLINE char *__strsep_3c (char **__s, char __reject1, char __reject2,
|
|
|
00db10 |
__STRING_INLINE char *
|
|
|
00db10 |
__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *__retval = *__s;
|
|
|
00db10 |
+ char *__retval = *__s;
|
|
|
00db10 |
if (__retval != NULL)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *__cp = __retval;
|
|
|
00db10 |
+ char *__cp = __retval;
|
|
|
00db10 |
while (1)
|
|
|
00db10 |
{
|
|
|
00db10 |
if (*__cp == '\0')
|
|
|
00db10 |
diff --git a/string/memccpy.c b/string/memccpy.c
|
|
|
00db10 |
index 78c13b60bd1b276c..64c3c0196845f102 100644
|
|
|
00db10 |
--- a/string/memccpy.c
|
|
|
00db10 |
+++ b/string/memccpy.c
|
|
|
00db10 |
@@ -34,10 +34,10 @@ __memccpy (dest, src, c, n)
|
|
|
00db10 |
int c;
|
|
|
00db10 |
size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *s = src;
|
|
|
00db10 |
- register char *d = dest;
|
|
|
00db10 |
- register const char x = c;
|
|
|
00db10 |
- register size_t i = n;
|
|
|
00db10 |
+ const char *s = src;
|
|
|
00db10 |
+ char *d = dest;
|
|
|
00db10 |
+ const char x = c;
|
|
|
00db10 |
+ size_t i = n;
|
|
|
00db10 |
|
|
|
00db10 |
while (i-- > 0)
|
|
|
00db10 |
if ((*d++ = *s++) == x)
|
|
|
00db10 |
diff --git a/string/stpcpy.c b/string/stpcpy.c
|
|
|
00db10 |
index 69d150f0c8557087..b74f6e2b489e1f18 100644
|
|
|
00db10 |
--- a/string/stpcpy.c
|
|
|
00db10 |
+++ b/string/stpcpy.c
|
|
|
00db10 |
@@ -40,8 +40,8 @@ __stpcpy (dest, src)
|
|
|
00db10 |
char *dest;
|
|
|
00db10 |
const char *src;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register char *d = dest;
|
|
|
00db10 |
- register const char *s = src;
|
|
|
00db10 |
+ char *d = dest;
|
|
|
00db10 |
+ const char *s = src;
|
|
|
00db10 |
|
|
|
00db10 |
do
|
|
|
00db10 |
*d++ = *s;
|
|
|
00db10 |
diff --git a/string/strcmp.c b/string/strcmp.c
|
|
|
00db10 |
index 5384db9b2031c161..47fd2827ad9d64cf 100644
|
|
|
00db10 |
--- a/string/strcmp.c
|
|
|
00db10 |
+++ b/string/strcmp.c
|
|
|
00db10 |
@@ -32,8 +32,8 @@ STRCMP (p1, p2)
|
|
|
00db10 |
const char *p1;
|
|
|
00db10 |
const char *p2;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const unsigned char *s1 = (const unsigned char *) p1;
|
|
|
00db10 |
- register const unsigned char *s2 = (const unsigned char *) p2;
|
|
|
00db10 |
+ const unsigned char *s1 = (const unsigned char *) p1;
|
|
|
00db10 |
+ const unsigned char *s2 = (const unsigned char *) p2;
|
|
|
00db10 |
unsigned char c1, c2;
|
|
|
00db10 |
|
|
|
00db10 |
do
|
|
|
00db10 |
diff --git a/string/strrchr.c b/string/strrchr.c
|
|
|
00db10 |
index 03f3957fe902c968..2cb833016235a1cf 100644
|
|
|
00db10 |
--- a/string/strrchr.c
|
|
|
00db10 |
+++ b/string/strrchr.c
|
|
|
00db10 |
@@ -27,7 +27,7 @@
|
|
|
00db10 |
char *
|
|
|
00db10 |
STRRCHR (const char *s, int c)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const char *found, *p;
|
|
|
00db10 |
+ const char *found, *p;
|
|
|
00db10 |
|
|
|
00db10 |
c = (unsigned char) c;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/sysdeps/generic/sigset-cvt-mask.h b/sysdeps/generic/sigset-cvt-mask.h
|
|
|
00db10 |
index 366a7719b30c9c01..d7084c0b539aab08 100644
|
|
|
00db10 |
--- a/sysdeps/generic/sigset-cvt-mask.h
|
|
|
00db10 |
+++ b/sysdeps/generic/sigset-cvt-mask.h
|
|
|
00db10 |
@@ -29,7 +29,7 @@ sigset_set_old_mask (sigset_t *set, int mask)
|
|
|
00db10 |
*set = (unsigned int) mask;
|
|
|
00db10 |
else
|
|
|
00db10 |
{
|
|
|
00db10 |
- register unsigned int __sig;
|
|
|
00db10 |
+ unsigned int __sig;
|
|
|
00db10 |
|
|
|
00db10 |
if (__sigemptyset (set) < 0)
|
|
|
00db10 |
return -1;
|
|
|
00db10 |
@@ -52,7 +52,7 @@ sigset_get_old_mask (const sigset_t *set)
|
|
|
00db10 |
else
|
|
|
00db10 |
{
|
|
|
00db10 |
unsigned int mask = 0;
|
|
|
00db10 |
- register unsigned int sig;
|
|
|
00db10 |
+ unsigned int sig;
|
|
|
00db10 |
|
|
|
00db10 |
for (sig = 1; sig < NSIG && sig <= sizeof (mask) * 8; sig++)
|
|
|
00db10 |
if (__sigismember (set, sig))
|
|
|
00db10 |
diff --git a/sysdeps/mach/hurd/getcwd.c b/sysdeps/mach/hurd/getcwd.c
|
|
|
00db10 |
index e4cea5c287d76fff..6945e4d1c5c12237 100644
|
|
|
00db10 |
--- a/sysdeps/mach/hurd/getcwd.c
|
|
|
00db10 |
+++ b/sysdeps/mach/hurd/getcwd.c
|
|
|
00db10 |
@@ -46,7 +46,7 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
|
|
|
00db10 |
mach_port_t rootid, thisid, rootdevid, thisdevid;
|
|
|
00db10 |
ino64_t rootino, thisino;
|
|
|
00db10 |
char *file_name;
|
|
|
00db10 |
- register char *file_namep;
|
|
|
00db10 |
+ char *file_namep;
|
|
|
00db10 |
file_t parent;
|
|
|
00db10 |
char *dirbuf = NULL;
|
|
|
00db10 |
unsigned int dirbufsize = 0;
|
|
|
00db10 |
diff --git a/sysdeps/mach/i386/sysdep.h b/sysdeps/mach/i386/sysdep.h
|
|
|
00db10 |
index bafa4d6c8c0639e8..f87691d0264cfcdc 100644
|
|
|
00db10 |
--- a/sysdeps/mach/i386/sysdep.h
|
|
|
00db10 |
+++ b/sysdeps/mach/i386/sysdep.h
|
|
|
00db10 |
@@ -29,7 +29,7 @@
|
|
|
00db10 |
#define SNARF_ARGS(entry_sp, argc, argv, envp) \
|
|
|
00db10 |
do \
|
|
|
00db10 |
{ \
|
|
|
00db10 |
- register char **p; \
|
|
|
00db10 |
+ char **p; \
|
|
|
00db10 |
argc = (int) *entry_sp; \
|
|
|
00db10 |
argv = (char **) (entry_sp + 1); \
|
|
|
00db10 |
p = argv; \
|
|
|
00db10 |
diff --git a/sysdeps/powerpc/powerpc32/power6/wcschr.c b/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
00db10 |
index a981427f7298477d..3b4cca15face81da 100644
|
|
|
00db10 |
--- a/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
00db10 |
+++ b/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
00db10 |
@@ -22,10 +22,10 @@
|
|
|
00db10 |
/* Find the first occurrence of WC in WCS. */
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
wcschr (wcs, wc)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t wc;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t wc;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const wchar_t *wcs2 = wcs + 1;
|
|
|
00db10 |
+ const wchar_t *wcs2 = wcs + 1;
|
|
|
00db10 |
|
|
|
00db10 |
if (*wcs == wc)
|
|
|
00db10 |
return (wchar_t *) wcs;
|
|
|
00db10 |
diff --git a/sysdeps/powerpc/powerpc32/power6/wcsrchr.c b/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
00db10 |
index f9db8f8b53fad7fc..333650190afff171 100644
|
|
|
00db10 |
--- a/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
00db10 |
+++ b/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
00db10 |
@@ -22,10 +22,10 @@
|
|
|
00db10 |
/* Find the last occurrence of WC in WCS. */
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
wcsrchr (wcs, wc)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t wc;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t wc;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const wchar_t *wcs2 = wcs + 1;
|
|
|
00db10 |
+ const wchar_t *wcs2 = wcs + 1;
|
|
|
00db10 |
const wchar_t *retval = NULL;
|
|
|
00db10 |
|
|
|
00db10 |
if (*wcs == wc)
|
|
|
00db10 |
diff --git a/sysdeps/x86/bits/byteswap-16.h b/sysdeps/x86/bits/byteswap-16.h
|
|
|
00db10 |
index 584eb86b74a80c33..2f619729a766ff4e 100644
|
|
|
00db10 |
--- a/sysdeps/x86/bits/byteswap-16.h
|
|
|
00db10 |
+++ b/sysdeps/x86/bits/byteswap-16.h
|
|
|
00db10 |
@@ -24,7 +24,7 @@
|
|
|
00db10 |
# if __GNUC__ >= 2
|
|
|
00db10 |
# define __bswap_16(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
00db10 |
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
00db10 |
if (__builtin_constant_p (__x)) \
|
|
|
00db10 |
__v = __bswap_constant_16 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
@@ -37,7 +37,7 @@
|
|
|
00db10 |
/* This is better than nothing. */
|
|
|
00db10 |
# define __bswap_16(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned short int __x = (unsigned short int) (x); \
|
|
|
00db10 |
+ ({ unsigned short int __x = (unsigned short int) (x); \
|
|
|
00db10 |
__bswap_constant_16 (__x); }))
|
|
|
00db10 |
# endif
|
|
|
00db10 |
#else
|
|
|
00db10 |
diff --git a/sysdeps/x86/bits/byteswap.h b/sysdeps/x86/bits/byteswap.h
|
|
|
00db10 |
index 581687c7f2631183..9bab0c7f4fcb532a 100644
|
|
|
00db10 |
--- a/sysdeps/x86/bits/byteswap.h
|
|
|
00db10 |
+++ b/sysdeps/x86/bits/byteswap.h
|
|
|
00db10 |
@@ -57,7 +57,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
00db10 |
`bswap' opcode. On i386 we have to use three instructions. */
|
|
|
00db10 |
# define __bswap_32(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
00db10 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
00db10 |
if (__builtin_constant_p (__x)) \
|
|
|
00db10 |
__v = __bswap_constant_32 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
@@ -66,7 +66,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
00db10 |
# else
|
|
|
00db10 |
# define __bswap_32(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
00db10 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
00db10 |
if (__builtin_constant_p (__x)) \
|
|
|
00db10 |
__v = __bswap_constant_32 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
@@ -81,7 +81,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
00db10 |
# else
|
|
|
00db10 |
# define __bswap_32(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
|
|
|
00db10 |
+ ({ unsigned int __x = (x); __bswap_constant_32 (__x); }))
|
|
|
00db10 |
# endif
|
|
|
00db10 |
#else
|
|
|
00db10 |
static __inline unsigned int
|
|
|
00db10 |
@@ -113,7 +113,7 @@ __bswap_64 (__uint64_t __bsx)
|
|
|
00db10 |
# elif __WORDSIZE == 64
|
|
|
00db10 |
# define __bswap_64(x) \
|
|
|
00db10 |
(__extension__ \
|
|
|
00db10 |
- ({ register __uint64_t __v, __x = (x); \
|
|
|
00db10 |
+ ({ __uint64_t __v, __x = (x); \
|
|
|
00db10 |
if (__builtin_constant_p (__x)) \
|
|
|
00db10 |
__v = __bswap_constant_64 (__x); \
|
|
|
00db10 |
else \
|
|
|
00db10 |
diff --git a/time/test_time.c b/time/test_time.c
|
|
|
00db10 |
index b3573aa26ac34bf6..8d20ff935b9e8963 100644
|
|
|
00db10 |
--- a/time/test_time.c
|
|
|
00db10 |
+++ b/time/test_time.c
|
|
|
00db10 |
@@ -24,7 +24,7 @@ int
|
|
|
00db10 |
main (int argc, char **argv)
|
|
|
00db10 |
{
|
|
|
00db10 |
time_t t;
|
|
|
00db10 |
- register struct tm *tp;
|
|
|
00db10 |
+ struct tm *tp;
|
|
|
00db10 |
struct tm tbuf;
|
|
|
00db10 |
int lose = 0;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/time/tzfile.c b/time/tzfile.c
|
|
|
00db10 |
index 38aa15cb16300e1c..d67262916f11eaf0 100644
|
|
|
00db10 |
--- a/time/tzfile.c
|
|
|
00db10 |
+++ b/time/tzfile.c
|
|
|
00db10 |
@@ -104,10 +104,10 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
|
|
|
00db10 |
{
|
|
|
00db10 |
static const char default_tzdir[] = TZDIR;
|
|
|
00db10 |
size_t num_isstd, num_isgmt;
|
|
|
00db10 |
- register FILE *f;
|
|
|
00db10 |
+ FILE *f;
|
|
|
00db10 |
struct tzhead tzhead;
|
|
|
00db10 |
size_t chars;
|
|
|
00db10 |
- register size_t i;
|
|
|
00db10 |
+ size_t i;
|
|
|
00db10 |
size_t total_size;
|
|
|
00db10 |
size_t types_idx;
|
|
|
00db10 |
size_t leaps_idx;
|
|
|
00db10 |
@@ -632,7 +632,7 @@ __tzfile_compute (time_t timer, int use_localtime,
|
|
|
00db10 |
long int *leap_correct, int *leap_hit,
|
|
|
00db10 |
struct tm *tp)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t i;
|
|
|
00db10 |
+ size_t i;
|
|
|
00db10 |
|
|
|
00db10 |
if (use_localtime)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/wcsmbs/wcscat.c b/wcsmbs/wcscat.c
|
|
|
00db10 |
index 4eb2d936e76098b6..89366e1437465988 100644
|
|
|
00db10 |
--- a/wcsmbs/wcscat.c
|
|
|
00db10 |
+++ b/wcsmbs/wcscat.c
|
|
|
00db10 |
@@ -28,8 +28,8 @@ __wcscat (dest, src)
|
|
|
00db10 |
wchar_t *dest;
|
|
|
00db10 |
const wchar_t *src;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t *s1 = dest;
|
|
|
00db10 |
- register const wchar_t *s2 = src;
|
|
|
00db10 |
+ wchar_t *s1 = dest;
|
|
|
00db10 |
+ const wchar_t *s2 = src;
|
|
|
00db10 |
wchar_t c;
|
|
|
00db10 |
|
|
|
00db10 |
/* Find the end of the string. */
|
|
|
00db10 |
diff --git a/wcsmbs/wcschr.c b/wcsmbs/wcschr.c
|
|
|
00db10 |
index cb0592bd425b6c4c..56511d88176fa1f0 100644
|
|
|
00db10 |
--- a/wcsmbs/wcschr.c
|
|
|
00db10 |
+++ b/wcsmbs/wcschr.c
|
|
|
00db10 |
@@ -24,8 +24,8 @@
|
|
|
00db10 |
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
wcschr (wcs, wc)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t wc;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t wc;
|
|
|
00db10 |
{
|
|
|
00db10 |
do
|
|
|
00db10 |
if (*wcs == wc)
|
|
|
00db10 |
diff --git a/wcsmbs/wcschrnul.c b/wcsmbs/wcschrnul.c
|
|
|
00db10 |
index 1e4c44f80f77ef63..48eaf7b011e3a690 100644
|
|
|
00db10 |
--- a/wcsmbs/wcschrnul.c
|
|
|
00db10 |
+++ b/wcsmbs/wcschrnul.c
|
|
|
00db10 |
@@ -24,8 +24,8 @@
|
|
|
00db10 |
/* Find the first occurrence of WC in WCS. */
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
__wcschrnul (wcs, wc)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t wc;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t wc;
|
|
|
00db10 |
{
|
|
|
00db10 |
while (*wcs != L'\0')
|
|
|
00db10 |
if (*wcs == wc)
|
|
|
00db10 |
diff --git a/wcsmbs/wcscspn.c b/wcsmbs/wcscspn.c
|
|
|
00db10 |
index 9e84226cf5674ef8..cf4205fd5e56baee 100644
|
|
|
00db10 |
--- a/wcsmbs/wcscspn.c
|
|
|
00db10 |
+++ b/wcsmbs/wcscspn.c
|
|
|
00db10 |
@@ -29,7 +29,7 @@ wcscspn (wcs, reject)
|
|
|
00db10 |
const wchar_t *wcs;
|
|
|
00db10 |
const wchar_t *reject;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register size_t count = 0;
|
|
|
00db10 |
+ size_t count = 0;
|
|
|
00db10 |
|
|
|
00db10 |
while (*wcs != L'\0')
|
|
|
00db10 |
if (wcschr (reject, *wcs++) == NULL)
|
|
|
00db10 |
diff --git a/wcsmbs/wcspbrk.c b/wcsmbs/wcspbrk.c
|
|
|
00db10 |
index b769a388d5e49301..ee880709d826fde8 100644
|
|
|
00db10 |
--- a/wcsmbs/wcspbrk.c
|
|
|
00db10 |
+++ b/wcsmbs/wcspbrk.c
|
|
|
00db10 |
@@ -25,8 +25,8 @@
|
|
|
00db10 |
/* Find the first occurrence in WCS of any wide-character in ACCEPT. */
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
wcspbrk (wcs, accept)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t *accept;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t *accept;
|
|
|
00db10 |
{
|
|
|
00db10 |
while (*wcs != L'\0')
|
|
|
00db10 |
if (wcschr (accept, *wcs) == NULL)
|
|
|
00db10 |
diff --git a/wcsmbs/wcsrchr.c b/wcsmbs/wcsrchr.c
|
|
|
00db10 |
index 27c94c5bb28cf9c5..b1771a7e8a7ee8a9 100644
|
|
|
00db10 |
--- a/wcsmbs/wcsrchr.c
|
|
|
00db10 |
+++ b/wcsmbs/wcsrchr.c
|
|
|
00db10 |
@@ -25,8 +25,8 @@
|
|
|
00db10 |
/* Find the last occurrence of WC in WCS. */
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
WCSRCHR (wcs, wc)
|
|
|
00db10 |
- register const wchar_t *wcs;
|
|
|
00db10 |
- register const wchar_t wc;
|
|
|
00db10 |
+ const wchar_t *wcs;
|
|
|
00db10 |
+ const wchar_t wc;
|
|
|
00db10 |
{
|
|
|
00db10 |
const wchar_t *retval = NULL;
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/wcsmbs/wcsspn.c b/wcsmbs/wcsspn.c
|
|
|
00db10 |
index 3e84726c6acb159c..4c2db0ffc360e906 100644
|
|
|
00db10 |
--- a/wcsmbs/wcsspn.c
|
|
|
00db10 |
+++ b/wcsmbs/wcsspn.c
|
|
|
00db10 |
@@ -29,9 +29,9 @@ wcsspn (wcs, accept)
|
|
|
00db10 |
const wchar_t *wcs;
|
|
|
00db10 |
const wchar_t *accept;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register const wchar_t *p;
|
|
|
00db10 |
- register const wchar_t *a;
|
|
|
00db10 |
- register size_t count = 0;
|
|
|
00db10 |
+ const wchar_t *p;
|
|
|
00db10 |
+ const wchar_t *a;
|
|
|
00db10 |
+ size_t count = 0;
|
|
|
00db10 |
|
|
|
00db10 |
for (p = wcs; *p != L'\0'; ++p)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/wcsmbs/wcsstr.c b/wcsmbs/wcsstr.c
|
|
|
00db10 |
index 932c74fe5e144ce9..d4a42df01ce1214c 100644
|
|
|
00db10 |
--- a/wcsmbs/wcsstr.c
|
|
|
00db10 |
+++ b/wcsmbs/wcsstr.c
|
|
|
00db10 |
@@ -33,7 +33,7 @@ wcsstr (haystack, needle)
|
|
|
00db10 |
const wchar_t *haystack;
|
|
|
00db10 |
const wchar_t *needle;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t b, c;
|
|
|
00db10 |
+ wchar_t b, c;
|
|
|
00db10 |
|
|
|
00db10 |
if ((b = *needle) != L'\0')
|
|
|
00db10 |
{
|
|
|
00db10 |
@@ -50,8 +50,8 @@ wcsstr (haystack, needle)
|
|
|
00db10 |
|
|
|
00db10 |
for (;;)
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t a;
|
|
|
00db10 |
- register const wchar_t *rhaystack, *rneedle;
|
|
|
00db10 |
+ wchar_t a;
|
|
|
00db10 |
+ const wchar_t *rhaystack, *rneedle;
|
|
|
00db10 |
|
|
|
00db10 |
do
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/wcsmbs/wmemchr.c b/wcsmbs/wmemchr.c
|
|
|
00db10 |
index 905a321fb24680f4..b8726838a2951d6e 100644
|
|
|
00db10 |
--- a/wcsmbs/wmemchr.c
|
|
|
00db10 |
+++ b/wcsmbs/wmemchr.c
|
|
|
00db10 |
@@ -24,9 +24,9 @@
|
|
|
00db10 |
|
|
|
00db10 |
wchar_t *
|
|
|
00db10 |
wmemchr (s, c, n)
|
|
|
00db10 |
- register const wchar_t *s;
|
|
|
00db10 |
- register wchar_t c;
|
|
|
00db10 |
- register size_t n;
|
|
|
00db10 |
+ const wchar_t *s;
|
|
|
00db10 |
+ wchar_t c;
|
|
|
00db10 |
+ size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
/* For performance reasons unfold the loop four times. */
|
|
|
00db10 |
while (n >= 4)
|
|
|
00db10 |
diff --git a/wcsmbs/wmemcmp.c b/wcsmbs/wmemcmp.c
|
|
|
00db10 |
index 2680b4bd078352bb..bb0a900dc8a5ec49 100644
|
|
|
00db10 |
--- a/wcsmbs/wmemcmp.c
|
|
|
00db10 |
+++ b/wcsmbs/wmemcmp.c
|
|
|
00db10 |
@@ -28,8 +28,8 @@ WMEMCMP (s1, s2, n)
|
|
|
00db10 |
const wchar_t *s2;
|
|
|
00db10 |
size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t c1;
|
|
|
00db10 |
- register wchar_t c2;
|
|
|
00db10 |
+ wchar_t c1;
|
|
|
00db10 |
+ wchar_t c2;
|
|
|
00db10 |
|
|
|
00db10 |
while (n >= 4)
|
|
|
00db10 |
{
|
|
|
00db10 |
diff --git a/wcsmbs/wmemset.c b/wcsmbs/wmemset.c
|
|
|
00db10 |
index 8049bb813075f000..afc26c7c48f34f3d 100644
|
|
|
00db10 |
--- a/wcsmbs/wmemset.c
|
|
|
00db10 |
+++ b/wcsmbs/wmemset.c
|
|
|
00db10 |
@@ -28,7 +28,7 @@ wmemset (s, c, n)
|
|
|
00db10 |
wchar_t c;
|
|
|
00db10 |
size_t n;
|
|
|
00db10 |
{
|
|
|
00db10 |
- register wchar_t *wp = s;
|
|
|
00db10 |
+ wchar_t *wp = s;
|
|
|
00db10 |
|
|
|
00db10 |
while (n >= 4)
|
|
|
00db10 |
{
|