chiark / gitweb /
dot/lisp-init.lisp: Use `sb-ext:posix-getenv' instead of `sb-posix:getenv'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 16 Sep 2015 10:51:27 +0000 (11:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 16 Sep 2015 10:51:27 +0000 (11:51 +0100)
The former is built into the standard image, while the latter involves
loading a system at runtime which delays startup noticeably.

dot/lisp-init.lisp

index 9defa8c66ec4d6955d19dd1c9b44cee2f387edb9..ed6acd11fc26d58be2bb0327d92510bb5280a74b 100644 (file)
@@ -30,10 +30,9 @@ (let ((#1=#:sbcl-src #p"/usr/share/sbcl-source/"))
            ("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*"))))))
 
 ;; Tell some Lisps about my home directory.
            ("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*"))))))
 
 ;; Tell some Lisps about my home directory.
-#+sbcl (require :sb-posix)
 #+cmu (ext:clear-search-list "HOME")
 #+(and unix (or sbcl clisp cmu))
 #+cmu (ext:clear-search-list "HOME")
 #+(and unix (or sbcl clisp cmu))
-(let* ((#1=#:homestring (or #+sbcl (sb-posix:getenv "HOME")
+(let* ((#1=#:homestring (or #+sbcl (sb-ext:posix-getenv "HOME")
                            #+clisp (ext:getenv "HOME")
                            #+cmu (unix:unix-getenv "HOME")
                            "/home/mdw"))
                            #+clisp (ext:getenv "HOME")
                            #+cmu (unix:unix-getenv "HOME")
                            "/home/mdw"))