Skip to content

Commit

Permalink
permit formats to be specified with BINASCII symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
froydnj committed Sep 30, 2010
1 parent bfcc5ac commit 931cf57
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions format.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@
descriptor
encoder-constructor
decoder-constructor)
(setf (gethash format *format-descriptors*) descriptor)
(setf (gethash format *format-state-constructors*)
(cons encoder-constructor decoder-constructor))
format)
(flet ((add-with-specified-format (format)
(setf (gethash format *format-descriptors*) descriptor)
(setf (gethash format *format-state-constructors*)
(cons encoder-constructor decoder-constructor))))
(add-with-specified-format format)
(add-with-specified-format (intern (symbol-name format)
(find-package "BINASCII")))
format))

(defun make-encoder (format)
"Return an ENCODE-STATE for FORMAT. Error if FORMAT is not a known
Expand Down

0 comments on commit 931cf57

Please sign in to comment.