]> git.eshelyaron.com Git - emacs.git/commit
Use integers for syntax-pps-stats
authorPaul Eggert <eggert@Penguin.CS.UCLA.EDU>
Sun, 6 Jan 2019 19:14:59 +0000 (11:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Jan 2019 19:15:40 +0000 (11:15 -0800)
commitb0b483d714e87ee0a4572f9c541514a1ac1a8226
tree84db95eef1c7b6a1fc5a0b3e276799bc610316de
parentcfa54ab7d8a64a8a186e29ed2db2cbd58b99c0d9
Use integers for syntax-pps-stats

* lisp/emacs-lisp/syntax.el (syntax-ppss-stats):
Use integers, not floating-point, for stats, now that integers are
unbounded.  Almost always these should be fixnums.  Add 1 to last
slot’s car so that this addition need not be done at runtime.
(syntax-pps-stats, syntax-ppss): Use integers for calculations.
(syntax-ppss--update-stats): New convenience function.
(syntax-ppss): Use it.
lisp/emacs-lisp/syntax.el