Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0d452d61
Commit
0d452d61
authored
Oct 30, 2023
by
Mattias Engdegård
Browse files
; * lisp/emacs-lisp/comp-cstr.el (comp-subtype-p): Hoist above use.
parent
ecc88709
Pipeline
#26990
failed with stages
in 170 minutes and 58 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lisp/emacs-lisp/comp-cstr.el
lisp/emacs-lisp/comp-cstr.el
+8
-8
No files found.
lisp/emacs-lisp/comp-cstr.el
View file @
0d452d61
...
...
@@ -293,6 +293,14 @@ Return them as multiple value."
(
setq
notdirect
(
append
notdirect
(
comp-supertypes
parent
))))
finally
return
direct
)))
(
defsubst
comp-subtype-p
(
type1
type2
)
"Return t if TYPE1 is a subtype of TYPE2 or nil otherwise."
(
let
((
types
(
cons
type1
type2
)))
(
or
(
gethash
types
(
comp-cstr-ctxt-subtype-p-mem
comp-ctxt
))
(
puthash
types
(
memq
type2
(
comp-supertypes
type1
))
(
comp-cstr-ctxt-subtype-p-mem
comp-ctxt
)))))
(
defun
comp--normalize-typeset0
(
typeset
)
;; For every type search its supertypes. If all the subtypes of a
;; supertype are presents remove all of them, add the identified
...
...
@@ -373,14 +381,6 @@ Return them as multiple value."
(
if
above
(
comp--intersection
x
above
)
x
)))))
finally
return
above
))
(
defsubst
comp-subtype-p
(
type1
type2
)
"Return t if TYPE1 is a subtype of TYPE2 or nil otherwise."
(
let
((
types
(
cons
type1
type2
)))
(
or
(
gethash
types
(
comp-cstr-ctxt-subtype-p-mem
comp-ctxt
))
(
puthash
types
(
memq
type2
(
comp-supertypes
type1
))
(
comp-cstr-ctxt-subtype-p-mem
comp-ctxt
)))))
(
defun
comp-union-typesets
(
&rest
typesets
)
"Union types present into TYPESETS."
(
or
(
gethash
typesets
(
comp-cstr-ctxt-union-typesets-mem
comp-ctxt
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment