]> git.eshelyaron.com Git - emacs.git/commit
Characterize functions in terms of type specifiers
authorAndrea Corallo <akrl@sdf.org>
Thu, 12 Nov 2020 16:27:31 +0000 (17:27 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 14 Nov 2020 21:06:31 +0000 (22:06 +0100)
commita467fa5c499c5808c6886d0d71640c1352498db8
tree8598297c02ea47a64d9e777ef09f7db66bbce509
parent9bb2fc1e647bb74fd37a62c0b2f35c8eb4f8eece
Characterize functions in terms of type specifiers

* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): New const
in place of `comp-known-ret-types' and `comp-known-ret-ranges'.
(comp-constraint): New struct to separate the constraint side of
an mvar.
(comp-constraint-f): Analogous for functions.
(comp-mvar): Rework and include `comp-constraint'.
(comp-type-spec-to-constraint): New function.
(comp-known-constraints-h): New const.
(comp-func-ret-typeset, comp-func-ret-range): Rework.
(comp-fwprop-insn): Fix.
* test/src/comp-tests.el (destructure-type-spec): New testcase.
lisp/emacs-lisp/comp.el
test/src/comp-tests.el