X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcode%2Ftarget-extensions.lisp;h=62f062ac357074095e465284a3b4537c944a60bb;hb=942e45e3bb73fd55786e4a0ab4590324063c0c89;hp=625c514c515f4a773a24fb5d96a39548a54e0291;hpb=75b52379bdc2269961af6a1308eca63610f38ac3;p=sbcl.git diff --git a/src/code/target-extensions.lisp b/src/code/target-extensions.lisp index 625c514..62f062a 100644 --- a/src/code/target-extensions.lisp +++ b/src/code/target-extensions.lisp @@ -38,11 +38,11 @@ applications.") ;;; like LISTEN, but any whitespace in the input stream will be flushed (defun listen-skip-whitespace (&optional (stream *standard-input*)) (do ((char (read-char-no-hang stream nil nil nil) - (read-char-no-hang stream nil nil nil))) + (read-char-no-hang stream nil nil nil))) ((null char) nil) - (cond ((not (whitespacep char)) - (unread-char char stream) - (return t))))) + (cond ((not (whitespace[1]p char)) + (unread-char char stream) + (return t))))) ;;;; helpers for C library calls @@ -50,15 +50,15 @@ applications.") ;;; errno problem, arranging for the condition's print representation ;;; to be similar to the ANSI C perror(3) style. (defun simple-perror (prefix-string - &key - (errno (get-errno)) - (simple-error 'simple-error) - other-condition-args) + &key + (errno (get-errno)) + (simple-error 'simple-error) + other-condition-args) (declare (type symbol simple-error)) (aver (subtypep simple-error 'simple-condition)) (aver (subtypep simple-error 'error)) (apply #'error - simple-error - :format-control "~@<~A: ~2I~_~A~:>" - :format-arguments (list prefix-string (strerror errno)) - other-condition-args)) + simple-error + :format-control "~@<~A: ~2I~_~A~:>" + :format-arguments (list prefix-string (strerror errno)) + other-condition-args))