]> git.eshelyaron.com Git - emacs.git/commit
Simplify prog1 implementation
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2016 18:32:44 +0000 (10:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Dec 2016 18:38:15 +0000 (10:38 -0800)
commita02ca7a231c3856efd57a502c6a73e6c251091e8
treeaa5766c2c9f677ab0bfb81bcc3b920fabdc5305c
parente6161f648903d821865b9610b3b6aa0f82a5dcb7
Simplify prog1 implementation

Inspired by a suggestion from Chris Gregory in:
http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00965.html
On my platform, this generates exactly the same machine insns.
* src/eval.c (prog_ignore): Rename from unwind_body, since
it’s more general than that.  All callers changed.
(Fprog1): Simplify by using prog_ignore.
(Fwhile): Clarify by using prog_ignore.
src/bytecode.c
src/eval.c
src/lisp.h