aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorStefan Monnier2011-10-28 09:48:19 -0400
committerStefan Monnier2011-10-28 09:48:19 -0400
commit9aba60432c25b060680eb7db698b20b05d7b94a0 (patch)
tree93ebd34650a7e41e7969b7f185de3170987a7451 /src/lisp.h
parentc20992f469ce64c052f95d7fcfa361b150bd379d (diff)
downloademacs-9aba60432c25b060680eb7db698b20b05d7b94a0.tar.gz
emacs-9aba60432c25b060680eb7db698b20b05d7b94a0.zip
* src/lisp.h (struct Lisp_Symbol): Update comments.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 1bbb5633fe5..df8812f73b7 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -162,7 +162,7 @@ extern int suppress_checking EXTERNALLY_VISIBLE;
162 162
163/* First, try and define DECL_ALIGN(type,var) which declares a static 163/* First, try and define DECL_ALIGN(type,var) which declares a static
164 variable VAR of type TYPE with the added requirement that it be 164 variable VAR of type TYPE with the added requirement that it be
165 TYPEBITS-aligned. */ 165 TYPEBITS-aligned. */
166#ifndef NO_DECL_ALIGN 166#ifndef NO_DECL_ALIGN
167# ifndef DECL_ALIGN 167# ifndef DECL_ALIGN
168# if HAVE_ATTRIBUTE_ALIGNED 168# if HAVE_ATTRIBUTE_ALIGNED
@@ -1084,11 +1084,9 @@ enum symbol_redirect
1084 SYMBOL_PLAINVAL = 4, 1084 SYMBOL_PLAINVAL = 4,
1085 SYMBOL_VARALIAS = 1, 1085 SYMBOL_VARALIAS = 1,
1086 SYMBOL_LOCALIZED = 2, 1086 SYMBOL_LOCALIZED = 2,
1087 SYMBOL_FORWARDED = 3 1087 SYMBOL_FORWARDED = 3
1088}; 1088};
1089 1089
1090/* In a symbol, the markbit of the plist is used as the gc mark bit */
1091
1092struct Lisp_Symbol 1090struct Lisp_Symbol
1093{ 1091{
1094 unsigned gcmarkbit : 1; 1092 unsigned gcmarkbit : 1;
@@ -1097,8 +1095,7 @@ struct Lisp_Symbol
1097 0 : it's a plain var, the value is in the `value' field. 1095 0 : it's a plain var, the value is in the `value' field.
1098 1 : it's a varalias, the value is really in the `alias' symbol. 1096 1 : it's a varalias, the value is really in the `alias' symbol.
1099 2 : it's a localized var, the value is in the `blv' object. 1097 2 : it's a localized var, the value is in the `blv' object.
1100 3 : it's a forwarding variable, the value is in `forward'. 1098 3 : it's a forwarding variable, the value is in `forward'. */
1101 */
1102 enum symbol_redirect redirect : 3; 1099 enum symbol_redirect redirect : 3;
1103 1100
1104 /* Non-zero means symbol is constant, i.e. changing its value 1101 /* Non-zero means symbol is constant, i.e. changing its value
@@ -1115,15 +1112,12 @@ struct Lisp_Symbol
1115 unsigned declared_special : 1; 1112 unsigned declared_special : 1;
1116 1113
1117 /* The symbol's name, as a Lisp string. 1114 /* The symbol's name, as a Lisp string.
1118
1119 The name "xname" is used to intentionally break code referring to 1115 The name "xname" is used to intentionally break code referring to
1120 the old field "name" of type pointer to struct Lisp_String. */ 1116 the old field "name" of type pointer to struct Lisp_String. */
1121 Lisp_Object xname; 1117 Lisp_Object xname;
1122 1118
1123 /* Value of the symbol or Qunbound if unbound. If this symbol is a 1119 /* Value of the symbol or Qunbound if unbound. Which alternative of the
1124 defvaralias, `alias' contains the symbol for which it is an 1120 union is used depends on the `redirect' field above. */
1125 alias. Use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros to get
1126 and set a symbol's value, to take defvaralias into account. */
1127 union { 1121 union {
1128 Lisp_Object value; 1122 Lisp_Object value;
1129 struct Lisp_Symbol *alias; 1123 struct Lisp_Symbol *alias;
@@ -1318,7 +1312,7 @@ struct Lisp_Misc_Any /* Supertype of all Misc types. */
1318 enum Lisp_Misc_Type type : 16; /* = Lisp_Misc_??? */ 1312 enum Lisp_Misc_Type type : 16; /* = Lisp_Misc_??? */
1319 unsigned gcmarkbit : 1; 1313 unsigned gcmarkbit : 1;
1320 int spacer : 15; 1314 int spacer : 15;
1321 /* Make it as long as "Lisp_Free without padding". */ 1315 /* Make it as long as "Lisp_Free without padding". */
1322 void *fill; 1316 void *fill;
1323}; 1317};
1324 1318
@@ -3603,7 +3597,7 @@ extern void init_system_name (void);
3603 3597
3604#define SWITCH_ENUM_CAST(x) (x) 3598#define SWITCH_ENUM_CAST(x) (x)
3605 3599
3606/* Use this to suppress gcc's warnings. */ 3600/* Use this to suppress gcc's warnings. */
3607#ifdef lint 3601#ifdef lint
3608 3602
3609/* Use CODE only if lint checking is in effect. */ 3603/* Use CODE only if lint checking is in effect. */