Changeset 14365
- Timestamp:
- Oct 14, 2010, 8:15:03 PM (14 years ago)
- Location:
- trunk/source
- Files:
-
- 4 edited
-
level-0/l0-float.lisp (modified) (2 diffs)
-
level-1/l1-clos-boot.lisp (modified) (1 diff)
-
level-1/l1-streams.lisp (modified) (2 diffs)
-
lib/macros.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/level-0/l0-float.lisp
r14224 r14365 819 819 820 820 821 (defun positive-realpart-p (n) 822 (> (realpart n) 0)) 821 823 822 824 (defun expt (b e) … … 826 828 (if (minusp e) (/ 1 (%integer-power b (- e))) (%integer-power b e))) 827 829 ((zerop b) 828 (if (plusp (realpart e)) b (report-bad-arg e '( number (0) *))))830 (if (plusp (realpart e)) b (report-bad-arg e '(satisfies positive-realpart-p)))) 829 831 ((and (realp b) (plusp b) (realp e)) 830 832 (if (or (typep b 'double-float) -
trunk/source/level-1/l1-clos-boot.lisp
r14262 r14365 3199 3199 (setq old-wrapper (gf.instance.class-wrapper instance))) 3200 3200 (unless old-wrapper 3201 (report-bad-arg instance '(or standard- instancefuncallable-standard-object))))3201 (report-bad-arg instance '(or standard-object funcallable-standard-object)))) 3202 3202 (when (eql 0 (%wrapper-instance-slots old-wrapper)) ; is it really obsolete? 3203 3203 (let* ((class (%wrapper-class old-wrapper)) -
trunk/source/level-1/l1-streams.lisp
r14255 r14365 6430 6430 (setf (fill-pointer displaced) newpos))) 6431 6431 newpos) 6432 (report-bad-arg newpos `(integer 0 `(,(- (the fixnum (io-buffer-limit outbuf)) origin)))))6432 (report-bad-arg newpos `(integer 0 (,(- (the fixnum (io-buffer-limit outbuf)) origin))))) 6433 6433 (the fixnum (- (the fixnum (io-buffer-idx outbuf)) origin))))) 6434 6434 … … 6585 6585 (setf (io-buffer-idx inbuf) (the fixnum (+ origin (the fixnum newpos)))) 6586 6586 newpos) 6587 (report-bad-arg newpos `(integer 0 `(,(- (the fixnum (io-buffer-limit inbuf)) origin)))))6587 (report-bad-arg newpos `(integer 0 (,(- (the fixnum (io-buffer-limit inbuf)) origin))))) 6588 6588 (the fixnum (- (the fixnum (io-buffer-idx inbuf)) origin))))) 6589 6589 -
trunk/source/lib/macros.lisp
r14362 r14365 264 264 ,@(if ret `((progn (setq ,varsym nil) ,ret)))))))) 265 265 266 (defmacro report-bad-arg (&rest args) 267 `(values (%badarg ,@args))) 266 (defmacro report-bad-arg (&whole w thing typespec &environment env) 267 (when (quoted-form-p typespec) 268 (unless (ignore-errors (specifier-type-if-known (cadr typespec) env)) 269 (warn "Unknown type specifier ~s in ~s." (cadr typespec) w))) 270 `(values (%badarg ,thing ,typespec))) 268 271 269 272 (defmacro %cons-restart (name action report interactive test)
Note:
See TracChangeset
for help on using the changeset viewer.
