Restore an initialization in search.c.
(Still doesn't build.)
Fput (Qinvalid_regexp, Qerror_message,
build_string ("Invalid regexp"));
+ last_thing_searched = Qnil;
+ saved_last_thing_searched = Qnil;
+
DEFVAR_LISP ("search-spaces-regexp", &Vsearch_spaces_regexp,
doc: /* Regexp to substitute for bunches of spaces in regexp search.
Some commands use this for user-specified regexps.
if (!initialized)
abort ();
- new_thread = (struct thread_state *) allocate_pseudovector (VECSIZE (struct thread_state),
- 4, PVEC_THREAD);
+ new_thread = ALLOCATE_PSEUDOVECTOR (struct thread_state, m_gcprolist,
+ PVEC_THREAD);
memset ((char *) new_thread + OFFSETOF (struct thread_state, m_gcprolist),
0, sizeof (struct thread_state) - OFFSETOF (struct thread_state,
m_gcprolist));
Lisp_Object m_saved_last_thing_searched;
#define saved_last_thing_searched (current_thread->m_saved_last_thing_searched)
+ /* m_gcprolist must be the first non-lisp field. */
/* Recording what needs to be marked for gc. */
struct gcpro *m_gcprolist;
#define gcprolist (current_thread->m_gcprolist)