projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6780bad
)
parse-integer signals error if junk is detected
author
David Vázquez
<davazp@gmail.com>
Wed, 24 Apr 2013 19:31:31 +0000
(20:31 +0100)
committer
David Vázquez
<davazp@gmail.com>
Wed, 24 Apr 2013 20:34:43 +0000
(21:34 +0100)
ecmalisp.lisp
patch
|
blob
|
history
diff --git
a/ecmalisp.lisp
b/ecmalisp.lisp
index
bcdf2dd
..
b549726
100644
(file)
--- a/
ecmalisp.lisp
+++ b/
ecmalisp.lisp
@@
-1200,7
+1200,11
@@
#+ecmalisp
(defun parse-integer (string &key junk-allowed)
- (!parse-integer string junk-allowed))
+ (multiple-value-bind (num index)
+ (!parse-integer string junk-allowed)
+ (when num
+ (values num index)
+ (error "junk detected."))))
(defvar *eof* (gensym))
(defun ls-read (stream)