/
n-dimens
/
pgloader
Обзор
Документация
Войти
/
n-dimens
/
pgloader
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/getenv.lisp
18 строк
524 B
Dimitri Fontaine
Clozure already provides a getenv function.
08 ноя 2015, 20:26
08 ноя 2015, 20:26
042045c
Код
Авторство
О чём код?
;;; ;;; Export a getenv feature so that we can fetch http_proxy at build time. ;;; ;;; We can't rely on Quicklisp to have installed a modern ASDF with UIOP yet ;;; here: we need the feature to pass in the :proxy argument to ;;; quicklisp-quickstart:install. ;;; (in-package :cl-user) ;; ;; ccl provides an implementation of getenv already. ;; #+sbcl (defun getenv (name &optional default) "Return the current value for the environment variable NAME, or default when unset." (or (sb-ext:posix-getenv name) default))