]> git.eshelyaron.com Git - emacs.git/commit
Refactoring: simplify definition of some internal variables.
authorPhilipp Stephani <phst@google.com>
Fri, 19 Apr 2019 16:38:19 +0000 (18:38 +0200)
committerPhilipp Stephani <phst@google.com>
Fri, 19 Apr 2019 16:41:15 +0000 (18:41 +0200)
commit8aadf6e415b7801cb9fa4c5670b1750da207cf87
treebe5b2ff82b5ffa0ef44684a76a9ad1676f13d3ed
parentbd93bcb078f29e9b5fa127d6cef0bdeeab5c2285
Refactoring: simplify definition of some internal variables.

In some cases, we never specbind internal objects, so they don't have
to be symbols.  Rather than using DEFSYM/DEFVAR and then uninterning
the symbols, use plain static variables.  Call staticpro for all of
them, to protect them from the garbage collector.

* src/eval.c (syms_of_eval): Use a static variable for
Qcatch_all_memory_full.

* src/emacs-module.c (syms_of_module): Use static variables for
Vmodule_refs_hash, Vmodule_runtimes, and Vmodule_environments.
src/emacs-module.c
src/eval.c