(add-subsystem-identification! "mcrypt" '(1 0 2))
-;; "Export" these to the (runtime crypto) package bindings.
-(let ((crypto (->environment '(runtime crypto)))
- (mcrypt (->environment '(mcrypt))))
- (for-each
- (lambda (name)
- (environment-assign! crypto name (environment-lookup mcrypt name)))
- '(mcrypt-algorithm-name
- mcrypt-algorithm-names
- mcrypt-block-algorithm-mode?
- mcrypt-block-algorithm?
- mcrypt-block-mode?
- mcrypt-context?
- mcrypt-encrypt
- mcrypt-encrypt-port
- mcrypt-end
- mcrypt-init
- mcrypt-init-vector-size
- mcrypt-key-size
- mcrypt-mode-name
- mcrypt-mode-names
- mcrypt-open-module
- mcrypt-self-test
- mcrypt-supported-key-sizes)))
\ No newline at end of file
+(if (name->package '(runtime crypto))
+ ((access mcrypt-link! (->environment '(runtime crypto)))))
\ No newline at end of file
(with-loader-base-uri (system-library-uri "x11/")
(lambda ()
(load-package-set "x11")))
+
(add-subsystem-identification! "X11" '(1 3 1))
-((access link! (->environment '(runtime x-graphics))))
\ No newline at end of file
+(if (name->package '(runtime x-graphics))
+ ((access link! (->environment '(runtime x-graphics)))))
\ No newline at end of file