summaryrefslogtreecommitdiffabout
path: root/src/input-std.c
authorSergey Poznyakoff <gray@gnu.org>2018-05-24 14:46:07 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2018-05-24 15:16:01 (GMT)
commit8d2f483b28f8418703982658b3e7dda7a96ad335 (patch) (side-by-side diff)
tree731e5d6103090f835dd7602395f44fd2154c7d6b /src/input-std.c
parentb001c227fdf02e3ed1e87161cbc1dec4a1184203 (diff)
downloadgdbm-8d2f483b28f8418703982658b3e7dda7a96ad335.tar.gz
gdbm-8d2f483b28f8418703982658b3e7dda7a96ad335.tar.bz2
Various fixes
* src/input-std.c: Bugfix * doc/gdbm.texi: Document changes. * README: Update. * configure.ac: New option --enable-gdbmtool-debug. * src/Makefile.am: Conditionally augment AM_YFLAGS and AM_LFLAGS with options that enable debugging. * src/gdbmtool.c: Conditionally enable --lex-trace and --gram-trace options. * src/gram.y: Likewise. * src/lex.l: Likewise. * tests/Makefile.am: Remove architecure-dependent tests. * tests/testsuite.at: Likewise.
Diffstat (limited to 'src/input-std.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/input-std.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/input-std.c b/src/input-std.c
index 45ae506..6a95eb6 100644
--- a/src/input-std.c
+++ b/src/input-std.c
@@ -41,15 +41,14 @@ instream_stdin_eq (instream_t a, instream_t b)
instream_t
instream_stdin_create (void)
{
- struct instream_file *istr;
+ struct instream *istr;
istr = emalloc (sizeof *istr);
- istr->base.in_name = "stdin";
- istr->base.in_inter = isatty (fileno (stdin));
- istr->base.in_read = instream_stdin_read;
- istr->base.in_close = instream_stdin_close;
- istr->base.in_eq = instream_stdin_eq;
- istr->fp = stdin;
+ istr->in_name = "stdin";
+ istr->in_inter = isatty (fileno (stdin));
+ istr->in_read = instream_stdin_read;
+ istr->in_close = instream_stdin_close;
+ istr->in_eq = instream_stdin_eq;
return istr;
}

Return to:

Send suggestions and report system problems to the System administrator.