comparison src/data.c @ 6497:89ff61b53cee

(store_symval_forwarding, Fsymbol_value): Use assignment, not initialization.
author Karl Heuer <kwzh@gnu.org>
date Wed, 23 Mar 1994 22:27:40 +0000
parents 30fabcc03f0c
children f70a517ae9e2
comparison
equal deleted inserted replaced
6496:e1967b6d9a5c 6497:89ff61b53cee
666 break; 666 break;
667 667
668 case Lisp_Buffer_Objfwd: 668 case Lisp_Buffer_Objfwd:
669 { 669 {
670 unsigned int offset = XUINT (valcontents); 670 unsigned int offset = XUINT (valcontents);
671 Lisp_Object type = 671 Lisp_Object type;
672 *(Lisp_Object *)(offset + (char *)&buffer_local_types); 672
673 673 type = *(Lisp_Object *)(offset + (char *)&buffer_local_types);
674 if (! NILP (type) && ! NILP (newval) 674 if (! NILP (type) && ! NILP (newval)
675 && XTYPE (newval) != XINT (type)) 675 && XTYPE (newval) != XINT (type))
676 buffer_slot_type_mismatch (valcontents, newval); 676 buffer_slot_type_mismatch (valcontents, newval);
677 677
678 *(Lisp_Object *)(XUINT (valcontents) + (char *)current_buffer) 678 *(Lisp_Object *)(XUINT (valcontents) + (char *)current_buffer)
784 DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, 784 DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
785 "Return SYMBOL's value. Error if that is void.") 785 "Return SYMBOL's value. Error if that is void.")
786 (sym) 786 (sym)
787 Lisp_Object sym; 787 Lisp_Object sym;
788 { 788 {
789 Lisp_Object val = find_symbol_value (sym); 789 Lisp_Object val;
790 790
791 val = find_symbol_value (sym);
791 if (EQ (val, Qunbound)) 792 if (EQ (val, Qunbound))
792 return Fsignal (Qvoid_variable, Fcons (sym, Qnil)); 793 return Fsignal (Qvoid_variable, Fcons (sym, Qnil));
793 else 794 else
794 return val; 795 return val;
795 } 796 }