diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-15 16:17:51 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-15 16:17:51 +0000 |
commit | 9b83ca8638cdb8c4deafcc48d8157fe0e8da1740 (patch) | |
tree | a0dfd21b21a5cb9916afc8fb03928fa68847fe26 /ChangeLog | |
parent | 8cbaa44e2f1b80dd8954a0e06e0bc8a52494237f (diff) | |
download | gdbm-9b83ca8638cdb8c4deafcc48d8157fe0e8da1740.tar.gz gdbm-9b83ca8638cdb8c4deafcc48d8157fe0e8da1740.tar.bz2 |
Add "pager" variable and "unset" command.
* src/gdbmtool.c (command_tab) <unset>: New command.
(run_command): Get pager value from the variable.
* src/gdbmtool.h (VAR_ERR_NOTSET): New error code.
(variable_is_true): New function. Replaces variable_is_set,
which changed semantics.
* src/gram.y: Implement the unset command.
* src/var.c: Support the "unset variable" notion.
(VARF_INIT): New flag.
(VAR_IS_SET): New define.
(vartab): Mark initialized variables with VARF_INIT.
New variable "pager".
(open_hook): v can be NULL.
(variable_set): NULL value unsets the variable.
(variable_unset): New function.
(variable_get): Return VAR_ERR_NOTSET if the variable is
not set.
(variable_is_true): Renamed from variable_is_set.
(variable_is_set): New function.
* src/gdbmdefs.h: Fix some typos.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,28 @@ +2013-05-15 Sergey Poznyakoff <gray@nxc.no> + + Add "pager" variable and "unset" command. + + * src/gdbmtool.c (command_tab) <unset>: New command. + (run_command): Get pager value from the variable. + * src/gdbmtool.h (VAR_ERR_NOTSET): New error code. + (variable_is_true): New function. Replaces variable_is_set, + which changed semantics. + * src/gram.y: Implement the unset command. + * src/var.c: Support the "unset variable" notion. + (VARF_INIT): New flag. + (VAR_IS_SET): New define. + (vartab): Mark initialized variables with VARF_INIT. + New variable "pager". + (open_hook): v can be NULL. + (variable_set): NULL value unsets the variable. + (variable_unset): New function. + (variable_get): Return VAR_ERR_NOTSET if the variable is + not set. + (variable_is_true): Renamed from variable_is_set. + (variable_is_set): New function. + + * src/gdbmdefs.h: Fix some typos. + 2013-05-14 Sergey Poznyakoff <gray@gnu.org.ua> Change variable handling. |