diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-11-13 17:56:06 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:54 +0000 |
commit | f73dda092b33638d2d5e9c35375f687a607b5403 (patch) | |
tree | f21584e70a444d6a1ecba0fb5e2cf79e8cce91db /shell.h | |
parent | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff) | |
download | android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.bz2 android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.zip |
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'shell.h')
-rw-r--r-- | shell.h | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -18,7 +18,9 @@ with Bash; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include "bashjmp.h" @@ -27,6 +29,7 @@ #include "general.h" #include "error.h" #include "variables.h" +#include "arrayfunc.h" #include "quit.h" #include "maxpath.h" #include "unwind_prot.h" @@ -36,12 +39,12 @@ #include "sig.h" #include "pathnames.h" #include "externs.h" +#include "version.h" extern int EOF_Reached; #define NO_PIPE -1 #define REDIRECT_BOTH -2 -#define IS_DESCRIPTOR -1 #define NO_VARIABLE -1 @@ -82,11 +85,12 @@ extern WORD_LIST *rest_of_args; /* Generalized global variables. */ extern int executing, login_shell; +extern int interactive, interactive_shell; /* Structure to pass around that holds a bitmap of file descriptors to close, and the size of that structure. Used in execute_cmd.c. */ struct fd_bitmap { - long size; + int size; char *bitmap; }; @@ -105,3 +109,11 @@ struct user_info { }; extern struct user_info current_user; + +/* Force gcc to not clobber X on a longjmp(). Old versions of gcc mangle + this badly. */ +#if __GNUC__ == 2 && __GNUC_MINOR__ > 8 +# define USE_VAR(x) ((void) &(x)) +#else +# define USE_VAR(x) +#endif |