]> git.ipfire.org Git - thirdparty/bash.git/blame - make_cmd.h
Imported from ../bash-2.05b.tar.gz.
[thirdparty/bash.git] / make_cmd.h
CommitLineData
726f6388
JA
1/* make_cmd.h -- Declarations of functions found in make_cmd.c */
2
3/* Copyright (C) 1993 Free Software Foundation, Inc.
4
5 This file is part of GNU Bash, the Bourne Again SHell.
6
7 Bash is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with Bash; see the file COPYING. If not, write to the Free Software
bb70624e 19 Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
726f6388
JA
20
21#if !defined (_MAKE_CMD_H_)
22#define _MAKE_CMD_H_
23
24#include "stdc.h"
25
7117c2d2 26extern void cmd_init __P((void));
726f6388 27
f73dda09
JA
28extern WORD_DESC *make_bare_word __P((const char *));
29extern WORD_DESC *make_word_flags __P((WORD_DESC *, const char *));
30extern WORD_DESC *make_word __P((const char *));
726f6388
JA
31extern WORD_DESC *make_word_from_token __P((int));
32
7117c2d2
JA
33extern WORD_LIST *make_word_list __P((WORD_DESC *, WORD_LIST *));
34
35#define add_string_to_list(s, l) make_word_list (make_word(s), (l))
36
726f6388
JA
37extern COMMAND *make_command __P((enum command_type, SIMPLE_COM *));
38extern COMMAND *command_connect __P((COMMAND *, COMMAND *, int));
39extern COMMAND *make_for_command __P((WORD_DESC *, WORD_LIST *, COMMAND *));
40extern COMMAND *make_group_command __P((COMMAND *));
41extern COMMAND *make_case_command __P((WORD_DESC *, PATTERN_LIST *));
42extern PATTERN_LIST *make_pattern_list __P((WORD_LIST *, COMMAND *));
43extern COMMAND *make_if_command __P((COMMAND *, COMMAND *, COMMAND *));
44extern COMMAND *make_while_command __P((COMMAND *, COMMAND *));
45extern COMMAND *make_until_command __P((COMMAND *, COMMAND *));
46extern COMMAND *make_bare_simple_command __P((void));
47extern COMMAND *make_simple_command __P((ELEMENT, COMMAND *));
48extern void make_here_document __P((REDIRECT *));
49extern REDIRECT *make_redirection __P((int, enum r_instruction, REDIRECTEE));
ccc6cda3 50extern COMMAND *make_function_def __P((WORD_DESC *, COMMAND *, int, int));
726f6388 51extern COMMAND *clean_simple_command __P((COMMAND *));
726f6388 52
cce855bc
JA
53extern COMMAND *make_arith_command __P((WORD_LIST *));
54
726f6388 55extern COMMAND *make_select_command __P((WORD_DESC *, WORD_LIST *, COMMAND *));
726f6388 56
cce855bc
JA
57#if defined (COND_COMMAND)
58extern COND_COM *make_cond_node __P((int, WORD_DESC *, COND_COM *, COND_COM *));
59extern COMMAND *make_cond_command __P((COND_COM *));
60#endif
61
bb70624e
JA
62extern COMMAND *make_arith_for_command __P((WORD_LIST *, COMMAND *, int));
63
64extern COMMAND *make_subshell_command __P((COMMAND *));
65
726f6388
JA
66extern COMMAND *connect_async_list __P((COMMAND *, COMMAND *, int));
67
68#endif /* !_MAKE_CMD_H */