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

38
exec.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: exec.c,v 1.4 2004/10/28 11:03:23 tg Exp $ */
/** $MirBSD: exec.c,v 1.5 2004/10/28 11:11:18 tg Exp $ */
/* $OpenBSD: exec.c,v 1.31 2003/12/15 05:25:52 otto Exp $ */
/*
@ -10,6 +10,8 @@
#include <ctype.h>
#include "ksh_stat.h"
__RCSID("$MirBSD: exec.c,v 1.5 2004/10/28 11:11:18 tg Exp $");
/* Does ps4 get parameter substitutions done? */
#ifdef KSH
# define PS4_SUBSTITUTE(s) substitute((s), 0)
@ -17,25 +19,25 @@
# define PS4_SUBSTITUTE(s) (s)
#endif /* KSH */
static int comexec ARGS((struct op *t, struct tbl *volatile tp, char **ap,
int volatile flags));
static void scriptexec ARGS((struct op *tp, char **ap));
static int call_builtin ARGS((struct tbl *tp, char **wp));
static int iosetup ARGS((struct ioword *iop, struct tbl *tp));
static int herein ARGS((const char *content, int sub));
static int comexec(struct op *t, struct tbl *volatile tp, char **ap,
int volatile flags);
static void scriptexec(struct op *tp, char **ap);
static int call_builtin(struct tbl *tp, char **wp);
static int iosetup(struct ioword *iop, struct tbl *tp);
static int herein(const char *content, int sub);
#ifdef KSH
static char *do_selectargs ARGS((char **ap, bool_t print_menu));
static char *do_selectargs(char **ap, bool_t print_menu);
#endif /* KSH */
#ifdef KSH
static int dbteste_isa ARGS((Test_env *te, Test_meta meta));
static const char *dbteste_getopnd ARGS((Test_env *te, Test_op op,
int do_eval));
static int dbteste_eval ARGS((Test_env *te, Test_op op, const char *opnd1,
const char *opnd2, int do_eval));
static void dbteste_error ARGS((Test_env *te, int offset, const char *msg));
static int dbteste_isa(Test_env *te, Test_meta meta);
static const char *dbteste_getopnd(Test_env *te, Test_op op,
int do_eval);
static int dbteste_eval(Test_env *te, Test_op op, const char *opnd1,
const char *opnd2, int do_eval);
static void dbteste_error(Test_env *te, int offset, const char *msg);
#endif /* KSH */
#ifdef OS2
static int search_access1 ARGS((const char *path, int mode, int *errnop));
static int search_access1(const char *path, int mode, int *errnop);
#endif /* OS2 */
@ -957,7 +959,7 @@ define(name, t)
void
builtin(name, func)
const char *name;
int (*func) ARGS((char **));
int (*func)(char **);
{
struct tbl *tp;
Tflag flag;
@ -1545,7 +1547,7 @@ struct select_menu_info {
int num_width;
} info;
static char *select_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static char *select_fmt_entry(void *arg, int i, char *buf, int buflen);
/* format a single select menu item */
static char *
@ -1607,7 +1609,7 @@ pr_menu(ap)
/* XXX: horrible kludge to fit within the framework */
static char *plain_fmt_entry ARGS((void *arg, int i, char *buf, int buflen));
static char *plain_fmt_entry(void *arg, int i, char *buf, int buflen);
static char *
plain_fmt_entry(arg, i, buf, buflen)