Mercurial > emacs
changeset 11239:38aef18e8e3d
(Ftype_of, do_symval_forwarding, store_symval_forwarding)
(find_symbol_value, Fmake_variable_buffer_local, Fmake_local_variable):
Use XMISCTYPE.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 07 Apr 1995 05:17:56 +0000 |
parents | 747eeabdbbcb |
children | 2642924d2d21 |
files | src/data.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Fri Apr 07 03:59:57 1995 +0000 +++ b/src/data.c Fri Apr 07 05:17:56 1995 +0000 @@ -209,7 +209,7 @@ return Qcons; case Lisp_Misc: - switch (XMISC (object)->type) + switch (XMISCTYPE (object)) { case Lisp_Misc_Marker: return Qmarker; @@ -695,7 +695,7 @@ register Lisp_Object val; int offset; if (MISCP (valcontents)) - switch (XMISC (valcontents)->type) + switch (XMISCTYPE (valcontents)) { case Lisp_Misc_Intfwd: XSETINT (val, *XINTFWD (valcontents)->intvar); @@ -731,7 +731,7 @@ switch (SWITCH_ENUM_CAST (XTYPE (valcontents))) { case Lisp_Misc: - switch (XMISC (valcontents)->type) + switch (XMISCTYPE (valcontents)) { case Lisp_Misc_Intfwd: CHECK_NUMBER (newval, 1); @@ -848,7 +848,7 @@ if (MISCP (valcontents)) { - switch (XMISC (valcontents)->type) + switch (XMISCTYPE (valcontents)) { case Lisp_Misc_Intfwd: XSETINT (val, *XINTFWD (valcontents)->intvar); @@ -1192,7 +1192,7 @@ return sym; if (SOME_BUFFER_LOCAL_VALUEP (valcontents)) { - XMISC (XSYMBOL (sym)->value)->type = Lisp_Misc_Buffer_Local_Value; + XMISCTYPE (XSYMBOL (sym)->value) = Lisp_Misc_Buffer_Local_Value; return sym; } if (EQ (valcontents, Qunbound)) @@ -1200,7 +1200,7 @@ tem = Fcons (Qnil, Fsymbol_value (sym)); XCONS (tem)->car = tem; newval = allocate_misc (); - XMISC (newval)->type = Lisp_Misc_Buffer_Local_Value; + XMISCTYPE (newval) = Lisp_Misc_Buffer_Local_Value; XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (sym)->value; XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Fcurrent_buffer (), tem); XSYMBOL (sym)->value = newval; @@ -1247,7 +1247,7 @@ tem = Fcons (Qnil, do_symval_forwarding (valcontents)); XCONS (tem)->car = tem; newval = allocate_misc (); - XMISC (newval)->type = Lisp_Misc_Some_Buffer_Local_Value; + XMISCTYPE (newval) = Lisp_Misc_Some_Buffer_Local_Value; XBUFFER_LOCAL_VALUE (newval)->car = XSYMBOL (sym)->value; XBUFFER_LOCAL_VALUE (newval)->cdr = Fcons (Qnil, tem); XSYMBOL (sym)->value = newval;