mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 23:20:49 +02:00
Bash-5.3-alpha release
This commit is contained in:
+9
-14
@@ -4,7 +4,7 @@
|
||||
|
||||
/* Original version by tromey@cns.caltech.edu, Fri Feb 7 1992. */
|
||||
|
||||
/* Copyright (C) 1993-2020 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993-2020,2022 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -41,12 +41,11 @@
|
||||
#include "shell.h"
|
||||
#include <readline/readline.h>
|
||||
|
||||
static int _strcompare PARAMS((char **, char **));
|
||||
static int _strcompare (const char **, const char **);
|
||||
|
||||
/* Find greatest common prefix of two strings. */
|
||||
static int
|
||||
string_gcd (s1, s2)
|
||||
char *s1, *s2;
|
||||
string_gcd (char *s1, char *s2)
|
||||
{
|
||||
register int i;
|
||||
|
||||
@@ -63,13 +62,12 @@ string_gcd (s1, s2)
|
||||
}
|
||||
|
||||
static char *
|
||||
really_munge_braces (array, real_start, real_end, gcd_zero)
|
||||
char **array;
|
||||
int real_start, real_end, gcd_zero;
|
||||
really_munge_braces (char **array, int real_start, int real_end, int gcd_zero)
|
||||
{
|
||||
int start, end, gcd;
|
||||
char *result, *subterm, *x;
|
||||
int result_size, flag, tlen;
|
||||
size_t result_size;
|
||||
int flag, tlen;
|
||||
|
||||
flag = 0;
|
||||
|
||||
@@ -150,8 +148,7 @@ really_munge_braces (array, real_start, real_end, gcd_zero)
|
||||
}
|
||||
|
||||
static int
|
||||
_strcompare (s1, s2)
|
||||
char **s1, **s2;
|
||||
_strcompare (const char **s1, const char **s2)
|
||||
{
|
||||
int result;
|
||||
|
||||
@@ -163,8 +160,7 @@ _strcompare (s1, s2)
|
||||
}
|
||||
|
||||
static int
|
||||
hack_braces_completion (names)
|
||||
char **names;
|
||||
hack_braces_completion (char **names)
|
||||
{
|
||||
register int i;
|
||||
char *temp;
|
||||
@@ -187,8 +183,7 @@ hack_braces_completion (names)
|
||||
/* We handle quoting ourselves within hack_braces_completion, so we turn off
|
||||
rl_filename_quoting_desired and rl_filename_quoting_function. */
|
||||
int
|
||||
bash_brace_completion (count, ignore)
|
||||
int count, ignore;
|
||||
bash_brace_completion (int count, int ignore)
|
||||
{
|
||||
rl_compignore_func_t *orig_ignore_func;
|
||||
rl_compentry_func_t *orig_entry_func;
|
||||
|
||||
Reference in New Issue
Block a user