]> git.eshelyaron.com Git - emacs.git/commitdiff
* Rename `comp--typeof-builtin-types'
authorAndrea Corallo <akrl@sdf.org>
Thu, 18 Aug 2022 21:41:39 +0000 (23:41 +0200)
committerAndrea Corallo <akrl@sdf.org>
Thu, 18 Aug 2022 21:41:39 +0000 (23:41 +0200)
* lisp/emacs-lisp/comp-cstr.el (comp--typeof-builtin-types): Rename.
(comp-normalize-valset, comp-common-supertype-2): Update.

lisp/emacs-lisp/comp-cstr.el

index 948a2c4f702051c835264288a6d852d7d76afcb4..8cff06a383a30d6d9a57e05ff6fd6b1a6f816085 100644 (file)
@@ -37,9 +37,9 @@
 
 (require 'cl-lib)
 
-(defconst comp--typeof-types (mapcar (lambda (x)
-                                       (append x '(t)))
-                                     cl--typeof-types)
+(defconst comp--typeof-builtin-types (mapcar (lambda (x)
+                                               (append x '(t)))
+                                             cl--typeof-types)
   ;; TODO can we just add t in `cl--typeof-types'?
   "Like `cl--typeof-types' but with t as common supertype.")
 
@@ -230,7 +230,7 @@ Return them as multiple value."
   (cl-loop
    named outer
    with found = nil
-   for l in comp--typeof-types
+   for l in comp--typeof-builtin-types
    do (cl-loop
        for x in l
        for i from (length l) downto 0
@@ -273,7 +273,7 @@ Return them as multiple value."
                (cl-loop
                 with types = (apply #'append typesets)
                 with res = '()
-                for lane in comp--typeof-types
+                for lane in comp--typeof-builtin-types
                 do (cl-loop
                     with last = nil
                     for x in lane