Skip to content

Commit

Permalink
Return the last value in with-{string,octets}-parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Apr 7, 2015
1 parent 00d2958 commit 0e8910a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/proc-parse.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@
(when (eofp)
(go :eof))
(setq ,elem (aref ,data ,p))
,@body
(return-from ,body-block ,p)
(return-from ,body-block (progn ,@body))
:eof)))))))

(defmacro with-octets-parsing ((data &key start end) &body body)
Expand Down Expand Up @@ -400,8 +399,7 @@
(when (eofp)
(go :eof))
(setq ,elem (aref ,data ,p))
,@body
(return-from ,body-block ,p)
(return-from ,body-block (progn ,@body))
:eof)))))))

(defmacro with-vector-parsing ((data &key (start 0) end) &body body &environment env)
Expand Down

0 comments on commit 0e8910a

Please sign in to comment.