de-register, de-inline, de-__P

This commit is contained in:
tg
2004-10-28 11:11:19 +00:00
parent 7ad780aa98
commit 75e25d6e50
36 changed files with 660 additions and 656 deletions

24
misc.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: misc.c,v 1.10 2004/10/28 11:03:23 tg Exp $ */
/** $MirBSD: misc.c,v 1.11 2004/10/28 11:11:18 tg Exp $ */
/* $OpenBSD: misc.c,v 1.20 2003/10/22 07:40:38 jmc Exp $ */
/*
@ -11,7 +11,7 @@
# include <limits.h>
#endif
__RCSID("$MirBSD: misc.c,v 1.10 2004/10/28 11:03:23 tg Exp $");
__RCSID("$MirBSD: misc.c,v 1.11 2004/10/28 11:11:18 tg Exp $");
#ifndef UCHAR_MAX
# define UCHAR_MAX 0xFF
@ -19,10 +19,10 @@ __RCSID("$MirBSD: misc.c,v 1.10 2004/10/28 11:03:23 tg Exp $");
short ctypes [UCHAR_MAX+1]; /* type bits for unsigned char */
static int do_gmatch ARGS((const unsigned char *s, const unsigned char *p,
static int do_gmatch(const unsigned char *s, const unsigned char *p,
const unsigned char *se, const unsigned char *pe,
int isfile));
static const unsigned char *cclass ARGS((const unsigned char *p, int sub));
int isfile);
static const unsigned char *cclass(const unsigned char *p, int sub);
/*
* Fast character classes
@ -215,8 +215,8 @@ struct options_info {
} opts[NELEM(options)];
};
static char *options_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static void printoptions ARGS((int verbose));
static char *options_fmt_entry(void *arg, int i, char *buf, int buflen);
static void printoptions(int verbose);
/* format a single select menu item */
static char *
@ -832,13 +832,13 @@ pat_scan(p, pe, match_sep)
/*
* quick sort of array of generic pointers to objects.
*/
static void qsort1 ARGS((void **base, void **lim, int (*f)(void *, void *)));
static void qsort1(void **base, void **lim, int (*f)(void *, void *));
void
qsortp(base, n, f)
void **base; /* base address */
size_t n; /* elements */
int (*f) ARGS((void *, void *)); /* compare function */
int (*f)(void *, void *); /* compare function */
{
qsort1(base, base + n, f);
}
@ -853,7 +853,7 @@ qsortp(base, n, f)
static void
qsort1(base, lim, f)
void **base, **lim;
int (*f) ARGS((void *, void *));
int (*f)(void *, void *);
{
void **i, **j;
void **lptr, **hptr;
@ -1108,7 +1108,7 @@ void
print_columns(shf, n, func, arg, max_width, prefcol)
struct shf *shf;
int n;
char *(*func) ARGS((void *, int, char *, int));
char *(*func)(void *, int, char *, int);
void *arg;
int max_width;
int prefcol;
@ -1325,7 +1325,7 @@ ksh_get_wd(buf, bsize)
return ret;
#else /* HAVE_GETCWD */
extern char *getwd ARGS((char *));
extern char *getwd(char *);
char *b;
int len;