aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorPaul Eggert2017-11-13 10:54:20 -0800
committerPaul Eggert2017-11-13 10:54:20 -0800
commit99ceefa8ec4f9993663492cfcce6bb82a94569c1 (patch)
tree507f76715b3086f34672b7c984dc09befaa57fc6 /src/lread.c
parenta7b7b85567f766ff510a5eaaaf32dbbbec15efd0 (diff)
parent79108894dbcd642121466bb6af6c98c6a56e9233 (diff)
downloademacs-99ceefa8ec4f9993663492cfcce6bb82a94569c1.tar.gz
emacs-99ceefa8ec4f9993663492cfcce6bb82a94569c1.zip
Merge from origin/emacs-26
79108894db Port to IBM xlc 12.01 d14956099d Simplify by removing HAVE_STRUCT_ATTRIBUTE_ALIGNED b1573a97e1 Use alignas to fix GCALIGN-related bugs 5d68dc9a2f Change vectorlike from struct to union 6aa0a26b46 Don't enable cursor-sensor-mode in mhtml-mode 2b8ef8dddf * lisp/files.el (abbreviate-file-name): Doc fix. (Bug#29267) fe85ce1e16 Unbreak interactive run of a flymake test (bug#29267) 48ad00390d Fix Bug#29225 42daf83f08 CC Mode: Fix defun-open being recognized as brace-list-ope... 7775c47298 Merge from Gnulib e470d16448 Pacify GCC when configured --with-x-toolkit=no 49450d0951 * lisp/find-dired.el (find-grep-dired): Doc fix. (Bug#29262) e286b3381f Fix more flymake-diag-region eob corner cases and add test... # Conflicts: # src/lisp.h
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/lread.c b/src/lread.c
index 19ed07220cd..17463f4ef4e 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -4043,14 +4043,14 @@ intern_sym (Lisp_Object sym, Lisp_Object obarray, Lisp_Object index)
4043{ 4043{
4044 Lisp_Object *ptr; 4044 Lisp_Object *ptr;
4045 4045
4046 XSYMBOL (sym)->interned = (EQ (obarray, initial_obarray) 4046 XSYMBOL (sym)->u.s.interned = (EQ (obarray, initial_obarray)
4047 ? SYMBOL_INTERNED_IN_INITIAL_OBARRAY 4047 ? SYMBOL_INTERNED_IN_INITIAL_OBARRAY
4048 : SYMBOL_INTERNED); 4048 : SYMBOL_INTERNED);
4049 4049
4050 if (SREF (SYMBOL_NAME (sym), 0) == ':' && EQ (obarray, initial_obarray)) 4050 if (SREF (SYMBOL_NAME (sym), 0) == ':' && EQ (obarray, initial_obarray))
4051 { 4051 {
4052 make_symbol_constant (sym); 4052 make_symbol_constant (sym);
4053 XSYMBOL (sym)->redirect = SYMBOL_PLAINVAL; 4053 XSYMBOL (sym)->u.s.redirect = SYMBOL_PLAINVAL;
4054 SET_SYMBOL_VAL (XSYMBOL (sym), sym); 4054 SET_SYMBOL_VAL (XSYMBOL (sym), sym);
4055 } 4055 }
4056 4056
@@ -4203,16 +4203,16 @@ usage: (unintern NAME OBARRAY) */)
4203 /* if (EQ (tem, Qnil) || EQ (tem, Qt)) 4203 /* if (EQ (tem, Qnil) || EQ (tem, Qt))
4204 error ("Attempt to unintern t or nil"); */ 4204 error ("Attempt to unintern t or nil"); */
4205 4205
4206 XSYMBOL (tem)->interned = SYMBOL_UNINTERNED; 4206 XSYMBOL (tem)->u.s.interned = SYMBOL_UNINTERNED;
4207 4207
4208 hash = oblookup_last_bucket_number; 4208 hash = oblookup_last_bucket_number;
4209 4209
4210 if (EQ (AREF (obarray, hash), tem)) 4210 if (EQ (AREF (obarray, hash), tem))
4211 { 4211 {
4212 if (XSYMBOL (tem)->next) 4212 if (XSYMBOL (tem)->u.s.next)
4213 { 4213 {
4214 Lisp_Object sym; 4214 Lisp_Object sym;
4215 XSETSYMBOL (sym, XSYMBOL (tem)->next); 4215 XSETSYMBOL (sym, XSYMBOL (tem)->u.s.next);
4216 ASET (obarray, hash, sym); 4216 ASET (obarray, hash, sym);
4217 } 4217 }
4218 else 4218 else
@@ -4223,13 +4223,13 @@ usage: (unintern NAME OBARRAY) */)
4223 Lisp_Object tail, following; 4223 Lisp_Object tail, following;
4224 4224
4225 for (tail = AREF (obarray, hash); 4225 for (tail = AREF (obarray, hash);
4226 XSYMBOL (tail)->next; 4226 XSYMBOL (tail)->u.s.next;
4227 tail = following) 4227 tail = following)
4228 { 4228 {
4229 XSETSYMBOL (following, XSYMBOL (tail)->next); 4229 XSETSYMBOL (following, XSYMBOL (tail)->u.s.next);
4230 if (EQ (following, tem)) 4230 if (EQ (following, tem))
4231 { 4231 {
4232 set_symbol_next (tail, XSYMBOL (following)->next); 4232 set_symbol_next (tail, XSYMBOL (following)->u.s.next);
4233 break; 4233 break;
4234 } 4234 }
4235 } 4235 }
@@ -4264,13 +4264,13 @@ oblookup (Lisp_Object obarray, register const char *ptr, ptrdiff_t size, ptrdiff
4264 else if (!SYMBOLP (bucket)) 4264 else if (!SYMBOLP (bucket))
4265 error ("Bad data in guts of obarray"); /* Like CADR error message. */ 4265 error ("Bad data in guts of obarray"); /* Like CADR error message. */
4266 else 4266 else
4267 for (tail = bucket; ; XSETSYMBOL (tail, XSYMBOL (tail)->next)) 4267 for (tail = bucket; ; XSETSYMBOL (tail, XSYMBOL (tail)->u.s.next))
4268 { 4268 {
4269 if (SBYTES (SYMBOL_NAME (tail)) == size_byte 4269 if (SBYTES (SYMBOL_NAME (tail)) == size_byte
4270 && SCHARS (SYMBOL_NAME (tail)) == size 4270 && SCHARS (SYMBOL_NAME (tail)) == size
4271 && !memcmp (SDATA (SYMBOL_NAME (tail)), ptr, size_byte)) 4271 && !memcmp (SDATA (SYMBOL_NAME (tail)), ptr, size_byte))
4272 return tail; 4272 return tail;
4273 else if (XSYMBOL (tail)->next == 0) 4273 else if (XSYMBOL (tail)->u.s.next == 0)
4274 break; 4274 break;
4275 } 4275 }
4276 XSETINT (tem, hash); 4276 XSETINT (tem, hash);
@@ -4290,9 +4290,9 @@ map_obarray (Lisp_Object obarray, void (*fn) (Lisp_Object, Lisp_Object), Lisp_Ob
4290 while (1) 4290 while (1)
4291 { 4291 {
4292 (*fn) (tail, arg); 4292 (*fn) (tail, arg);
4293 if (XSYMBOL (tail)->next == 0) 4293 if (XSYMBOL (tail)->u.s.next == 0)
4294 break; 4294 break;
4295 XSETSYMBOL (tail, XSYMBOL (tail)->next); 4295 XSETSYMBOL (tail, XSYMBOL (tail)->u.s.next);
4296 } 4296 }
4297 } 4297 }
4298} 4298}
@@ -4332,12 +4332,12 @@ init_obarray (void)
4332 DEFSYM (Qnil, "nil"); 4332 DEFSYM (Qnil, "nil");
4333 SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil); 4333 SET_SYMBOL_VAL (XSYMBOL (Qnil), Qnil);
4334 make_symbol_constant (Qnil); 4334 make_symbol_constant (Qnil);
4335 XSYMBOL (Qnil)->declared_special = true; 4335 XSYMBOL (Qnil)->u.s.declared_special = true;
4336 4336
4337 DEFSYM (Qt, "t"); 4337 DEFSYM (Qt, "t");
4338 SET_SYMBOL_VAL (XSYMBOL (Qt), Qt); 4338 SET_SYMBOL_VAL (XSYMBOL (Qt), Qt);
4339 make_symbol_constant (Qt); 4339 make_symbol_constant (Qt);
4340 XSYMBOL (Qt)->declared_special = true; 4340 XSYMBOL (Qt)->u.s.declared_special = true;
4341 4341
4342 /* Qt is correct even if CANNOT_DUMP. loadup.el will set to nil at end. */ 4342 /* Qt is correct even if CANNOT_DUMP. loadup.el will set to nil at end. */
4343 Vpurify_flag = Qt; 4343 Vpurify_flag = Qt;
@@ -4361,7 +4361,7 @@ defalias (struct Lisp_Subr *sname, char *string)
4361{ 4361{
4362 Lisp_Object sym; 4362 Lisp_Object sym;
4363 sym = intern (string); 4363 sym = intern (string);
4364 XSETSUBR (XSYMBOL (sym)->function, sname); 4364 XSETSUBR (XSYMBOL (sym)->u.s.function, sname);
4365} 4365}
4366#endif /* NOTDEF */ 4366#endif /* NOTDEF */
4367 4367
@@ -4376,8 +4376,8 @@ defvar_int (struct Lisp_Intfwd *i_fwd,
4376 sym = intern_c_string (namestring); 4376 sym = intern_c_string (namestring);
4377 i_fwd->type = Lisp_Fwd_Int; 4377 i_fwd->type = Lisp_Fwd_Int;
4378 i_fwd->intvar = address; 4378 i_fwd->intvar = address;
4379 XSYMBOL (sym)->declared_special = 1; 4379 XSYMBOL (sym)->u.s.declared_special = true;
4380 XSYMBOL (sym)->redirect = SYMBOL_FORWARDED; 4380 XSYMBOL (sym)->u.s.redirect = SYMBOL_FORWARDED;
4381 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)i_fwd); 4381 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)i_fwd);
4382} 4382}
4383 4383
@@ -4391,8 +4391,8 @@ defvar_bool (struct Lisp_Boolfwd *b_fwd,
4391 sym = intern_c_string (namestring); 4391 sym = intern_c_string (namestring);
4392 b_fwd->type = Lisp_Fwd_Bool; 4392 b_fwd->type = Lisp_Fwd_Bool;
4393 b_fwd->boolvar = address; 4393 b_fwd->boolvar = address;
4394 XSYMBOL (sym)->declared_special = 1; 4394 XSYMBOL (sym)->u.s.declared_special = true;
4395 XSYMBOL (sym)->redirect = SYMBOL_FORWARDED; 4395 XSYMBOL (sym)->u.s.redirect = SYMBOL_FORWARDED;
4396 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)b_fwd); 4396 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)b_fwd);
4397 Vbyte_boolean_vars = Fcons (sym, Vbyte_boolean_vars); 4397 Vbyte_boolean_vars = Fcons (sym, Vbyte_boolean_vars);
4398} 4398}
@@ -4410,8 +4410,8 @@ defvar_lisp_nopro (struct Lisp_Objfwd *o_fwd,
4410 sym = intern_c_string (namestring); 4410 sym = intern_c_string (namestring);
4411 o_fwd->type = Lisp_Fwd_Obj; 4411 o_fwd->type = Lisp_Fwd_Obj;
4412 o_fwd->objvar = address; 4412 o_fwd->objvar = address;
4413 XSYMBOL (sym)->declared_special = 1; 4413 XSYMBOL (sym)->u.s.declared_special = true;
4414 XSYMBOL (sym)->redirect = SYMBOL_FORWARDED; 4414 XSYMBOL (sym)->u.s.redirect = SYMBOL_FORWARDED;
4415 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)o_fwd); 4415 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)o_fwd);
4416} 4416}
4417 4417
@@ -4434,8 +4434,8 @@ defvar_kboard (struct Lisp_Kboard_Objfwd *ko_fwd,
4434 sym = intern_c_string (namestring); 4434 sym = intern_c_string (namestring);
4435 ko_fwd->type = Lisp_Fwd_Kboard_Obj; 4435 ko_fwd->type = Lisp_Fwd_Kboard_Obj;
4436 ko_fwd->offset = offset; 4436 ko_fwd->offset = offset;
4437 XSYMBOL (sym)->declared_special = 1; 4437 XSYMBOL (sym)->u.s.declared_special = true;
4438 XSYMBOL (sym)->redirect = SYMBOL_FORWARDED; 4438 XSYMBOL (sym)->u.s.redirect = SYMBOL_FORWARDED;
4439 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)ko_fwd); 4439 SET_SYMBOL_FWD (XSYMBOL (sym), (union Lisp_Fwd *)ko_fwd);
4440} 4440}
4441 4441
@@ -4769,7 +4769,7 @@ to find all the symbols in an obarray, use `mapatoms'. */);
4769 DEFVAR_LISP ("values", Vvalues, 4769 DEFVAR_LISP ("values", Vvalues,
4770 doc: /* List of values of all expressions which were read, evaluated and printed. 4770 doc: /* List of values of all expressions which were read, evaluated and printed.
4771Order is reverse chronological. */); 4771Order is reverse chronological. */);
4772 XSYMBOL (intern ("values"))->declared_special = 0; 4772 XSYMBOL (intern ("values"))->u.s.declared_special = true;
4773 4773
4774 DEFVAR_LISP ("standard-input", Vstandard_input, 4774 DEFVAR_LISP ("standard-input", Vstandard_input,
4775 doc: /* Stream for read to get input from. 4775 doc: /* Stream for read to get input from.