package-nicknames, package-use-list, package-used-by-list,
package-shadowing-symbols now have `package-designator' instead of `x'
in their arlgists.
Closes lp#854314.
Clean up: remove a duplicate definition from tests/compiler-test-util.lisp
;;; most other operations, are unspecified for deleted packages. We
;;; just do the easy thing and signal errors in that case.
(macrolet ((def (ext real)
- `(defun ,ext (x) (,real (find-undeleted-package-or-lose x)))))
+ `(defun ,ext (package-designator)
+ (,real (find-undeleted-package-or-lose package-designator)))))
(def package-nicknames package-%nicknames)
(def package-use-list package-%use-list)
(def package-used-by-list package-%used-by-list)
(values warn fail)))
(ignore-errors (delete-file lisp))
(ignore-errors (delete-file fasl)))))
-
-(defun file-compile (toplevel-forms &key load)
- (let* ((lisp (merge-pathnames "file-compile-tmp.lisp"))
- (fasl (compile-file-pathname lisp)))
- (unwind-protect
- (progn
- (with-open-file (f lisp :direction :output)
- (if (stringp toplevel-forms)
- (write-line toplevel-forms f)
- (dolist (form toplevel-forms)
- (prin1 form f))))
- (multiple-value-bind (fasl warn fail) (compile-file lisp)
- (when load
- (load fasl))
- (values warn fail)))
- (ignore-errors (delete-file lisp))
- (ignore-errors (delete-file fasl)))))