Skip to content
Snippets Groups Projects
Commit 29c86ea5 authored by ram's avatar ram
Browse files

Added new DELETE-FUNCTIONAL interface so that we can delete functions

that were never referenced.
Proclaimed the "GENERIC LIST" functions inline so that they result
in reasonable code.
parent f0949856
No related branches found
No related tags found
No related merge requests found
...@@ -557,6 +557,20 @@ inlines ...@@ -557,6 +557,20 @@ inlines
(undefined-value)) (undefined-value))
;;; DELETE-FUNCTIONAL -- Interface
;;;
;;; This function deletes functions that have no references. This need only
;;; be called on functions that never had any references, since otherwise
;;; DELETE-REF will handle the deletion.
;;;
(defun delete-functional (fun)
(assert (null (leaf-refs fun)))
(etypecase fun
(optional-dispatch (delete-optional-dispatch fun))
(clambda (delete-lambda fun)))
(undefined-value))
;;; Delete-Lambda -- Internal ;;; Delete-Lambda -- Internal
;;; ;;;
;;; Deal with deleting the last reference to a lambda. Since there is only ;;; Deal with deleting the last reference to a lambda. Since there is only
...@@ -1565,6 +1579,8 @@ inlines ...@@ -1565,6 +1579,8 @@ inlines
;;;; Generic list (?) functions: ;;;; Generic list (?) functions:
(proclaim '(inline find-in position-in map-in))
;;; Find-In -- Interface ;;; Find-In -- Interface
;;; ;;;
(defun find-in (next element list &key (key #'identity) (defun find-in (next element list &key (key #'identity)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment