]>
Commit | Line | Data |
---|---|---|
726f6388 JA |
1 | /* make_cmd.h -- Declarations of functions found in make_cmd.c */ |
2 | ||
3185942a | 3 | /* Copyright (C) 1993-2009 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 | ||
7117c2d2 | 26 | extern void cmd_init __P((void)); |
726f6388 | 27 | |
95732b49 | 28 | extern WORD_DESC *alloc_word_desc __P((void)); |
f73dda09 JA |
29 | extern WORD_DESC *make_bare_word __P((const char *)); |
30 | extern WORD_DESC *make_word_flags __P((WORD_DESC *, const char *)); | |
31 | extern WORD_DESC *make_word __P((const char *)); | |
726f6388 JA |
32 | extern WORD_DESC *make_word_from_token __P((int)); |
33 | ||
7117c2d2 JA |
34 | extern WORD_LIST *make_word_list __P((WORD_DESC *, WORD_LIST *)); |
35 | ||
36 | #define add_string_to_list(s, l) make_word_list (make_word(s), (l)) | |
37 | ||
726f6388 JA |
38 | extern COMMAND *make_command __P((enum command_type, SIMPLE_COM *)); |
39 | extern COMMAND *command_connect __P((COMMAND *, COMMAND *, int)); | |
b80f6443 | 40 | extern COMMAND *make_for_command __P((WORD_DESC *, WORD_LIST *, COMMAND *, int)); |
726f6388 | 41 | extern COMMAND *make_group_command __P((COMMAND *)); |
b80f6443 | 42 | extern COMMAND *make_case_command __P((WORD_DESC *, PATTERN_LIST *, int)); |
726f6388 JA |
43 | extern PATTERN_LIST *make_pattern_list __P((WORD_LIST *, COMMAND *)); |
44 | extern COMMAND *make_if_command __P((COMMAND *, COMMAND *, COMMAND *)); | |
45 | extern COMMAND *make_while_command __P((COMMAND *, COMMAND *)); | |
46 | extern COMMAND *make_until_command __P((COMMAND *, COMMAND *)); | |
47 | extern COMMAND *make_bare_simple_command __P((void)); | |
48 | extern COMMAND *make_simple_command __P((ELEMENT, COMMAND *)); | |
3185942a | 49 | extern void make_here_document __P((REDIRECT *, int)); |
0001803f | 50 | extern REDIRECT *make_redirection __P((REDIRECTEE, enum r_instruction, REDIRECTEE, int)); |
ccc6cda3 | 51 | extern COMMAND *make_function_def __P((WORD_DESC *, COMMAND *, int, int)); |
726f6388 | 52 | extern COMMAND *clean_simple_command __P((COMMAND *)); |
726f6388 | 53 | |
cce855bc JA |
54 | extern COMMAND *make_arith_command __P((WORD_LIST *)); |
55 | ||
b80f6443 | 56 | extern COMMAND *make_select_command __P((WORD_DESC *, WORD_LIST *, COMMAND *, int)); |
726f6388 | 57 | |
cce855bc JA |
58 | #if defined (COND_COMMAND) |
59 | extern COND_COM *make_cond_node __P((int, WORD_DESC *, COND_COM *, COND_COM *)); | |
60 | extern COMMAND *make_cond_command __P((COND_COM *)); | |
61 | #endif | |
62 | ||
bb70624e JA |
63 | extern COMMAND *make_arith_for_command __P((WORD_LIST *, COMMAND *, int)); |
64 | ||
65 | extern COMMAND *make_subshell_command __P((COMMAND *)); | |
3185942a | 66 | extern COMMAND *make_coproc_command __P((char *, COMMAND *)); |
bb70624e | 67 | |
726f6388 JA |
68 | extern COMMAND *connect_async_list __P((COMMAND *, COMMAND *, int)); |
69 | ||
70 | #endif /* !_MAKE_CMD_H */ |