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

30
eval.c
View File

@ -1,4 +1,4 @@
/** $MirBSD: eval.c,v 1.4 2004/10/28 11:03:22 tg Exp $ */
/** $MirBSD: eval.c,v 1.5 2004/10/28 11:11:17 tg Exp $ */
/* $OpenBSD: eval.c,v 1.14 2003/11/10 21:26:39 millert Exp $ */
/*
@ -10,7 +10,7 @@
#include "ksh_dir.h"
#include "ksh_stat.h"
__RCSID("$MirBSD: eval.c,v 1.4 2004/10/28 11:03:22 tg Exp $");
__RCSID("$MirBSD: eval.c,v 1.5 2004/10/28 11:11:17 tg Exp $");
/*
* string expansion
@ -43,19 +43,19 @@ typedef struct Expand {
#define IFS_WS 1 /* have seen IFS white-space */
#define IFS_NWS 2 /* have seen IFS non-white-space */
static int varsub ARGS((Expand *xp, char *sp, char *word, int *stypep, int *slenp));
static int comsub ARGS((Expand *xp, char *cp));
static char *trimsub ARGS((char *str, char *pat, int how));
static void glob ARGS((char *cp, XPtrV *wp, int markdirs));
static void globit ARGS((XString *xs, char **xpp, char *sp, XPtrV *wp,
int check));
static char *maybe_expand_tilde ARGS((char *p, XString *dsp, char **dpp,
int isassign));
static char *tilde ARGS((char *acp));
static char *homedir ARGS((char *name));
static int varsub(Expand *xp, char *sp, char *word, int *stypep, int *slenp);
static int comsub(Expand *xp, char *cp);
static char *trimsub(char *str, char *pat, int how);
static void glob(char *cp, XPtrV *wp, int markdirs);
static void globit(XString *xs, char **xpp, char *sp, XPtrV *wp,
int check);
static char *maybe_expand_tilde(char *p, XString *dsp, char **dpp,
int isassign);
static char *tilde(char *acp);
static char *homedir(char *name);
#ifdef BRACE_EXPAND
static void alt_expand ARGS((XPtrV *wp, char *start, char *exp_start,
char *end, int fdo));
static void alt_expand(XPtrV *wp, char *start, char *exp_start,
char *end, int fdo);
#endif
/* compile and expand word */
@ -1139,7 +1139,7 @@ globit(xs, xpp, sp, wp, check)
/* Check if p contains something that needs globbing; if it does, 0 is
* returned; if not, p is copied into xs/xp after stripping any MAGICs
*/
static int copy_non_glob ARGS((XString *xs, char **xpp, char *p));
static int copy_non_glob(XString *xs, char **xpp, char *p);
static int
copy_non_glob(xs, xpp, p)
XString *xs;