mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-12 21:20:47 +02:00
second set of ANSI C changes: C89-style function declarations, more inline functions, remove register keyword
This commit is contained in:
+4
-8
@@ -67,8 +67,7 @@ static void print_alias (alias_t *, int);
|
||||
|
||||
/* Hack the alias command in a Korn shell way. */
|
||||
int
|
||||
alias_builtin (list)
|
||||
WORD_LIST *list;
|
||||
alias_builtin (WORD_LIST *list)
|
||||
{
|
||||
int any_failed, offset, pflag, dflags;
|
||||
alias_t **alias_list, *t;
|
||||
@@ -167,10 +166,9 @@ $END
|
||||
#if defined (ALIAS)
|
||||
/* Remove aliases named in LIST from the aliases database. */
|
||||
int
|
||||
unalias_builtin (list)
|
||||
register WORD_LIST *list;
|
||||
unalias_builtin (WORD_LIST *list)
|
||||
{
|
||||
register alias_t *alias;
|
||||
alias_t *alias;
|
||||
int opt, aflag;
|
||||
|
||||
aflag = 0;
|
||||
@@ -224,9 +222,7 @@ unalias_builtin (list)
|
||||
|
||||
/* Output ALIAS in such a way as to allow it to be read back in. */
|
||||
static void
|
||||
print_alias (alias, flags)
|
||||
alias_t *alias;
|
||||
int flags;
|
||||
print_alias (alias_t *alias, int flags)
|
||||
{
|
||||
char *value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user