(string-to-syntax): Mark it as pure.

This commit is contained in:
Stefan Monnier 2005-11-02 19:03:17 +00:00
parent 8b9e43d1ce
commit cfa1d4c6d1

View file

@ -1121,6 +1121,7 @@
(put 'symbol-name 'byte-optimizer 'byte-optimize-pure-func)
(put 'regexp-opt 'byte-optimizer 'byte-optimize-pure-func)
(put 'regexp-quote 'byte-optimizer 'byte-optimize-pure-func)
(put 'string-to-syntax 'byte-optimizer 'byte-optimize-pure-func)
(defun byte-optimize-pure-func (form)
"Do constant folding for pure functions.
This assumes that the function will not have any side-effects and that