]> git.ipfire.org Git - thirdparty/bash.git/blame - bashline.h
Bash-5.1 patch 4: fix key-value pair associative array assignment word expansions
[thirdparty/bash.git] / bashline.h
CommitLineData
ccc6cda3
JA
1/* bashline.h -- interface to the bash readline functions in bashline.c. */
2
8868edaf 3/* Copyright (C) 1993-2019 Free Software Foundation, Inc.
ccc6cda3
JA
4
5 This file is part of GNU Bash, the Bourne Again SHell.
6
3185942a
JA
7 Bash is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
ccc6cda3 11
3185942a
JA
12 Bash is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
ccc6cda3 16
3185942a
JA
17 You should have received a copy of the GNU General Public License
18 along with Bash. If not, see <http://www.gnu.org/licenses/>.
19*/
ccc6cda3
JA
20
21#if !defined (_BASHLINE_H_)
22#define _BASHLINE_H_
23
24#include "stdc.h"
25
26extern int bash_readline_initialized;
d233b485
CR
27extern int hostname_list_initialized;
28
29/* these are controlled via shopt */
30extern int perform_hostname_completion;
31extern int no_empty_command_completion;
32extern int force_fignore;
33extern int dircomplete_spelling;
34extern int dircomplete_expand;
35extern int dircomplete_expand_relpath;
36extern int complete_fullquote;
ccc6cda3 37
8868edaf
CR
38extern void posix_readline_initialize PARAMS((int));
39extern void reset_completer_word_break_chars PARAMS((void));
40extern int enable_hostname_completion PARAMS((int));
41extern void initialize_readline PARAMS((void));
42extern void bashline_reset PARAMS((void));
43extern void bashline_reinitialize PARAMS((void));
44extern int bash_re_edit PARAMS((char *));
ccc6cda3 45
8868edaf
CR
46extern void bashline_set_event_hook PARAMS((void));
47extern void bashline_reset_event_hook PARAMS((void));
16b2d7f4 48
8868edaf
CR
49extern int bind_keyseq_to_unix_command PARAMS((char *));
50extern int bash_execute_unix_command PARAMS((int, int));
51extern int print_unix_command_map PARAMS((void));
52extern int unbind_unix_command PARAMS((char *));
bb70624e 53
8868edaf 54extern char **bash_default_completion PARAMS((const char *, int, int, int, int));
b80f6443 55
8868edaf 56void set_directory_hook PARAMS((void));
16b2d7f4 57
bb70624e 58/* Used by programmable completion code. */
8868edaf
CR
59extern char *command_word_completion_function PARAMS((const char *, int));
60extern char *bash_groupname_completion_function PARAMS((const char *, int));
61extern char *bash_servicename_completion_function PARAMS((const char *, int));
bb70624e 62
8868edaf
CR
63extern char **get_hostname_list PARAMS((void));
64extern void clear_hostname_list PARAMS((void));
bb70624e 65
8868edaf
CR
66extern char **bash_directory_completion_matches PARAMS((const char *));
67extern char *bash_dequote_text PARAMS((const char *));
bb70624e 68
ccc6cda3 69#endif /* _BASHLINE_H_ */