Changeset 2619
- Timestamp:
- 02/24/08 22:05:02 (11 months ago)
- Files:
-
- trunk/bknr/datastore/src/data/encoding-test.lisp (modified) (2 diffs)
- trunk/bknr/datastore/src/utils/package.lisp (modified) (1 diff)
- trunk/bknr/datastore/src/utils/utils.lisp (modified) (2 diffs)
- trunk/bknr/modules/bluetooth/bluetooth.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bknr/datastore/src/data/encoding-test.lisp
r2558 r2619 18 18 (defun congruent-p (a b) 19 19 "Are lisp value A and B (deeply) congruent?" 20 (bknr.utils:with-temp -file (path-a)21 (bknr.utils:with-temp -file (path-b)20 (bknr.utils:with-temporary-file (path-a) 21 (bknr.utils:with-temporary-file (path-b) 22 22 (cl-store:store a path-a) 23 23 (cl-store:store b path-b) … … 28 28 29 29 (defun copy-by-encoding (value) 30 (bknr.utils:with-temp -file (path)30 (bknr.utils:with-temporary-file (path) 31 31 (with-open-file (out path :direction :output :if-exists :supersede 32 32 :element-type '(unsigned-byte 8)) trunk/bknr/datastore/src/utils/package.lisp
r2521 r2619 42 42 #:directory-empty-p 43 43 #:subdir-p 44 #: temporary-file45 #:with-temp -file44 #:make-temporary-pathname 45 #:with-temporary-file 46 46 #:file-contents 47 47 #:parent-directory trunk/bknr/datastore/src/utils/utils.lisp
r2451 r2619 200 200 (read-chunks)))) 201 201 202 (defun temporary-file (&key (defaults nil) (name "tmp"))202 (defun make-temporary-pathname (&key (defaults nil) (name "tmp")) 203 203 (loop for file = (make-pathname :name (format nil "~A-~A-~A" 204 204 name … … 209 209 finally (return file))) 210 210 211 (defmacro with-temp -file ((var &rest args) &body body)212 `(let ((,var ( temporary-file ,@args)))211 (defmacro with-temporary-file ((var &rest args) &body body) 212 `(let ((,var (make-temporary-pathname ,@args))) 213 213 (unwind-protect 214 214 (progn ,@body) trunk/bknr/modules/bluetooth/bluetooth.lisp
r1542 r2619 4 4 5 5 (defun obex-push-stream (btaddr in-stream &optional filename) 6 (let ((temp-file ( temporary-file :defaults "/tmp/")))6 (let ((temp-file (make-temporary-pathname :defaults "/tmp/"))) 7 7 (unwind-protect 8 8 (progn
