Raymond Toy pushed to branch issue-373-handle-temp-files at cmucl / cmucl

Commits:

3 changed files:

Changes:

  • src/code/exports.lisp
    ... ... @@ -1213,8 +1213,7 @@
    1213 1213
     
    
    1214 1214
     	     "INVALID-FASL"
    
    1215 1215
     	     "WITH-TEMPORARY-DIRECTORY"
    
    1216
    -	     "WITH-TEMPORARY-FILE"
    
    1217
    -	     "WITH-TEMPORARY-STREAM")
    
    1216
    +	     "WITH-TEMPORARY-FILE")
    
    1218 1217
       ;; gencgc features
    
    1219 1218
       #+gencgc
    
    1220 1219
       (:export "GET-GC-ASSERTIONS"
    

  • src/code/pprint.lisp
    ... ... @@ -2093,7 +2093,6 @@ When annotations are present, invoke them at the right positions."
    2093 2093
         (c:defoptimizer pprint-defun)
    
    2094 2094
         (ext:with-float-traps-masked pprint-with-like)
    
    2095 2095
         (ext:with-float-traps-enabled pprint-with-like)
    
    2096
    -    (ext::with-temporary-stream pprint-with-like)
    
    2097 2096
         (ext::with-temporary-directory pprint-with-like)))
    
    2098 2097
     
    
    2099 2098
     (defun pprint-init ()
    

  • tests/trac.lisp
    ... ... @@ -175,7 +175,6 @@
    175 175
     		(let ((p0* (file-position stream)))
    
    176 176
     		  (eql p0* p0)))))))))
    
    177 177
     
    
    178
    -#+nil
    
    179 178
     (define-test trac.43
    
    180 179
         (:tag :trac)
    
    181 180
       (assert-true
    
    ... ... @@ -193,19 +192,6 @@
    193 192
     	 (let ((p0* (file-position stream)))
    
    194 193
     	   (eql p0* p0)))))))
    
    195 194
     
    
    196
    -(define-test trac.43
    
    197
    -    (:tag :trac)
    
    198
    -  (assert-true
    
    199
    -   (ext:with-temporary-stream (stream :direction :io :external-format :utf-8)
    
    200
    -     (dotimes (i 1000)
    
    201
    -       (write-char (code-char #x1234) stream))
    
    202
    -     (file-position stream 0)
    
    203
    -     (let ((p0 (file-position stream))
    
    204
    -	   (ch (read-char stream)))
    
    205
    -       (unread-char ch stream)
    
    206
    -       (let ((p0* (file-position stream)))
    
    207
    -	 (eql p0* p0))))))
    
    208
    -
    
    209 195
     (define-test trac.50
    
    210 196
       (:tag :trac)
    
    211 197
       (assert-equal "#P(:DIRECTORY (:ABSOLUTE \"tmp\" \"\" \"a\" \"\" \"b\"))"