1 /* common.h -- extern declarations for functions defined in common.c. */
3 /* Copyright (C) 1993 Free Software Foundation, Inc.
5 This file is part of GNU Bash, the Bourne Again SHell.
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
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
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
19 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 #if !defined (__COMMON_H)
24 #define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c)
26 extern void builtin_error ();
27 extern void bad_option ();
29 extern int get_numeric_arg ();
31 extern void remember_args ();
33 extern void no_args ();
35 extern int read_octal ();
37 extern char *find_hashed_filename ();
38 extern void remove_hashed_filename ();
39 extern void remember_filename ();
41 extern void push_context (), pop_context ();
42 extern void push_dollar_vars (), pop_dollar_vars ();
43 extern void dispose_saved_dollar_vars ();
44 extern int dollar_vars_changed ();
45 extern void set_dollar_vars_unchanged (), set_dollar_vars_changed ();
47 /* Keeps track of the current working directory. */
48 extern char *the_current_working_directory;
49 extern char *get_working_directory ();
50 extern void set_working_directory ();
52 #if defined (JOB_CONTROL)
53 extern int get_job_spec ();
56 extern int parse_and_execute ();
57 extern void parse_and_execute_cleanup ();
59 extern void initialize_shell_builtins ();
61 /* It's OK to declare a function as returning a Function * without
62 providing a definition of what a `Function' is. */
63 extern Function *find_shell_builtin ();
64 extern Function *builtin_address ();
66 extern char *single_quote ();
67 extern char *double_quote ();
69 #endif /* !__COMMON_H */