(define-package (blowfish)
(files "blowfish")
(parent ())
- ;; These are "exported" to (runtime blowfish) during load-option.
(export ()
- import-blowfish)
- (export (blowfish global)
blowfish-cbc
blowfish-cfb64
blowfish-ecb
blowfish-set-key
compute-blowfish-init-vector
read-blowfish-file-header
- write-blowfish-file-header))
-
-(define-package (blowfish global)
- ;; Just to get cref to analyze whether all exports are defined.
- )
\ No newline at end of file
+ write-blowfish-file-header))
\ No newline at end of file
(lambda ()
(load-package-set "blowfish")))
-(add-subsystem-identification! "Blowfish" '(0 2 1))
-
-;; "Export" these to the (runtime blowfish) package bindings.
-(let ((runtime (->environment '(runtime blowfish)))
- (blowfish (->environment '(blowfish))))
- (for-each
- (lambda (name)
- (environment-assign! runtime name (environment-lookup blowfish name)))
- '(blowfish-cbc
- blowfish-cfb64
- blowfish-ecb
- blowfish-encrypt-port
- blowfish-file?
- blowfish-ofb64
- blowfish-set-key
- compute-blowfish-init-vector
- read-blowfish-file-header
- write-blowfish-file-header)))
\ No newline at end of file
+(add-subsystem-identification! "Blowfish" '(0 2 1))
\ No newline at end of file
cp1-ref
ustring-cp-size
ustring?)
- (export ()
- import-gdbm2)
(export ()
gdbm-close
gdbm-delete
|#
-;;;; The GDBM2 option.
+;;;; The GDBM option.
;;; package: (gdbm)
(declare (usual-integrations))
\f
-(define (import-gdbm2)
- (let ((target-environment (nearest-repl/environment))
- (source-environment (->environment '(gdbm))))
- (for-each (lambda (name)
- (link-variables target-environment name
- source-environment name))
- '(gdbm-close
- gdbm-delete
- gdbm-exists?
- gdbm-fetch
- gdbm-firstkey
- gdbm-nextkey
- gdbm-open
- gdbm-reorganize
- gdbm-setopt
- gdbm-store
- gdbm-sync
- gdbm-version
- gdbm_cachesize
- gdbm_fast
- ;;gdbm_fastmode obsolete
- gdbm_insert
- gdbm_newdb
- gdbm_reader
- gdbm_replace
- gdbm_wrcreat
- gdbm_writer))))
-
(C-include "gdbm")
(define-integrable (every-loop proc ref string start end)
unsigned-integer->bit-string
write-bits!))
-(define-package (runtime blowfish)
- (files "blowfish")
- (parent (runtime))
- (export ()
- blowfish-available?
- blowfish-cbc
- blowfish-cfb64
- blowfish-ecb
- blowfish-encrypt-port
- blowfish-file?
- blowfish-ofb64
- blowfish-set-key
- compute-blowfish-init-vector
- read-blowfish-file-header
- write-blowfish-file-header))
-
(define-package (runtime boolean)
(files "boole")
(parent (runtime))