From 9b83ca8638cdb8c4deafcc48d8157fe0e8da1740 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Wed, 15 May 2013 16:17:51 +0000 Subject: Add "pager" variable and "unset" command. * src/gdbmtool.c (command_tab) : 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. --- ChangeLog | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1f9d600..0ca6a53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +2013-05-15 Sergey Poznyakoff + + Add "pager" variable and "unset" command. + + * src/gdbmtool.c (command_tab) : 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 Change variable handling. -- cgit v1.2.1