diff options
author | Jari Aalto <jari.aalto@cante.net> | 1998-04-17 19:52:44 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:51 +0000 |
commit | cce855bc5b117cb7ae70064131120687bc69fac0 (patch) | |
tree | 39c7a4ec8f6d22ef03df74f2684e6a04fef10399 /input.h | |
parent | e8ce775db824de329b81293b4e5d8fbd65624528 (diff) | |
download | bash-cce855bc5b117cb7ae70064131120687bc69fac0.tar.gz |
Imported from ../bash-2.02.tar.gz.
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -36,6 +36,10 @@ 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 */ +#undef B_UNBUFF + #define B_EOF 0x1 #define B_ERROR 0x2 #define B_UNBUFF 0x4 @@ -46,15 +50,15 @@ typedef struct BSTREAM { int b_fd; char *b_buffer; /* The buffer that holds characters read. */ - int b_size; /* How big the buffer is. */ + size_t b_size; /* How big the buffer is. */ int b_used; /* How much of the buffer we're using, */ int b_flag; /* Flag values. */ int b_inputp; /* The input pointer, index into b_buffer. */ } BUFFERED_STREAM; +#if 0 extern BUFFERED_STREAM **buffers; - -extern BUFFERED_STREAM *fd_to_buffered_stream (); +#endif extern int default_buffered_input; @@ -102,6 +106,7 @@ extern int ungetc_with_restart (); extern int check_bash_input __P((int)); extern int duplicate_buffered_stream __P((int, int)); extern BUFFERED_STREAM *fd_to_buffered_stream __P((int)); +extern BUFFERED_STREAM *set_buffered_stream __P((int, BUFFERED_STREAM *)); extern BUFFERED_STREAM *open_buffered_stream __P((char *)); extern void free_buffered_stream __P((BUFFERED_STREAM *)); extern int close_buffered_stream __P((BUFFERED_STREAM *)); |