Mercurial > emacs
changeset 45397:bc5d63652a0a
* data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
(Fmake_variable_buffer_local, Fmake_local_variable)
(Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
of XSYMBOL and name field.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Mon, 20 May 2002 08:05:21 +0000 |
parents | cab845213388 |
children | 1a623890a487 |
files | src/data.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/data.c Mon May 20 08:05:15 2002 +0000 +++ b/src/data.c Mon May 20 08:05:21 2002 +0000 @@ -311,7 +311,7 @@ Lisp_Object object; { if (SYMBOLP (object) - && XSYMBOL (object)->name->data[0] == ':' + && XSTRING (SYMBOL_NAME (object))->data[0] == ':' && SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P (object)) return Qt; return Qnil; @@ -679,7 +679,7 @@ register Lisp_Object name; CHECK_SYMBOL (symbol); - XSETSTRING (name, XSYMBOL (symbol)->name); + name = SYMBOL_NAME (symbol); return name; } @@ -869,7 +869,7 @@ *XINTFWD (valcontents)->intvar = XINT (newval); if (*XINTFWD (valcontents)->intvar != XINT (newval)) error ("Value out of range for variable `%s'", - XSYMBOL (symbol)->name->data); + XSTRING (SYMBOL_NAME (symbol))->data); break; case Lisp_Misc_Boolfwd: @@ -887,7 +887,7 @@ type = PER_BUFFER_TYPE (offset); if (XINT (type) == -1) - error ("Variable %s is read-only", XSYMBOL (symbol)->name->data); + error ("Variable %s is read-only", XSTRING (SYMBOL_NAME (symbol))->data); if (! NILP (type) && ! NILP (newval) && XTYPE (newval) != XINT (type)) @@ -1443,7 +1443,7 @@ valcontents = SYMBOL_VALUE (variable); if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) - error ("Symbol %s may not be buffer-local", XSYMBOL (variable)->name->data); + error ("Symbol %s may not be buffer-local", XSTRING (SYMBOL_NAME (variable))->data); if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) return variable; @@ -1496,7 +1496,7 @@ valcontents = SYMBOL_VALUE (variable); if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents)) - error ("Symbol %s may not be buffer-local", XSYMBOL (variable)->name->data); + error ("Symbol %s may not be buffer-local", XSTRING (SYMBOL_NAME (variable))->data); if (BUFFER_LOCAL_VALUEP (valcontents) || BUFFER_OBJFWDP (valcontents)) { @@ -1639,7 +1639,7 @@ valcontents = SYMBOL_VALUE (variable); if (EQ (variable, Qnil) || EQ (variable, Qt) || KBOARD_OBJFWDP (valcontents) || BUFFER_OBJFWDP (valcontents)) - error ("Symbol %s may not be frame-local", XSYMBOL (variable)->name->data); + error ("Symbol %s may not be frame-local", XSTRING (SYMBOL_NAME (variable))->data); if (BUFFER_LOCAL_VALUEP (valcontents) || SOME_BUFFER_LOCAL_VALUEP (valcontents))