projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Newlines after semicolons if *PRETTY-PRINT* is set.
[jscl.git]
/
src
/
print.lisp
diff --git
a/src/print.lisp
b/src/print.lisp
index
a540357
..
02f3919
100644
(file)
--- a/
src/print.lisp
+++ b/
src/print.lisp
@@
-266,9
+266,10
@@
(terpri)
x)
(terpri)
x)
-(defun warn (string)
+(defun warn (fmt &rest args)
(write-string "WARNING: ")
(write-string "WARNING: ")
- (write-line string))
+ (apply #'format t fmt args)
+ (terpri))
(defun print (x)
(write-line (prin1-to-string x))
(defun print (x)
(write-line (prin1-to-string x))
@@
-305,4
+306,7
@@
(case (char-upcase chr)
(#\S (prin1-to-string arg))
(#\A (princ-to-string arg))
(case (char-upcase chr)
(#\S (prin1-to-string arg))
(#\A (princ-to-string arg))
- (#\D (princ-to-string arg))))
+ (#\D (princ-to-string arg))
+ (t
+ (warn "~S is not implemented yet, using ~~S instead" chr)
+ (prin1-to-string arg))))