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

36
edit.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: edit.c,v 1.8 2004/10/28 11:03:22 tg Exp $ */
/** $MirBSD: edit.c,v 1.9 2004/10/28 11:11:17 tg Exp $ */
/* $OpenBSD: edit.c,v 1.18 2003/08/22 18:17:10 fgsch Exp $ */
/*
@ -22,20 +22,20 @@
#include <ctype.h>
#include "ksh_stat.h"
__RCSID("$MirBSD: edit.c,v 1.8 2004/10/28 11:03:22 tg Exp $");
__RCSID("$MirBSD: edit.c,v 1.9 2004/10/28 11:11:17 tg Exp $");
#if defined(TIOCGWINSZ)
static RETSIGTYPE x_sigwinch ARGS((int sig));
static RETSIGTYPE x_sigwinch(int sig);
static int got_sigwinch;
static void check_sigwinch ARGS((void));
static void check_sigwinch(void);
#endif /* TIOCGWINSZ */
static int x_file_glob ARGS((int flags, const char *str, int slen,
char ***wordsp));
static int x_command_glob ARGS((int flags, const char *str, int slen,
char ***wordsp));
static int x_locate_word ARGS((const char *buf, int buflen, int pos,
int *startp, int *is_command));
static int x_file_glob(int flags, const char *str, int slen,
char ***wordsp);
static int x_command_glob(int flags, const char *str, int slen,
char ***wordsp);
static int x_locate_word(const char *buf, int buflen, int pos,
int *startp, int *is_command);
static char vdisable_c;
@ -90,7 +90,7 @@ x_sigwinch(int sig GCC_FUNC_ATTR(unused))
}
static void
check_sigwinch ARGS((void))
check_sigwinch(void)
{
if (got_sigwinch) {
struct winsize ws;
@ -455,14 +455,14 @@ x_do_comment(buf, bsize, lenp)
/* Common file/command completion code for vi/emacs */
static char *add_glob ARGS((const char *str, int slen));
static void glob_table ARGS((const char *pat, XPtrV *wp, struct table *tp));
static void glob_path ARGS((int flags, const char *pat, XPtrV *wp,
const char *path));
static char *add_glob(const char *str, int slen);
static void glob_table(const char *pat, XPtrV *wp, struct table *tp);
static void glob_path(int flags, const char *pat, XPtrV *wp,
const char *path);
#if 0 /* not used... */
int x_complete_word ARGS((const char *str, int slen, int is_command,
int *multiple, char **ret));
int x_complete_word(const char *str, int slen, int is_command,
int *multiple, char **ret);
int
x_complete_word(str, slen, is_command, nwordsp, ret)
const char *str;
@ -1051,7 +1051,7 @@ int
x_escape(s, len, putbuf_func)
const char *s;
size_t len;
int putbuf_func ARGS((const char *s, size_t len));
int putbuf_func(const char *s, size_t len);
{
size_t add, wlen;
const char *ifs = str_val(local("IFS", 0));