Mercurial > emacs
changeset 9369:379c7b900689
(Fboundp, Ffboundp, find_symbol_value, Fset, Fdefault_boundp, Fdefault_value):
Don't check for Lisp_Void; nothing ever creates that type.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 06 Oct 1994 23:07:57 +0000 |
parents | 77cd47d7f172 |
children | eba41c493729 |
files | src/data.c |
diffstat | 1 files changed, 6 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Thu Oct 06 23:01:51 1994 +0000 +++ b/src/data.c Thu Oct 06 23:07:57 1994 +0000 @@ -475,8 +475,7 @@ valcontents = swap_in_symval_forwarding (sym, valcontents); } - return (VOIDP (valcontents) || EQ (valcontents, Qunbound) - ? Qnil : Qt); + return (EQ (valcontents, Qunbound) ? Qnil : Qt); } DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, "T if SYMBOL's function definition is not void.") @@ -484,9 +483,7 @@ register Lisp_Object sym; { CHECK_SYMBOL (sym, 0); - return ((VOIDP (XSYMBOL (sym)->function) - || EQ (XSYMBOL (sym)->function, Qunbound)) - ? Qnil : Qt); + return (EQ (XSYMBOL (sym)->function, Qunbound) ? Qnil : Qt); } DEFUN ("makunbound", Fmakunbound, Smakunbound, 1, 1, 0, "Make SYMBOL's value be void.") @@ -790,9 +787,6 @@ case Lisp_Buffer_Objfwd: return *(Lisp_Object *)(XUINT (valcontents) + (char *)current_buffer); - - case Lisp_Void: - return Qunbound; } return valcontents; @@ -817,7 +811,7 @@ (sym, newval) register Lisp_Object sym, newval; { - int voide = (VOIDP (newval) || EQ (newval, Qunbound)); + int voide = EQ (newval, Qunbound); register Lisp_Object valcontents, tem1, current_alist_element; @@ -929,7 +923,7 @@ /* Access or set a buffer-local symbol's default value. */ /* Return the default value of SYM, but don't check for voidness. - Return Qunbound or a Lisp_Void object if it is void. */ + Return Qunbound if it is void. */ Lisp_Object default_value (sym) @@ -981,8 +975,7 @@ register Lisp_Object value; value = default_value (sym); - return (VOIDP (value) || EQ (value, Qunbound) - ? Qnil : Qt); + return (EQ (value, Qunbound) ? Qnil : Qt); } DEFUN ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0, @@ -996,7 +989,7 @@ register Lisp_Object value; value = default_value (sym); - if (VOIDP (value) || EQ (value, Qunbound)) + if (EQ (value, Qunbound)) return Fsignal (Qvoid_variable, Fcons (sym, Qnil)); return value; }