aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-05-20 08:06:06 +0000
committerKen Raeburn2002-05-20 08:06:06 +0000
commit74d70085965d7d63b4f69393d70926760296f78a (patch)
tree510cb38620f7fab6d1ba56be3407d367a64db517 /src
parentc85d524cf71baa606ac7f08cda970c8a2132708b (diff)
downloademacs-74d70085965d7d63b4f69393d70926760296f78a.tar.gz
emacs-74d70085965d7d63b4f69393d70926760296f78a.zip
* lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
object field named "xname". (SYMBOL_NAME): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 3f9cee4474d..d8bb5bf08af 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -871,9 +871,11 @@ struct Lisp_Symbol
871 enum symbol_interned. */ 871 enum symbol_interned. */
872 unsigned interned : 2; 872 unsigned interned : 2;
873 873
874 /* The symbol's name. This should become a Lisp_Object 874 /* The symbol's name, as a Lisp string.
875 some day; there's no need for the Lisp_String pointer nowadays. */ 875
876 struct Lisp_String *name; 876 The name "xname" is used to intentionally break code referring to
877 the old field "name" of type pointer to struct Lisp_String. */
878 Lisp_Object xname;
877 879
878 /* Value of the symbol or Qunbound if unbound. If this symbol is a 880 /* Value of the symbol or Qunbound if unbound. If this symbol is a
879 defvaralias, `value' contains the symbol for which it is an 881 defvaralias, `value' contains the symbol for which it is an
@@ -891,6 +893,11 @@ struct Lisp_Symbol
891 struct Lisp_Symbol *next; 893 struct Lisp_Symbol *next;
892}; 894};
893 895
896/* Value is name of symbol. */
897
898#define SYMBOL_NAME(sym) \
899 LISP_MAKE_RVALUE (XSYMBOL (sym)->xname)
900
894/* Value is non-zero if SYM is an interned symbol. */ 901/* Value is non-zero if SYM is an interned symbol. */
895 902
896#define SYMBOL_INTERNED_P(sym) \ 903#define SYMBOL_INTERNED_P(sym) \