Merge pull request #1 from dkochmanski/master

Add support for other implementations (flexi-streams dependency).
This commit is contained in:
2015-07-17 22:35:47 +02:00
2 changed files with 11 additions and 2 deletions

View File

@ -15,5 +15,9 @@
:maintainer "Pierre R. Mai <pmai@pmsf.de>"
:licence "Public Domain"
:version "2.0.2"
#+sbcl :depends-on #+sbcl ("sb-rotate-byte")
:depends-on (#+sbcl "sb-rotate-byte"
#-(or :cmu :sbcl
(and :lispworks (not :lispworks4))
:ccl :allegro)
"flexi-streams")
:components ((:file "md5")))

View File

@ -711,7 +711,12 @@ determined by the underlying implementation."
#-(or :cmu :sbcl (and :lispworks (not :lispworks4)) :ccl :allegro)
(if (<= char-code-limit 256)
(md5sum-sequence string :start start :end end)
(error "md5:md5sum-string is not supported for your implementation."))))
(md5sum-sequence
(flexi-streams:string-to-octets string
:external-format
(if (eq external-format :default)
:UTF-8
external-format))))))
(eval-when (:compile-toplevel :load-toplevel :execute)
(defconstant +buffer-size+ (* 128 1024)