Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress de-__P, remove obsolete "register" declarations.
details: https://anonhg.NetBSD.org/src/rev/944004f31a5a
branches: trunk
changeset: 573731:944004f31a5a
user: perry <perry%NetBSD.org@localhost>
date: Sun Feb 06 06:05:18 2005 +0000
description:
de-__P, remove obsolete "register" declarations.
diffstat:
regress/include/bitstring/bitstring_test.c | 6 ++--
regress/lib/libc/db/dbtest.c | 40 +++++++++++++++---------------
regress/lib/libc/gen/tfmtcheck/tfmtcheck.c | 4 +-
regress/lib/libc/getaddrinfo/gaitest.c | 8 +++---
regress/lib/libc/popen/popen.c | 6 ++--
regress/lib/libc/regex/debug.c | 30 +++++++++++-----------
regress/lib/libc/regex/debug.ih | 8 +++---
regress/lib/libc/regex/main.c | 24 +++++++++---------
regress/lib/libc/regex/main.ih | 18 ++++++------
regress/lib/libc/regex/split.c | 36 +++++++++++++-------------
regress/lib/libc/string/swabcheck.c | 2 +-
regress/lib/libc/time/strptime/main.c | 6 ++--
regress/sys/arch/m68k/emuspeed/emuspeed.c | 4 +-
regress/sys/arch/m68k/emuspeed/speed.h | 24 +++++++++---------
regress/sys/crypto/blowfish/bftest.c | 8 +++---
regress/sys/crypto/cast128/casttest.c | 6 ++--
regress/sys/crypto/des/destest.c | 6 ++--
regress/sys/crypto/rijndael/rijndaeltest.c | 6 ++--
regress/sys/kern/getcwd/getcwd.c | 32 ++++++++++++------------
regress/sys/kern/getcwd/getcwd.h | 4 +-
regress/sys/kern/sysvmsg/msgtest.c | 16 ++++++------
regress/sys/kern/sysvsem/semtest.c | 16 ++++++------
regress/sys/kern/sysvshm/shmtest.c | 16 ++++++------
regress/sys/kern/unfdpass/unfdpass.c | 10 +++---
regress/sys/uvm/mmap/mmap.c | 8 +++---
25 files changed, 172 insertions(+), 172 deletions(-)
diffs (truncated from 798 to 300 lines):
diff -r 8e441825d4a0 -r 944004f31a5a regress/include/bitstring/bitstring_test.c
--- a/regress/include/bitstring/bitstring_test.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/include/bitstring/bitstring_test.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bitstring_test.c,v 1.7 2003/01/04 23:43:03 wiz Exp $ */
+/* $NetBSD: bitstring_test.c,v 1.8 2005/02/06 06:05:18 perry Exp $ */
/*-
* Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -225,7 +225,7 @@
bitstr_t *b;
int n;
{
- register int i = bitstr_size(n);
+ int i = bitstr_size(n);
while(i--)
*(b + i) = 0;
}
@@ -234,7 +234,7 @@
bitstr_t *b;
int n;
{
- register int i;
+ int i;
int jc, js;
bit_ffc(b, n, &jc);
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/db/dbtest.c
--- a/regress/lib/libc/db/dbtest.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/db/dbtest.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dbtest.c,v 1.10 2003/08/07 09:51:08 agc Exp $ */
+/* $NetBSD: dbtest.c,v 1.11 2005/02/06 06:05:18 perry Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)dbtest.c 8.17 (Berkeley) 9/1/94";
#else
-static char rcsid[] = "$NetBSD: dbtest.c,v 1.10 2003/08/07 09:51:08 agc Exp $";
+static char rcsid[] = "$NetBSD: dbtest.c,v 1.11 2005/02/06 06:05:18 perry Exp $";
#endif
#endif /* not lint */
@@ -59,22 +59,22 @@
enum S { COMMAND, COMPARE, GET, PUT, REMOVE, SEQ, SEQFLAG, KEY, DATA };
-void compare __P((DBT *, DBT *));
-DBTYPE dbtype __P((char *));
-void dump __P((DB *, int));
-void err __P((const char *, ...));
-void get __P((DB *, DBT *));
-void getdata __P((DB *, DBT *, DBT *));
-void put __P((DB *, DBT *, DBT *));
-void rem __P((DB *, DBT *));
-char *sflags __P((int));
-void synk __P((DB *));
-void *rfile __P((char *, size_t *));
-void seq __P((DB *, DBT *));
-u_int setflags __P((char *));
-void *setinfo __P((DBTYPE, char *));
-void usage __P((void));
-void *xmalloc __P((char *, size_t));
+void compare(DBT *, DBT *);
+DBTYPE dbtype(char *);
+void dump(DB *, int);
+void err(const char *, ...);
+void get(DB *, DBT *);
+void getdata(DB *, DBT *, DBT *);
+void put(DB *, DBT *, DBT *);
+void rem(DB *, DBT *);
+char *sflags(int);
+void synk(DB *);
+void *rfile(char *, size_t *);
+void seq(DB *, DBT *);
+u_int setflags(char *);
+void *setinfo(DBTYPE, char *);
+void usage(void);
+void *xmalloc(char *, size_t);
DBTYPE type; /* Database type. */
void *infop; /* Iflags. */
@@ -342,8 +342,8 @@
compare(db1, db2)
DBT *db1, *db2;
{
- register size_t len;
- register u_char *p1, *p2;
+ size_t len;
+ u_char *p1, *p2;
if (db1->size != db2->size)
printf("compare failed: key->data len %lu != data len %lu\n",
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/gen/tfmtcheck/tfmtcheck.c
--- a/regress/lib/libc/gen/tfmtcheck/tfmtcheck.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/gen/tfmtcheck/tfmtcheck.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tfmtcheck.c,v 1.1 2002/03/23 17:42:21 christos Exp $ */
+/* $NetBSD: tfmtcheck.c,v 1.2 2005/02/06 06:05:19 perry Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
-const char *fmtcheck __P((const char *f1, const char *f2))
+const char *fmtcheck(const char *f1, const char *f2)
__attribute__((__format_arg__(2)));
#include <err.h>
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/getaddrinfo/gaitest.c
--- a/regress/lib/libc/getaddrinfo/gaitest.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/getaddrinfo/gaitest.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gaitest.c,v 1.5 2004/01/02 15:07:39 itojun Exp $ */
+/* $NetBSD: gaitest.c,v 1.6 2005/02/06 06:05:19 perry Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, and 2002 WIDE Project.
@@ -45,9 +45,9 @@
char serv[NI_MAXSERV];
int vflag = 0;
-static void usage __P((void));
-static void print1 __P((const char *, const struct addrinfo *, char *, char *));
-int main __P((int, char *[]));
+static void usage(void);
+static void print1(const char *, const struct addrinfo *, char *, char *);
+int main(int, char *[]);
static void
usage()
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/popen/popen.c
--- a/regress/lib/libc/popen/popen.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/popen/popen.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: popen.c,v 1.1.1.1 1999/09/30 09:23:23 tron Exp $ */
+/* $NetBSD: popen.c,v 1.2 2005/02/06 06:05:19 perry Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: popen.c,v 1.1.1.1 1999/09/30 09:23:23 tron Exp $");
+__RCSID("$NetBSD: popen.c,v 1.2 2005/02/06 06:05:19 perry Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -60,7 +60,7 @@
/* 640KB ought to be enough for everyone. */
#define DATAFILE "popen.data"
-int main __P((int, char *[]));
+int main(int, char *[]);
main(argc, argv)
int argc;
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/regex/debug.c
--- a/regress/lib/libc/regex/debug.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/regex/debug.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.c,v 1.3 2002/02/21 07:38:18 itojun Exp $ */
+/* $NetBSD: debug.c,v 1.4 2005/02/06 06:05:19 perry Exp $ */
/*-
* Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -54,10 +54,10 @@
regex_t *r;
FILE *d;
{
- register struct re_guts *g = r->re_g;
- register int i;
- register int c;
- register int last;
+ struct re_guts *g = r->re_g;
+ int i;
+ int c;
+ int last;
int nincat[NC];
fprintf(d, "%ld states, %d categories", (long)g->nstates,
@@ -120,21 +120,21 @@
/*
- s_print - print the strip for debugging
- == static void s_print(register struct re_guts *g, FILE *d);
+ == static void s_print(struct re_guts *g, FILE *d);
*/
static void
s_print(g, d)
-register struct re_guts *g;
+struct re_guts *g;
FILE *d;
{
- register sop *s;
- register cset *cs;
- register int i;
- register int done = 0;
- register sop opnd;
- register int col = 0;
- register int last;
- register sopno offset = 2;
+ sop *s;
+ cset *cs;
+ int i;
+ int done = 0;
+ sop opnd;
+ int col = 0;
+ int last;
+ sopno offset = 2;
# define GAP() { if (offset % 5 == 0) { \
if (col > 40) { \
fprintf(d, "\n\t"); \
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/regex/debug.ih
--- a/regress/lib/libc/regex/debug.ih Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/regex/debug.ih Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.ih,v 1.2 1995/04/20 22:39:47 cgd Exp $ */
+/* $NetBSD: debug.ih,v 1.3 2005/02/06 06:05:19 perry Exp $ */
/* ========= begin header generated by ./mkh ========= */
#ifdef __cplusplus
@@ -6,9 +6,9 @@
#endif
/* === debug.c === */
-void regprint __P((regex_t *r, FILE *d));
-static void s_print __P((register struct re_guts *g, FILE *d));
-static char *regchar __P((int ch));
+void regprint(regex_t *r, FILE *d);
+static void s_print(struct re_guts *g, FILE *d);
+static char *regchar(int ch);
#ifdef __cplusplus
}
diff -r 8e441825d4a0 -r 944004f31a5a regress/lib/libc/regex/main.c
--- a/regress/lib/libc/regex/main.c Sun Feb 06 05:58:20 2005 +0000
+++ b/regress/lib/libc/regex/main.c Sun Feb 06 06:05:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.5 2002/02/21 07:38:18 itojun Exp $ */
+/* $NetBSD: main.c,v 1.6 2005/02/06 06:05:19 perry Exp $ */
/*-
* Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
size_t len;
int c;
int errflg = 0;
- register int i;
+ int i;
extern int optind;
extern char *optarg;
@@ -254,7 +254,7 @@
int err;
int len;
char *type = (opts & REG_EXTENDED) ? "ERE" : "BRE";
- register int i;
+ int i;
char *grump;
char f0copy[1000];
char f2copy[1000];
@@ -351,9 +351,9 @@
int type; /* 'c' compile, 'e' exec */
char *s;
{
- register char *p;
- register int o = (type == 'c') ? copts : eopts;
- register char *legal = (type == 'c') ? "bisnmp" : "^$#tl";
+ char *p;
+ int o = (type == 'c') ? copts : eopts;
+ char *legal = (type == 'c') ? "bisnmp" : "^$#tl";
for (p = s; *p != '\0'; p++)
if (strchr(legal, *p) != NULL)
@@ -413,11 +413,11 @@
/*
- fixstr - transform magic characters in strings
- == void fixstr(register char *p);
+ == void fixstr(char *p);
*/
void
fixstr(p)
-register char *p;
+char *p;
{
if (p == NULL)
return;
@@ -443,11 +443,11 @@
regmatch_t sub;
char *should;
{
- register int len;
- register int shlen;
Home |
Main Index |
Thread Index |
Old Index