* src/itree.c (forget_itree): New function.
* src/emacs.c (Fdump_emacs): Call 'forget_itree'.
gflags.will_dump_with_unexec_ = false;
gflags.dumped_with_unexec_ = true;
+ forget_itree ();
+
alloc_unexec_pre ();
unexec (SSDATA (filename), !NILP (symfile) ? SSDATA (symfile) : 0);
iter = itree_iterator_create (NULL);
}
+#ifdef HAVE_UNEXEC
+void
+forget_itree (void)
+{
+ iter = NULL;
+}
+#endif
+
struct check_subtree_result
{
/* Node count of the tree. */
};
extern void init_itree (void);
+extern void forget_itree (void);
extern void itree_node_init (struct itree_node *, bool, bool, Lisp_Object);
extern ptrdiff_t itree_node_begin (struct itree_tree *, struct itree_node *);
extern ptrdiff_t itree_node_end (struct itree_tree *, struct itree_node *);