diff options
author | Andrea Corallo <acorallo@gnu.org> | 2024-05-14 09:24:05 +0200 |
---|---|---|
committer | Andrea Corallo <acorallo@gnu.org> | 2024-05-14 11:17:25 +0200 |
commit | 6e1bb713f61da3e09b811883ed889067a1cc939b (patch) | |
tree | d8cdafb52fa94d8e93f75290491f93fd2983e039 /lisp/emacs-lisp/comp.el | |
parent | 041aa3ffc65c1146bed43ecaa1b0df4e7486c963 (diff) | |
download | emacs-6e1bb713f61da3e09b811883ed889067a1cc939b.tar.gz emacs-6e1bb713f61da3e09b811883ed889067a1cc939b.tar.bz2 emacs-6e1bb713f61da3e09b811883ed889067a1cc939b.zip |
Change 'type' declaration to 'ftype'
* lisp/window.el (get-lru-window, get-largest-window)
(one-window-p): Update function type declaration.
* lisp/subr.el (ignore, error, zerop, fixnump, bignump, lsh)
(last, eventp, mouse-movement-p, log10, memory-limit)
(internal-pop-keymap): Likewise.
* lisp/simple.el (count-lines, mark, string-empty-p): Likewise.
* lisp/files.el (parse-colon-path): Likewise.
* lisp/env.el (getenv): Likewise.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt): Likewise.
* lisp/emacs-lisp/lisp.el (buffer-end): Likewise.
* lisp/emacs-lisp/comp.el (comp--final): Likewise.
* lisp/custom.el (custom-variable-p): Likewise.
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist): Rename 'type'
-> 'ftype'.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index f9fa83da585..83ca480616f 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -3325,12 +3325,12 @@ Prepare every function for final compilation and drive the C back-end." ;; are assumed just to be true. Use with extreme caution... (defun comp-hint-fixnum (x) - (declare (type (function (t) fixnum)) + (declare (ftype (function (t) fixnum)) (gv-setter (lambda (val) `(setf ,x ,val)))) x) (defun comp-hint-cons (x) - (declare (type (function (t) cons)) + (declare (ftype (function (t) cons)) (gv-setter (lambda (val) `(setf ,x ,val)))) x) |