Simplify use of FOR_EACH_TAIL
commitb7fa6b1f1cee9d1b71553fa665843774d2e5cf3d
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Feb 2017 21:25:37 +0000 (5 13:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Feb 2017 21:30:28 +0000 (5 13:30 -0800)
tree3a6df68a8377005aec8872de00df48b2cbf9f714
parent5e222f673717718cd0ee209487cc06637bd142fc
Simplify use of FOR_EACH_TAIL

* src/data.c (circular_list): New function.
* src/lisp.h (FOR_EACH_TAIL): Use Brent’s algorithm and C99 for-loop
decl, to eliminate the need for the args TAIL, TORTOISE and N, and
to speed things up a bit on typical hosts with optimization.
All uses changed (Bug#25605).
src/data.c
src/fns.c
src/lisp.h