delete broken list case in profile module. warn and ignore invalid names.

This commit is contained in:
Diogo Franco 2016-07-20 11:38:43 +01:00
parent 6db5c3b672
commit 60a864ce3b

View file

@ -246,10 +246,6 @@ extern ECL_API size_t GC_get_total_bytes();
(dolist (name names)
(etypecase name
(symbol (funcall function name))
(list
(legal-fun-name-or-type-error name)
;; Then we map onto it.
(funcall function name))
(string (let ((package (si:coerce-to-package name)))
(do-symbols (symbol package)
(when (eq (symbol-package symbol) package)
@ -259,7 +255,8 @@ extern ECL_API size_t GC_get_total_bytes();
(funcall function symbol))
(let ((setf-name `(setf ,symbol)))
(when (fboundp setf-name)
(funcall function setf-name)))))))))
(funcall function setf-name)))))))
(t (warn "ignoring invalid argument to PROFILE: ~S" name))))
(values))
;;; Profile the named function, which should exist and not be profiled