chiark / gitweb /
src/utilities.lisp (compose): Handle the case of zero arguments.
[sod] / src / parser / scanner-charbuf-impl.lisp
index 86c4445817f32fd7ea80878476690898e8312606..92ba83c96bb19bbc37b0012665fb8f49e09668c2 100644 (file)
@@ -354,8 +354,9 @@ (defmethod scanner-release-place ((scanner charbuf-scanner) place)
 
 (defstruct (charbuf-slice
             (:constructor make-charbuf-slice
-                          (buf &optional (start 0) %end
-                           &aux (end (or %end (length buf))))))
+                (buf
+                 &optional (start 0) %end
+                 &aux (end (or %end (length buf))))))
   (buf nil :type (or charbuf (eql :eof)) :read-only t)
   (start 0 :type (and fixnum unsigned-byte) :read-only t)
   (end 0 :type (and fixnum unsigned-byte) :read-only t))
@@ -389,7 +390,7 @@ (defmethod scanner-interval
                                                    :index index))))
         (last-link (charbuf-scanner-place-link place-b)))
     (flet ((bad ()
-            (error "Incorrect places ~S and ~S to `scanner-interval'."
+            (error "Incorrect places ~S and ~S to `scanner-interval'"
                    place-a place-b)))
       (do ((link (charbuf-scanner-place-link place-a)
                 (charbuf-chain-link-next link))