]> git.ipfire.org Git - thirdparty/bash.git/blame - make_cmd.h
Bash-5.2 patch 26: fix typo when specifying readline's custom color prefix
[thirdparty/bash.git] / make_cmd.h
CommitLineData
726f6388
JA
1/* make_cmd.h -- Declarations of functions found in make_cmd.c */
2
8868edaf 3/* Copyright (C) 1993-2009,2020 Free Software Foundation, Inc.
726f6388
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.
726f6388 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.
726f6388 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*/
726f6388
JA
20
21#if !defined (_MAKE_CMD_H_)
22#define _MAKE_CMD_H_
23
24#include "stdc.h"
25
d233b485
CR
26extern int here_doc_first_line;
27
8868edaf 28extern void cmd_init PARAMS((void));
726f6388 29
8868edaf
CR
30extern WORD_DESC *alloc_word_desc PARAMS((void));
31extern WORD_DESC *make_bare_word PARAMS((const char *));
32extern WORD_DESC *make_word_flags PARAMS((WORD_DESC *, const char *));
33extern WORD_DESC *make_word PARAMS((const char *));
34extern WORD_DESC *make_word_from_token PARAMS((int));
726f6388 35
8868edaf 36extern WORD_LIST *make_word_list PARAMS((WORD_DESC *, WORD_LIST *));
7117c2d2
JA
37
38#define add_string_to_list(s, l) make_word_list (make_word(s), (l))
39
8868edaf
CR
40extern COMMAND *make_command PARAMS((enum command_type, SIMPLE_COM *));
41extern COMMAND *command_connect PARAMS((COMMAND *, COMMAND *, int));
42extern COMMAND *make_for_command PARAMS((WORD_DESC *, WORD_LIST *, COMMAND *, int));
43extern COMMAND *make_group_command PARAMS((COMMAND *));
44extern COMMAND *make_case_command PARAMS((WORD_DESC *, PATTERN_LIST *, int));
45extern PATTERN_LIST *make_pattern_list PARAMS((WORD_LIST *, COMMAND *));
46extern COMMAND *make_if_command PARAMS((COMMAND *, COMMAND *, COMMAND *));
47extern COMMAND *make_while_command PARAMS((COMMAND *, COMMAND *));
48extern COMMAND *make_until_command PARAMS((COMMAND *, COMMAND *));
49extern COMMAND *make_bare_simple_command PARAMS((void));
50extern COMMAND *make_simple_command PARAMS((ELEMENT, COMMAND *));
51extern void make_here_document PARAMS((REDIRECT *, int));
52extern REDIRECT *make_redirection PARAMS((REDIRECTEE, enum r_instruction, REDIRECTEE, int));
53extern COMMAND *make_function_def PARAMS((WORD_DESC *, COMMAND *, int, int));
54extern COMMAND *clean_simple_command PARAMS((COMMAND *));
55
56extern COMMAND *make_arith_command PARAMS((WORD_LIST *));
57
58extern COMMAND *make_select_command PARAMS((WORD_DESC *, WORD_LIST *, COMMAND *, int));
726f6388 59
cce855bc 60#if defined (COND_COMMAND)
8868edaf
CR
61extern COND_COM *make_cond_node PARAMS((int, WORD_DESC *, COND_COM *, COND_COM *));
62extern COMMAND *make_cond_command PARAMS((COND_COM *));
cce855bc
JA
63#endif
64
8868edaf 65extern COMMAND *make_arith_for_command PARAMS((WORD_LIST *, COMMAND *, int));
bb70624e 66
8868edaf
CR
67extern COMMAND *make_subshell_command PARAMS((COMMAND *));
68extern COMMAND *make_coproc_command PARAMS((char *, COMMAND *));
bb70624e 69
8868edaf 70extern COMMAND *connect_async_list PARAMS((COMMAND *, COMMAND *, int));
726f6388
JA
71
72#endif /* !_MAKE_CMD_H */