diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-14 16:08:34 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-14 16:08:34 +0000 |
commit | 8cbaa44e2f1b80dd8954a0e06e0bc8a52494237f (patch) | |
tree | acb81d52eed9a1e4f72a02b251b4bfb76691ef25 /ChangeLog | |
parent | 045ec749566683e9a4471a81901b7a3f37066376 (diff) | |
download | gdbm-8cbaa44e2f1b80dd8954a0e06e0bc8a52494237f.tar.gz gdbm-8cbaa44e2f1b80dd8954a0e06e0bc8a52494237f.tar.bz2 |
Change variable support.
* src/util.c: New file.
* src/Makefile.am: Add new files.
* src/gdbmtool.c (open_mode): New variable.
(terror): Remove.
(mkfilename, tildexpand): Move to util.c
(opendb): Use open_mode.
(import_handler): Likewise.
(optab): New option -N (--norc).
* src/gdbmtool.h (vparse_error): Rename to vlerror.
(parse_error): Rename to lerror.
(syntax_error): Rename tp terror.
All uses updated.
(VAR_ERR_FAILURE): Remove.
(VAR_ERR_BADVALUE): New error code.
(variable_mode_name): Remove.
(mkfilename, tildexpand)
(vgetyn, getyn): New protos.
* src/lex.l (initialized): New static.
(setsource): Set initialized.
(vlerror): Print locus only if the lexer has been
initialized.
* src/var.c: Rewrite.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -1,5 +1,33 @@ 2013-05-14 Sergey Poznyakoff <gray@gnu.org.ua> + Change variable handling. + + * src/util.c: New file. + * src/Makefile.am: Add new files. + * src/gdbmtool.c (open_mode): New variable. + (terror): Remove. + (mkfilename, tildexpand): Move to util.c + (opendb): Use open_mode. + (import_handler): Likewise. + (optab): New option -N (--norc). + + * src/gdbmtool.h (vparse_error): Rename to vlerror. + (parse_error): Rename to lerror. + (syntax_error): Rename tp terror. + All uses updated. + (VAR_ERR_FAILURE): Remove. + (VAR_ERR_BADVALUE): New error code. + (variable_mode_name): Remove. + (mkfilename, tildexpand) + (vgetyn, getyn): New protos. + * src/lex.l (initialized): New static. + (setsource): Set initialized. + (vlerror): Print locus only if the lexer has been + initialized. + * src/var.c: Rewrite. + +2013-05-14 Sergey Poznyakoff <gray@gnu.org.ua> + Provide "open" and "close" commands; implement new variables. * src/datconv.c (datum_format): Don't print field delimiter |