remove obsolete register declarations
This commit is contained in:
parent
c8bafd6265
commit
741740203c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: __strerror.c,v 1.10 1997/07/13 20:24:09 christos Exp $ */
|
||||
/* $NetBSD: __strerror.c,v 1.11 1998/02/03 18:49:08 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: __strerror.c,v 1.10 1997/07/13 20:24:09 christos Exp $");
|
||||
__RCSID("$NetBSD: __strerror.c,v 1.11 1998/02/03 18:49:08 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -66,7 +66,7 @@ __strerror(num, buf, buflen)
|
|||
int buflen;
|
||||
{
|
||||
#define UPREFIX "Unknown error: %u"
|
||||
register unsigned int errnum;
|
||||
unsigned int errnum;
|
||||
|
||||
#ifdef NLS
|
||||
nl_catd catd ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: __strsignal.c,v 1.13 1997/07/13 20:24:10 christos Exp $ */
|
||||
/* $NetBSD: __strsignal.c,v 1.14 1998/02/03 18:49:09 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: __strsignal.c,v 1.13 1997/07/13 20:24:10 christos Exp $");
|
||||
__RCSID("$NetBSD: __strsignal.c,v 1.14 1998/02/03 18:49:09 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ __strsignal(num, buf, buflen)
|
|||
int buflen;
|
||||
{
|
||||
#define UPREFIX "Unknown signal: %u"
|
||||
register unsigned int signum;
|
||||
unsigned int signum;
|
||||
|
||||
#ifdef NLS
|
||||
nl_catd catd ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bcmp.c,v 1.8 1998/01/30 23:38:13 perry Exp $ */
|
||||
/* $NetBSD: bcmp.c,v 1.9 1998/02/03 18:49:10 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)bcmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: bcmp.c,v 1.8 1998/01/30 23:38:13 perry Exp $");
|
||||
__RCSID("$NetBSD: bcmp.c,v 1.9 1998/02/03 18:49:10 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -54,9 +54,9 @@ __RCSID("$NetBSD: bcmp.c,v 1.8 1998/01/30 23:38:13 perry Exp $");
|
|||
int
|
||||
bcmp(b1, b2, length)
|
||||
const void *b1, *b2;
|
||||
register size_t length;
|
||||
size_t length;
|
||||
{
|
||||
register const char *p1, *p2;
|
||||
const char *p1, *p2;
|
||||
|
||||
if (length == 0)
|
||||
return(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bcopy.c,v 1.7 1998/01/30 23:38:14 perry Exp $ */
|
||||
/* $NetBSD: bcopy.c,v 1.8 1998/02/03 18:49:10 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: bcopy.c,v 1.7 1998/01/30 23:38:14 perry Exp $");
|
||||
__RCSID("$NetBSD: bcopy.c,v 1.8 1998/02/03 18:49:10 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -75,11 +75,11 @@ bcopy(src0, dst0, length)
|
|||
#endif
|
||||
void *dst0;
|
||||
const void *src0;
|
||||
register size_t length;
|
||||
size_t length;
|
||||
{
|
||||
register char *dst = dst0;
|
||||
register const char *src = src0;
|
||||
register size_t t;
|
||||
char *dst = dst0;
|
||||
const char *src = src0;
|
||||
size_t t;
|
||||
|
||||
if (length == 0 || dst == src) /* nothing to do */
|
||||
goto done;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bm.c,v 1.6 1997/07/21 14:09:07 jtc Exp $ */
|
||||
/* $NetBSD: bm.c,v 1.7 1998/02/03 18:49:11 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)bm.c 8.7 (Berkeley) 6/21/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: bm.c,v 1.6 1997/07/21 14:09:07 jtc Exp $");
|
||||
__RCSID("$NetBSD: bm.c,v 1.7 1998/02/03 18:49:11 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS && not lint */
|
||||
|
||||
|
@ -108,9 +108,9 @@ bm_comp(pb, len, freq)
|
|||
size_t len;
|
||||
u_char const *freq;
|
||||
{
|
||||
register u_char const *pe, *p;
|
||||
register size_t *d, r;
|
||||
register int j;
|
||||
u_char const *pe, *p;
|
||||
size_t *d, r;
|
||||
int j;
|
||||
int sv_errno;
|
||||
bm_pat *pat;
|
||||
|
||||
|
@ -176,9 +176,9 @@ bm_exec(pat, base, n)
|
|||
u_char *base;
|
||||
size_t n;
|
||||
{
|
||||
register u_char *e, *ep, *p, *q, *s;
|
||||
register size_t *d0, k, md2, n1, ro;
|
||||
register int rc;
|
||||
u_char *e, *ep, *p, *q, *s;
|
||||
size_t *d0, k, md2, n1, ro;
|
||||
int rc;
|
||||
|
||||
if (n == 0)
|
||||
return (NULL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: bzero.c,v 1.5 1997/07/13 20:24:13 christos Exp $ */
|
||||
/* $NetBSD: bzero.c,v 1.6 1998/02/03 18:49:12 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987 Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char *sccsid = "@(#)bzero.c 5.7 (Berkeley) 2/24/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: bzero.c,v 1.5 1997/07/13 20:24:13 christos Exp $");
|
||||
__RCSID("$NetBSD: bzero.c,v 1.6 1998/02/03 18:49:12 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -54,9 +54,9 @@ __RCSID("$NetBSD: bzero.c,v 1.5 1997/07/13 20:24:13 christos Exp $");
|
|||
void
|
||||
bzero(b, length)
|
||||
void *b;
|
||||
register size_t length;
|
||||
size_t length;
|
||||
{
|
||||
register char *p;
|
||||
char *p;
|
||||
|
||||
for (p = b; length--;)
|
||||
*p++ = '\0';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ffs.c,v 1.7 1998/01/30 23:38:17 perry Exp $ */
|
||||
/* $NetBSD: ffs.c,v 1.8 1998/02/03 18:49:12 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)ffs.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: ffs.c,v 1.7 1998/01/30 23:38:17 perry Exp $");
|
||||
__RCSID("$NetBSD: ffs.c,v 1.8 1998/02/03 18:49:12 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -53,9 +53,9 @@ __RCSID("$NetBSD: ffs.c,v 1.7 1998/01/30 23:38:17 perry Exp $");
|
|||
*/
|
||||
int
|
||||
ffs(mask)
|
||||
register int mask;
|
||||
int mask;
|
||||
{
|
||||
register int bit;
|
||||
int bit;
|
||||
|
||||
if (mask == 0)
|
||||
return(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: index.c,v 1.7 1998/01/30 23:38:18 perry Exp $ */
|
||||
/* $NetBSD: index.c,v 1.8 1998/02/03 18:49:13 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)index.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: index.c,v 1.7 1998/01/30 23:38:18 perry Exp $");
|
||||
__RCSID("$NetBSD: index.c,v 1.8 1998/02/03 18:49:13 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -55,7 +55,7 @@ strchr(p, ch)
|
|||
#else
|
||||
index(p, ch)
|
||||
#endif
|
||||
register const char *p, ch;
|
||||
const char *p, ch;
|
||||
{
|
||||
for (;; ++p) {
|
||||
if (*p == ch)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memccpy.c,v 1.8 1998/01/30 23:38:19 perry Exp $ */
|
||||
/* $NetBSD: memccpy.c,v 1.9 1998/02/03 18:49:14 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: memccpy.c,v 1.8 1998/01/30 23:38:19 perry Exp $");
|
||||
__RCSID("$NetBSD: memccpy.c,v 1.9 1998/02/03 18:49:14 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -49,13 +49,13 @@ memccpy(t, f, c, n)
|
|||
void *t;
|
||||
const void *f;
|
||||
int c;
|
||||
register size_t n;
|
||||
size_t n;
|
||||
{
|
||||
|
||||
if (n) {
|
||||
register unsigned char *tp = t;
|
||||
register const unsigned char *fp = f;
|
||||
register unsigned char uc = c;
|
||||
unsigned char *tp = t;
|
||||
const unsigned char *fp = f;
|
||||
unsigned char uc = c;
|
||||
do {
|
||||
if ((*tp++ = *fp++) == uc)
|
||||
return (tp);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memchr.c,v 1.7 1998/01/30 23:38:20 perry Exp $ */
|
||||
/* $NetBSD: memchr.c,v 1.8 1998/02/03 18:49:14 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)memchr.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: memchr.c,v 1.7 1998/01/30 23:38:20 perry Exp $");
|
||||
__RCSID("$NetBSD: memchr.c,v 1.8 1998/02/03 18:49:14 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -55,11 +55,11 @@ __RCSID("$NetBSD: memchr.c,v 1.7 1998/01/30 23:38:20 perry Exp $");
|
|||
void *
|
||||
memchr(s, c, n)
|
||||
const void *s;
|
||||
register unsigned char c;
|
||||
register size_t n;
|
||||
unsigned char c;
|
||||
size_t n;
|
||||
{
|
||||
if (n != 0) {
|
||||
register const unsigned char *p = s;
|
||||
const unsigned char *p = s;
|
||||
|
||||
do {
|
||||
if (*p++ == c)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memcmp.c,v 1.7 1998/01/30 23:38:21 perry Exp $ */
|
||||
/* $NetBSD: memcmp.c,v 1.8 1998/02/03 18:49:15 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)memcmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: memcmp.c,v 1.7 1998/01/30 23:38:21 perry Exp $");
|
||||
__RCSID("$NetBSD: memcmp.c,v 1.8 1998/02/03 18:49:15 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ memcmp(s1, s2, n)
|
|||
size_t n;
|
||||
{
|
||||
if (n != 0) {
|
||||
register const unsigned char *p1 = s1, *p2 = s2;
|
||||
const unsigned char *p1 = s1, *p2 = s2;
|
||||
|
||||
do {
|
||||
if (*p1++ != *p2++)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: memset.c,v 1.7 1998/01/30 23:38:23 perry Exp $ */
|
||||
/* $NetBSD: memset.c,v 1.8 1998/02/03 18:49:16 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)memset.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: memset.c,v 1.7 1998/01/30 23:38:23 perry Exp $");
|
||||
__RCSID("$NetBSD: memset.c,v 1.8 1998/02/03 18:49:16 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -66,7 +66,7 @@ __RCSID("$NetBSD: memset.c,v 1.7 1998/01/30 23:38:23 perry Exp $");
|
|||
void
|
||||
bzero(dst0, length)
|
||||
void *dst0;
|
||||
register size_t length;
|
||||
size_t length;
|
||||
#else
|
||||
#define RETURN return (dst0)
|
||||
#define VAL c0
|
||||
|
@ -75,13 +75,13 @@ bzero(dst0, length)
|
|||
void *
|
||||
memset(dst0, c0, length)
|
||||
void *dst0;
|
||||
register int c0;
|
||||
register size_t length;
|
||||
int c0;
|
||||
size_t length;
|
||||
#endif
|
||||
{
|
||||
register size_t t;
|
||||
register u_int c;
|
||||
register u_char *dst;
|
||||
size_t t;
|
||||
u_int c;
|
||||
u_char *dst;
|
||||
|
||||
dst = dst0;
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rindex.c,v 1.7 1998/01/30 23:38:24 perry Exp $ */
|
||||
/* $NetBSD: rindex.c,v 1.8 1998/02/03 18:49:16 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)rindex.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rindex.c,v 1.7 1998/01/30 23:38:24 perry Exp $");
|
||||
__RCSID("$NetBSD: rindex.c,v 1.8 1998/02/03 18:49:16 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -55,10 +55,10 @@ strrchr(p, ch)
|
|||
#else
|
||||
rindex(p, ch)
|
||||
#endif
|
||||
register const char *p;
|
||||
register int ch;
|
||||
const char *p;
|
||||
int ch;
|
||||
{
|
||||
register char *save;
|
||||
char *save;
|
||||
|
||||
for (save = NULL;; ++p) {
|
||||
if (*p == ch)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strcasecmp.c,v 1.8 1998/01/30 23:38:25 perry Exp $ */
|
||||
/* $NetBSD: strcasecmp.c,v 1.9 1998/02/03 18:49:17 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strcasecmp.c,v 1.8 1998/01/30 23:38:25 perry Exp $");
|
||||
__RCSID("$NetBSD: strcasecmp.c,v 1.9 1998/02/03 18:49:17 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -57,7 +57,7 @@ int
|
|||
strcasecmp(s1, s2)
|
||||
const char *s1, *s2;
|
||||
{
|
||||
register const u_char *us1 = (const u_char *)s1,
|
||||
const u_char *us1 = (const u_char *)s1,
|
||||
*us2 = (const u_char *)s2;
|
||||
|
||||
while (tolower(*us1) == tolower(*us2++))
|
||||
|
@ -69,10 +69,10 @@ strcasecmp(s1, s2)
|
|||
int
|
||||
strncasecmp(s1, s2, n)
|
||||
const char *s1, *s2;
|
||||
register size_t n;
|
||||
size_t n;
|
||||
{
|
||||
if (n != 0) {
|
||||
register const u_char *us1 = (const u_char *)s1,
|
||||
const u_char *us1 = (const u_char *)s1,
|
||||
*us2 = (const u_char *)s2;
|
||||
|
||||
do {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strcat.c,v 1.8 1998/01/30 23:38:27 perry Exp $ */
|
||||
/* $NetBSD: strcat.c,v 1.9 1998/02/03 18:49:17 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strcat.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strcat.c,v 1.8 1998/01/30 23:38:27 perry Exp $");
|
||||
__RCSID("$NetBSD: strcat.c,v 1.9 1998/02/03 18:49:17 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -50,8 +50,8 @@ __RCSID("$NetBSD: strcat.c,v 1.8 1998/01/30 23:38:27 perry Exp $");
|
|||
|
||||
char *
|
||||
strcat(s, append)
|
||||
register char *s;
|
||||
register const char *append;
|
||||
char *s;
|
||||
const char *append;
|
||||
{
|
||||
char *t = s;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strcmp.c,v 1.8 1998/01/30 23:38:28 perry Exp $ */
|
||||
/* $NetBSD: strcmp.c,v 1.9 1998/02/03 18:49:18 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strcmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strcmp.c,v 1.8 1998/01/30 23:38:28 perry Exp $");
|
||||
__RCSID("$NetBSD: strcmp.c,v 1.9 1998/02/03 18:49:18 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -56,7 +56,7 @@ __RCSID("$NetBSD: strcmp.c,v 1.8 1998/01/30 23:38:28 perry Exp $");
|
|||
*/
|
||||
int
|
||||
strcmp(s1, s2)
|
||||
register const char *s1, *s2;
|
||||
const char *s1, *s2;
|
||||
{
|
||||
while (*s1 == *s2++)
|
||||
if (*s1++ == 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strcpy.c,v 1.8 1998/01/30 23:38:31 perry Exp $ */
|
||||
/* $NetBSD: strcpy.c,v 1.9 1998/02/03 18:49:18 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strcpy.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strcpy.c,v 1.8 1998/01/30 23:38:31 perry Exp $");
|
||||
__RCSID("$NetBSD: strcpy.c,v 1.9 1998/02/03 18:49:18 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -50,8 +50,8 @@ __RCSID("$NetBSD: strcpy.c,v 1.8 1998/01/30 23:38:31 perry Exp $");
|
|||
|
||||
char *
|
||||
strcpy(to, from)
|
||||
register char *to;
|
||||
register const char *from;
|
||||
char *to;
|
||||
const char *from;
|
||||
{
|
||||
char *save = to;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strcspn.c,v 1.6 1998/01/30 23:38:32 perry Exp $ */
|
||||
/* $NetBSD: strcspn.c,v 1.7 1998/02/03 18:49:19 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strcspn.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strcspn.c,v 1.6 1998/01/30 23:38:32 perry Exp $");
|
||||
__RCSID("$NetBSD: strcspn.c,v 1.7 1998/02/03 18:49:19 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -53,10 +53,10 @@ __RCSID("$NetBSD: strcspn.c,v 1.6 1998/01/30 23:38:32 perry Exp $");
|
|||
size_t
|
||||
strcspn(s1, s2)
|
||||
const char *s1;
|
||||
register const char *s2;
|
||||
const char *s2;
|
||||
{
|
||||
register const char *p, *spanp;
|
||||
register char c, sc;
|
||||
const char *p, *spanp;
|
||||
char c, sc;
|
||||
|
||||
/*
|
||||
* Stop as soon as we find any character from s2. Note that there
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strlen.c,v 1.7 1998/01/30 23:38:34 perry Exp $ */
|
||||
/* $NetBSD: strlen.c,v 1.8 1998/02/03 18:49:20 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strlen.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strlen.c,v 1.7 1998/01/30 23:38:34 perry Exp $");
|
||||
__RCSID("$NetBSD: strlen.c,v 1.8 1998/02/03 18:49:20 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -52,7 +52,7 @@ size_t
|
|||
strlen(str)
|
||||
const char *str;
|
||||
{
|
||||
register const char *s;
|
||||
const char *s;
|
||||
|
||||
for (s = str; *s; ++s);
|
||||
return(s - str);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strmode.c,v 1.7 1998/01/30 23:38:36 perry Exp $ */
|
||||
/* $NetBSD: strmode.c,v 1.8 1998/02/03 18:49:20 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strmode.c 8.3 (Berkeley) 8/15/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: strmode.c,v 1.7 1998/01/30 23:38:36 perry Exp $");
|
||||
__RCSID("$NetBSD: strmode.c,v 1.8 1998/02/03 18:49:20 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -48,8 +48,8 @@ __RCSID("$NetBSD: strmode.c,v 1.7 1998/01/30 23:38:36 perry Exp $");
|
|||
|
||||
void
|
||||
strmode(mode, p)
|
||||
register mode_t mode;
|
||||
register char *p;
|
||||
mode_t mode;
|
||||
char *p;
|
||||
{
|
||||
/* print type */
|
||||
switch (mode & S_IFMT) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strncat.c,v 1.6 1998/01/30 23:38:36 perry Exp $ */
|
||||
/* $NetBSD: strncat.c,v 1.7 1998/02/03 18:49:21 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strncat.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strncat.c,v 1.6 1998/01/30 23:38:36 perry Exp $");
|
||||
__RCSID("$NetBSD: strncat.c,v 1.7 1998/02/03 18:49:21 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -55,11 +55,11 @@ char *
|
|||
strncat(dst, src, n)
|
||||
char *dst;
|
||||
const char *src;
|
||||
register size_t n;
|
||||
size_t n;
|
||||
{
|
||||
if (n != 0) {
|
||||
register char *d = dst;
|
||||
register const char *s = src;
|
||||
char *d = dst;
|
||||
const char *s = src;
|
||||
|
||||
while (*d != 0)
|
||||
d++;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strncmp.c,v 1.8 1998/01/30 23:38:37 perry Exp $ */
|
||||
/* $NetBSD: strncmp.c,v 1.9 1998/02/03 18:49:21 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strncmp.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strncmp.c,v 1.8 1998/01/30 23:38:37 perry Exp $");
|
||||
__RCSID("$NetBSD: strncmp.c,v 1.9 1998/02/03 18:49:21 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -50,8 +50,8 @@ __RCSID("$NetBSD: strncmp.c,v 1.8 1998/01/30 23:38:37 perry Exp $");
|
|||
|
||||
int
|
||||
strncmp(s1, s2, n)
|
||||
register const char *s1, *s2;
|
||||
register size_t n;
|
||||
const char *s1, *s2;
|
||||
size_t n;
|
||||
{
|
||||
|
||||
if (n == 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strncpy.c,v 1.7 1998/01/30 23:38:37 perry Exp $ */
|
||||
/* $NetBSD: strncpy.c,v 1.8 1998/02/03 18:49:22 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strncpy.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strncpy.c,v 1.7 1998/01/30 23:38:37 perry Exp $");
|
||||
__RCSID("$NetBSD: strncpy.c,v 1.8 1998/02/03 18:49:22 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -59,11 +59,11 @@ char *
|
|||
strncpy(dst, src, n)
|
||||
char *dst;
|
||||
const char *src;
|
||||
register size_t n;
|
||||
size_t n;
|
||||
{
|
||||
if (n != 0) {
|
||||
register char *d = dst;
|
||||
register const char *s = src;
|
||||
char *d = dst;
|
||||
const char *s = src;
|
||||
|
||||
do {
|
||||
if ((*d++ = *s++) == 0) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strpbrk.c,v 1.6 1998/01/30 23:38:39 perry Exp $ */
|
||||
/* $NetBSD: strpbrk.c,v 1.7 1998/02/03 18:49:22 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strpbrk.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strpbrk.c,v 1.6 1998/01/30 23:38:39 perry Exp $");
|
||||
__RCSID("$NetBSD: strpbrk.c,v 1.7 1998/02/03 18:49:22 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -49,10 +49,10 @@ __RCSID("$NetBSD: strpbrk.c,v 1.6 1998/01/30 23:38:39 perry Exp $");
|
|||
*/
|
||||
char *
|
||||
strpbrk(s1, s2)
|
||||
register const char *s1, *s2;
|
||||
const char *s1, *s2;
|
||||
{
|
||||
register const char *scanp;
|
||||
register int c, sc;
|
||||
const char *scanp;
|
||||
int c, sc;
|
||||
|
||||
while ((c = *s1++) != 0) {
|
||||
for (scanp = s2; (sc = *scanp++) != 0;)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strsep.c,v 1.6 1998/01/30 23:38:41 perry Exp $ */
|
||||
/* $NetBSD: strsep.c,v 1.7 1998/02/03 18:49:23 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strsep.c,v 1.6 1998/01/30 23:38:41 perry Exp $");
|
||||
__RCSID("$NetBSD: strsep.c,v 1.7 1998/02/03 18:49:23 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -57,12 +57,12 @@ __RCSID("$NetBSD: strsep.c,v 1.6 1998/01/30 23:38:41 perry Exp $");
|
|||
*/
|
||||
char *
|
||||
strsep(stringp, delim)
|
||||
register char **stringp;
|
||||
register const char *delim;
|
||||
char **stringp;
|
||||
const char *delim;
|
||||
{
|
||||
register char *s;
|
||||
register const char *spanp;
|
||||
register int c, sc;
|
||||
char *s;
|
||||
const char *spanp;
|
||||
int c, sc;
|
||||
char *tok;
|
||||
|
||||
if ((s = *stringp) == NULL)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strspn.c,v 1.6 1998/01/30 23:38:42 perry Exp $ */
|
||||
/* $NetBSD: strspn.c,v 1.7 1998/02/03 18:49:24 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strspn.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strspn.c,v 1.6 1998/01/30 23:38:42 perry Exp $");
|
||||
__RCSID("$NetBSD: strspn.c,v 1.7 1998/02/03 18:49:24 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -50,10 +50,10 @@ __RCSID("$NetBSD: strspn.c,v 1.6 1998/01/30 23:38:42 perry Exp $");
|
|||
size_t
|
||||
strspn(s1, s2)
|
||||
const char *s1;
|
||||
register const char *s2;
|
||||
const char *s2;
|
||||
{
|
||||
register const char *p = s1, *spanp;
|
||||
register char c, sc;
|
||||
const char *p = s1, *spanp;
|
||||
char c, sc;
|
||||
|
||||
/*
|
||||
* Skip any characters in s2, excluding the terminating \0.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strstr.c,v 1.6 1998/01/30 23:38:43 perry Exp $ */
|
||||
/* $NetBSD: strstr.c,v 1.7 1998/02/03 18:49:24 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strstr.c,v 1.6 1998/01/30 23:38:43 perry Exp $");
|
||||
__RCSID("$NetBSD: strstr.c,v 1.7 1998/02/03 18:49:24 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -52,10 +52,10 @@ __RCSID("$NetBSD: strstr.c,v 1.6 1998/01/30 23:38:43 perry Exp $");
|
|||
*/
|
||||
char *
|
||||
strstr(s, find)
|
||||
register const char *s, *find;
|
||||
const char *s, *find;
|
||||
{
|
||||
register char c, sc;
|
||||
register size_t len;
|
||||
char c, sc;
|
||||
size_t len;
|
||||
|
||||
if ((c = *find++) != 0) {
|
||||
len = strlen(find);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strtok.c,v 1.6 1998/01/30 23:38:44 perry Exp $ */
|
||||
/* $NetBSD: strtok.c,v 1.7 1998/02/03 18:49:25 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strtok.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strtok.c,v 1.6 1998/01/30 23:38:44 perry Exp $");
|
||||
__RCSID("$NetBSD: strtok.c,v 1.7 1998/02/03 18:49:25 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -46,11 +46,11 @@ __RCSID("$NetBSD: strtok.c,v 1.6 1998/01/30 23:38:44 perry Exp $");
|
|||
|
||||
char *
|
||||
strtok(s, delim)
|
||||
register char *s;
|
||||
register const char *delim;
|
||||
char *s;
|
||||
const char *delim;
|
||||
{
|
||||
register char *spanp;
|
||||
register int c, sc;
|
||||
char *spanp;
|
||||
int c, sc;
|
||||
char *tok;
|
||||
static char *last;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strtok_r.c,v 1.2 1997/07/13 20:24:36 christos Exp $ */
|
||||
/* $NetBSD: strtok_r.c,v 1.3 1998/02/03 18:49:25 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
|
@ -38,7 +38,7 @@
|
|||
#if 0
|
||||
static char *sccsid = "@(#)strtok.c 5.8 (Berkeley) 2/24/91";
|
||||
#else
|
||||
__RCSID("$NetBSD: strtok_r.c,v 1.2 1997/07/13 20:24:36 christos Exp $");
|
||||
__RCSID("$NetBSD: strtok_r.c,v 1.3 1998/02/03 18:49:25 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -46,12 +46,12 @@ __RCSID("$NetBSD: strtok_r.c,v 1.2 1997/07/13 20:24:36 christos Exp $");
|
|||
|
||||
char *
|
||||
strtok_r(s, delim, lasts)
|
||||
register char *s;
|
||||
register const char *delim;
|
||||
register char **lasts;
|
||||
char *s;
|
||||
const char *delim;
|
||||
char **lasts;
|
||||
{
|
||||
register char *spanp;
|
||||
register int c, sc;
|
||||
char *spanp;
|
||||
int c, sc;
|
||||
char *tok;
|
||||
|
||||
if (s == NULL && (s = *lasts) == NULL)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strxfrm.c,v 1.6 1998/01/30 23:38:45 perry Exp $ */
|
||||
/* $NetBSD: strxfrm.c,v 1.7 1998/02/03 18:49:26 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)strxfrm.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: strxfrm.c,v 1.6 1998/01/30 23:38:45 perry Exp $");
|
||||
__RCSID("$NetBSD: strxfrm.c,v 1.7 1998/02/03 18:49:26 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -54,11 +54,11 @@ __RCSID("$NetBSD: strxfrm.c,v 1.6 1998/01/30 23:38:45 perry Exp $");
|
|||
*/
|
||||
size_t
|
||||
strxfrm(dst, src, n)
|
||||
register char *dst;
|
||||
char *dst;
|
||||
const char *src;
|
||||
size_t n;
|
||||
{
|
||||
register size_t srclen, copysize;
|
||||
size_t srclen, copysize;
|
||||
|
||||
/*
|
||||
* Since locales are unimplemented, this is just a copy.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: swab.c,v 1.6 1998/01/30 23:38:46 perry Exp $ */
|
||||
/* $NetBSD: swab.c,v 1.7 1998/02/03 18:49:26 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -41,7 +41,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: swab.c,v 1.6 1998/01/30 23:38:46 perry Exp $");
|
||||
__RCSID("$NetBSD: swab.c,v 1.7 1998/02/03 18:49:26 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -53,9 +53,9 @@ swab(from, to, len)
|
|||
void *to;
|
||||
size_t len;
|
||||
{
|
||||
register unsigned long temp;
|
||||
register int n;
|
||||
register char *fp, *tp;
|
||||
unsigned long temp;
|
||||
int n;
|
||||
char *fp, *tp;
|
||||
|
||||
n = (len >> 1) + 1;
|
||||
fp = (char *)from;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)lsearch.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: lsearch.c,v 1.3 1997/10/09 10:20:45 lukem Exp $");
|
||||
__RCSID("$NetBSD: lsearch.c,v 1.4 1998/02/03 18:58:07 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -76,7 +76,7 @@ linear_base(key, base, nelp, width, compar, add_flag)
|
|||
cmp_fn_t compar;
|
||||
int add_flag;
|
||||
{
|
||||
register const char *element, *end;
|
||||
const char *element, *end;
|
||||
|
||||
end = (const char *)base + *nelp * width;
|
||||
for (element = base; element < end; element += width)
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)cuserid.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: cuserid.c,v 1.2 1997/10/09 10:21:08 lukem Exp $");
|
||||
__RCSID("$NetBSD: cuserid.c,v 1.3 1998/02/03 18:58:08 perry Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -49,7 +49,7 @@ char *
|
|||
cuserid(s)
|
||||
char *s;
|
||||
{
|
||||
register struct passwd *pwd;
|
||||
struct passwd *pwd;
|
||||
|
||||
if ((pwd = getpwuid(geteuid())) == NULL) {
|
||||
if (s)
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: regexp.c,v 1.7 1997/10/09 10:21:18 lukem Exp $");
|
||||
__RCSID("$NetBSD: regexp.c,v 1.8 1998/02/03 18:58:10 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <regexp.h>
|
||||
|
@ -209,10 +209,10 @@ regexp *
|
|||
regcomp(exp)
|
||||
const char *exp;
|
||||
{
|
||||
register regexp *r;
|
||||
register char *scan;
|
||||
register char *longest;
|
||||
register int len;
|
||||
regexp *r;
|
||||
char *scan;
|
||||
char *longest;
|
||||
int len;
|
||||
int flags;
|
||||
|
||||
if (exp == NULL)
|
||||
|
@ -300,10 +300,10 @@ reg(paren, flagp)
|
|||
int paren; /* Parenthesized? */
|
||||
int *flagp;
|
||||
{
|
||||
register char *ret;
|
||||
register char *br;
|
||||
register char *ender;
|
||||
register int parno = 0;
|
||||
char *ret;
|
||||
char *br;
|
||||
char *ender;
|
||||
int parno = 0;
|
||||
int flags;
|
||||
|
||||
*flagp = HASWIDTH; /* Tentatively. */
|
||||
|
@ -371,9 +371,9 @@ static char *
|
|||
regbranch(flagp)
|
||||
int *flagp;
|
||||
{
|
||||
register char *ret;
|
||||
register char *chain;
|
||||
register char *latest;
|
||||
char *ret;
|
||||
char *chain;
|
||||
char *latest;
|
||||
int flags;
|
||||
|
||||
*flagp = WORST; /* Tentatively. */
|
||||
|
@ -411,9 +411,9 @@ static char *
|
|||
regpiece(flagp)
|
||||
int *flagp;
|
||||
{
|
||||
register char *ret;
|
||||
register char op;
|
||||
register char *next;
|
||||
char *ret;
|
||||
char op;
|
||||
char *next;
|
||||
int flags;
|
||||
|
||||
ret = regatom(&flags);
|
||||
|
@ -475,7 +475,7 @@ static char *
|
|||
regatom(flagp)
|
||||
int *flagp;
|
||||
{
|
||||
register char *ret;
|
||||
char *ret;
|
||||
int flags;
|
||||
|
||||
*flagp = WORST; /* Tentatively. */
|
||||
|
@ -493,8 +493,8 @@ int *flagp;
|
|||
*flagp |= HASWIDTH|SIMPLE;
|
||||
break;
|
||||
case '[': {
|
||||
register int class;
|
||||
register int classend;
|
||||
int class;
|
||||
int classend;
|
||||
|
||||
if (*regparse == '^') { /* Complement of range. */
|
||||
ret = regnode(ANYBUT);
|
||||
|
@ -589,7 +589,7 @@ int *flagp;
|
|||
*/
|
||||
{
|
||||
char *regprev;
|
||||
register char ch;
|
||||
char ch;
|
||||
|
||||
regparse--; /* Look at cur char */
|
||||
ret = regnode(EXACTLY);
|
||||
|
@ -653,8 +653,8 @@ static char * /* Location. */
|
|||
regnode(op)
|
||||
char op;
|
||||
{
|
||||
register char *ret;
|
||||
register char *ptr;
|
||||
char *ret;
|
||||
char *ptr;
|
||||
|
||||
ret = regcode;
|
||||
if (ret == ®dummy) {
|
||||
|
@ -694,9 +694,9 @@ reginsert(op, opnd)
|
|||
char op;
|
||||
char *opnd;
|
||||
{
|
||||
register char *src;
|
||||
register char *dst;
|
||||
register char *place;
|
||||
char *src;
|
||||
char *dst;
|
||||
char *place;
|
||||
|
||||
if (regcode == ®dummy) {
|
||||
regsize += 3;
|
||||
|
@ -723,9 +723,9 @@ regtail(p, val)
|
|||
char *p;
|
||||
char *val;
|
||||
{
|
||||
register char *scan;
|
||||
register char *temp;
|
||||
register int offset;
|
||||
char *scan;
|
||||
char *temp;
|
||||
int offset;
|
||||
|
||||
if (p == ®dummy)
|
||||
return;
|
||||
|
@ -791,10 +791,10 @@ STATIC char *regprop __P((char *));
|
|||
*/
|
||||
int
|
||||
regexec(prog, string)
|
||||
register const regexp *prog;
|
||||
register const char *string;
|
||||
const regexp *prog;
|
||||
const char *string;
|
||||
{
|
||||
register char *s;
|
||||
char *s;
|
||||
|
||||
/* Be paranoid... */
|
||||
if (prog == NULL || string == NULL) {
|
||||
|
@ -855,9 +855,9 @@ regtry(prog, string)
|
|||
const regexp *prog;
|
||||
const char *string;
|
||||
{
|
||||
register int i;
|
||||
register char **sp;
|
||||
register char **ep;
|
||||
int i;
|
||||
char **sp;
|
||||
char **ep;
|
||||
|
||||
reginput = (char *)string; /* XXX */
|
||||
regstartp = (char **)prog->startp; /* XXX */
|
||||
|
@ -891,7 +891,7 @@ static int /* 0 failure, 1 success */
|
|||
regmatch(prog)
|
||||
char *prog;
|
||||
{
|
||||
register char *scan; /* Current node. */
|
||||
char *scan; /* Current node. */
|
||||
char *next; /* Next node. */
|
||||
|
||||
scan = prog;
|
||||
|
@ -936,8 +936,8 @@ char *prog;
|
|||
reginput++;
|
||||
break;
|
||||
case EXACTLY: {
|
||||
register int len;
|
||||
register char *opnd;
|
||||
int len;
|
||||
char *opnd;
|
||||
|
||||
opnd = OPERAND(scan);
|
||||
/* Inline the first character, for speed. */
|
||||
|
@ -972,8 +972,8 @@ char *prog;
|
|||
case OPEN+7:
|
||||
case OPEN+8:
|
||||
case OPEN+9: {
|
||||
register int no;
|
||||
register char *save;
|
||||
int no;
|
||||
char *save;
|
||||
|
||||
no = OP(scan) - OPEN;
|
||||
save = reginput;
|
||||
|
@ -1000,8 +1000,8 @@ char *prog;
|
|||
case CLOSE+7:
|
||||
case CLOSE+8:
|
||||
case CLOSE+9: {
|
||||
register int no;
|
||||
register char *save;
|
||||
int no;
|
||||
char *save;
|
||||
|
||||
no = OP(scan) - CLOSE;
|
||||
save = reginput;
|
||||
|
@ -1020,7 +1020,7 @@ char *prog;
|
|||
}
|
||||
break;
|
||||
case BRANCH: {
|
||||
register char *save;
|
||||
char *save;
|
||||
|
||||
if (OP(next) != BRANCH) /* No choice. */
|
||||
next = OPERAND(scan); /* Avoid recursion. */
|
||||
|
@ -1039,10 +1039,10 @@ char *prog;
|
|||
break;
|
||||
case STAR:
|
||||
case PLUS: {
|
||||
register char nextch;
|
||||
register int no;
|
||||
register char *save;
|
||||
register int min;
|
||||
char nextch;
|
||||
int no;
|
||||
char *save;
|
||||
int min;
|
||||
|
||||
/*
|
||||
* Lookahead to avoid useless match attempts
|
||||
|
@ -1093,9 +1093,9 @@ static int
|
|||
regrepeat(p)
|
||||
char *p;
|
||||
{
|
||||
register int count = 0;
|
||||
register char *scan;
|
||||
register char *opnd;
|
||||
int count = 0;
|
||||
char *scan;
|
||||
char *opnd;
|
||||
|
||||
scan = reginput;
|
||||
opnd = OPERAND(p);
|
||||
|
@ -1137,9 +1137,9 @@ char *p;
|
|||
*/
|
||||
static char *
|
||||
regnext(p)
|
||||
register char *p;
|
||||
char *p;
|
||||
{
|
||||
register int offset;
|
||||
int offset;
|
||||
|
||||
if (p == ®dummy)
|
||||
return(NULL);
|
||||
|
@ -1163,9 +1163,9 @@ void
|
|||
regdump(r)
|
||||
regexp *r;
|
||||
{
|
||||
register char *s;
|
||||
register char op = EXACTLY; /* Arbitrary non-END op. */
|
||||
register char *next;
|
||||
char *s;
|
||||
char op = EXACTLY; /* Arbitrary non-END op. */
|
||||
char *next;
|
||||
extern char *strchr();
|
||||
|
||||
|
||||
|
@ -1207,7 +1207,7 @@ static char *
|
|||
regprop(op)
|
||||
char *op;
|
||||
{
|
||||
register char *p;
|
||||
char *p;
|
||||
static char buf[50];
|
||||
|
||||
(void)strncpy(buf, ":", sizeof(buf) - 1);
|
||||
|
@ -1308,9 +1308,9 @@ strcspn(s1, s2)
|
|||
char *s1;
|
||||
char *s2;
|
||||
{
|
||||
register char *scan1;
|
||||
register char *scan2;
|
||||
register int count;
|
||||
char *scan1;
|
||||
char *scan2;
|
||||
int count;
|
||||
|
||||
count = 0;
|
||||
for (scan1 = s1; *scan1 != '\0'; scan1++) {
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: regsub.c,v 1.5 1997/10/09 10:21:26 lukem Exp $");
|
||||
__RCSID("$NetBSD: regsub.c,v 1.6 1998/02/03 18:58:11 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <regexp.h>
|
||||
|
@ -44,11 +44,11 @@ const regexp *prog;
|
|||
const char *source;
|
||||
char *dest;
|
||||
{
|
||||
register char *src;
|
||||
register char *dst;
|
||||
register char c;
|
||||
register int no;
|
||||
register int len;
|
||||
char *src;
|
||||
char *dst;
|
||||
char c;
|
||||
int no;
|
||||
int len;
|
||||
|
||||
if (prog == NULL || source == NULL || dest == NULL) {
|
||||
regerror("NULL parm to regsub");
|
||||
|
|
Loading…
Reference in New Issue