summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2023-02-27 10:55:06 -0500
committerChet Ramey <chet.ramey@case.edu>2023-02-27 10:55:06 -0500
commit349e21043e362914551277728159f8e55350bad7 (patch)
tree87cc7e54d43484b9400bf461d7234580f90487b9 /input.h
parentede7124fd45e52b5eb66d04756a29703e8a537c6 (diff)
downloadbash-349e21043e362914551277728159f8e55350bad7.tar.gz
local variables no longer modify external variables if the variable is supplied as a variable assignment preceding a function call; assignments in compound assignment statements don't undergo brace expansion
Diffstat (limited to 'input.h')
-rw-r--r--input.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/input.h b/input.h
index 09a42119..a1fa7219 100644
--- a/input.h
+++ b/input.h
@@ -1,6 +1,6 @@
/* input.h -- Structures and unions used for reading input. */
-/* Copyright (C) 1993-2022 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2023 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -28,8 +28,6 @@ typedef int sh_cunget_func_t (int); /* sh_intfunc_t */
enum stream_type {st_none, st_stdin, st_stream, st_string, st_bstream};
-#if defined (BUFFERED_INPUT)
-
/* Possible values for b_flag. */
#undef B_EOF
#undef B_ERROR /* There are some systems with this define */
@@ -71,14 +69,10 @@ extern int bash_input_fd_changed;
#define bclearerror(bp) ((bp)->b_flag &= ~(B_ERROR|B_EOF))
-#endif /* BUFFERED_INPUT */
-
typedef union {
FILE *file;
char *string;
-#if defined (BUFFERED_INPUT)
int buffered_fd;
-#endif
} INPUT_STREAM;
typedef struct {
@@ -114,7 +108,6 @@ extern void restore_token_state (int *);
extern int getc_with_restart (FILE *);
extern int ungetc_with_restart (int, FILE *);
-#if defined (BUFFERED_INPUT)
/* Functions from input.c. */
extern int fd_is_bash_input (int);
extern int set_bash_input_fd (int);
@@ -132,6 +125,5 @@ extern int sync_buffered_stream (int);
extern int buffered_getchar (void);
extern int buffered_ungetchar (int);
extern void with_input_from_buffered_stream (int, char *);
-#endif /* BUFFERED_INPUT */
#endif /* _INPUT_H_ */