run GNU protoize
protect header files nuke some dead code regenerate configure script let silly code die
This commit is contained in:
55
c_ksh.c
55
c_ksh.c
@ -1,4 +1,4 @@
|
||||
/** $MirBSD: c_ksh.c,v 1.8 2004/10/28 11:11:16 tg Exp $ */
|
||||
/** $MirBSD: c_ksh.c,v 1.9 2004/10/28 11:53:39 tg Exp $ */
|
||||
/* $OpenBSD: c_ksh.c,v 1.18 2004/02/10 13:03:36 jmc Exp $ */
|
||||
|
||||
/*
|
||||
@ -13,11 +13,10 @@
|
||||
#include <sys/cygwin.h>
|
||||
#endif /* __CYGWIN__ */
|
||||
|
||||
__RCSID("$MirBSD: c_ksh.c,v 1.8 2004/10/28 11:11:16 tg Exp $");
|
||||
__RCSID("$MirBSD: c_ksh.c,v 1.9 2004/10/28 11:53:39 tg Exp $");
|
||||
|
||||
int
|
||||
c_cd(wp)
|
||||
char **wp;
|
||||
c_cd(char **wp)
|
||||
{
|
||||
int optc;
|
||||
int physical = Flag(FPHYSICAL);
|
||||
@ -178,8 +177,7 @@ c_cd(wp)
|
||||
}
|
||||
|
||||
int
|
||||
c_pwd(wp)
|
||||
char **wp;
|
||||
c_pwd(char **wp)
|
||||
{
|
||||
int optc;
|
||||
int physical = Flag(FPHYSICAL);
|
||||
@ -223,8 +221,7 @@ c_pwd(wp)
|
||||
}
|
||||
|
||||
int
|
||||
c_print(wp)
|
||||
char **wp;
|
||||
c_print(char **wp)
|
||||
{
|
||||
#define PO_NL BIT(0) /* print newline */
|
||||
#define PO_EXPAND BIT(1) /* expand backslash sequences */
|
||||
@ -447,8 +444,7 @@ c_print(wp)
|
||||
}
|
||||
|
||||
int
|
||||
c_whence(wp)
|
||||
char **wp;
|
||||
c_whence(char **wp)
|
||||
{
|
||||
struct tbl *tp;
|
||||
char *id;
|
||||
@ -570,8 +566,7 @@ c_whence(wp)
|
||||
|
||||
/* Deal with command -vV - command -p dealt with in comexec() */
|
||||
int
|
||||
c_command(wp)
|
||||
char **wp;
|
||||
c_command(char **wp)
|
||||
{
|
||||
/* Let c_whence do the work. Note that c_command() must be
|
||||
* a distinct function from c_whence() (tested in comexec()).
|
||||
@ -581,8 +576,7 @@ c_command(wp)
|
||||
|
||||
/* typeset, export, and readonly */
|
||||
int
|
||||
c_typeset(wp)
|
||||
char **wp;
|
||||
c_typeset(char **wp)
|
||||
{
|
||||
struct block *l = e->loc;
|
||||
struct tbl *vp, **p;
|
||||
@ -878,8 +872,7 @@ c_typeset(wp)
|
||||
}
|
||||
|
||||
int
|
||||
c_alias(wp)
|
||||
char **wp;
|
||||
c_alias(char **wp)
|
||||
{
|
||||
struct table *t = &aliases;
|
||||
int rv = 0, rflag = 0, tflag, Uflag = 0, pflag = 0;
|
||||
@ -1015,8 +1008,7 @@ c_alias(wp)
|
||||
}
|
||||
|
||||
int
|
||||
c_unalias(wp)
|
||||
char **wp;
|
||||
c_unalias(char **wp)
|
||||
{
|
||||
struct table *t = &aliases;
|
||||
struct tbl *ap;
|
||||
@ -1069,8 +1061,7 @@ c_unalias(wp)
|
||||
|
||||
#ifdef KSH
|
||||
int
|
||||
c_let(wp)
|
||||
char **wp;
|
||||
c_let(char **wp)
|
||||
{
|
||||
int rv = 1;
|
||||
long val;
|
||||
@ -1089,8 +1080,7 @@ c_let(wp)
|
||||
#endif /* KSH */
|
||||
|
||||
int
|
||||
c_jobs(wp)
|
||||
char **wp;
|
||||
c_jobs(char **wp)
|
||||
{
|
||||
int optc;
|
||||
int flag = 0;
|
||||
@ -1128,8 +1118,7 @@ c_jobs(wp)
|
||||
|
||||
#ifdef JOBS
|
||||
int
|
||||
c_fgbg(wp)
|
||||
char **wp;
|
||||
c_fgbg(char **wp)
|
||||
{
|
||||
int bg = strcmp(*wp, "bg") == 0;
|
||||
int UNINITIALIZED(rv);
|
||||
@ -1161,11 +1150,7 @@ static char *kill_fmt_entry(void *arg, int i, char *buf, int buflen);
|
||||
|
||||
/* format a single kill item */
|
||||
static char *
|
||||
kill_fmt_entry(arg, i, buf, buflen)
|
||||
void *arg;
|
||||
int i;
|
||||
char *buf;
|
||||
int buflen;
|
||||
kill_fmt_entry(void *arg, int i, char *buf, int buflen)
|
||||
{
|
||||
struct kill_info *ki = (struct kill_info *) arg;
|
||||
|
||||
@ -1185,8 +1170,7 @@ kill_fmt_entry(arg, i, buf, buflen)
|
||||
|
||||
|
||||
int
|
||||
c_kill(wp)
|
||||
char **wp;
|
||||
c_kill(char **wp)
|
||||
{
|
||||
Trap *t = (Trap *) 0;
|
||||
char *p;
|
||||
@ -1295,8 +1279,7 @@ c_kill(wp)
|
||||
}
|
||||
|
||||
void
|
||||
getopts_reset(val)
|
||||
int val;
|
||||
getopts_reset(int val)
|
||||
{
|
||||
if (val >= 1) {
|
||||
ksh_getopt_reset(&user_opt,
|
||||
@ -1306,8 +1289,7 @@ getopts_reset(val)
|
||||
}
|
||||
|
||||
int
|
||||
c_getopts(wp)
|
||||
char **wp;
|
||||
c_getopts(char **wp)
|
||||
{
|
||||
int argc;
|
||||
const char *options;
|
||||
@ -1406,8 +1388,7 @@ c_getopts(wp)
|
||||
|
||||
#ifdef EMACS
|
||||
int
|
||||
c_bind(wp)
|
||||
char **wp;
|
||||
c_bind(char **wp)
|
||||
{
|
||||
int rv = 0, macro = 0, list = 0;
|
||||
char *cp;
|
||||
|
Reference in New Issue
Block a user