diff options
author | Philipp Stephani <phst@google.com> | 2019-04-19 18:38:19 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2019-04-19 18:41:15 +0200 |
commit | 8aadf6e415b7801cb9fa4c5670b1750da207cf87 (patch) | |
tree | be5b2ff82b5ffa0ef44684a76a9ad1676f13d3ed /lisp/emacs-lisp | |
parent | bd93bcb078f29e9b5fa127d6cef0bdeeab5c2285 (diff) | |
download | emacs-8aadf6e415b7801cb9fa4c5670b1750da207cf87.tar.gz emacs-8aadf6e415b7801cb9fa4c5670b1750da207cf87.tar.bz2 emacs-8aadf6e415b7801cb9fa4c5670b1750da207cf87.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions