/* Copyright 1995-1996,1998,2000-2001,2006,2008-2011,2018 Free Software Foundation, Inc. This file is part of Guile. Guile is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Guile is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Guile. If not, see . */ #ifdef HAVE_CONFIG_H # include #endif #include "boolean.h" #include "list.h" #include "mallocs.h" #include "numbers.h" #include "pairs.h" #include "strings.h" #include "symbols.h" #include "options.h" /* {Run-time options} * * This is the basic interface for low-level configuration of the * Guile library. It is used for configuring the reader, evaluator, * printer and debugger. * * Motivation: * * 1. Altering option settings can have side effects. * 2. Option values can be stored in native format. * (Important for efficiency in, e. g., the evaluator.) * 3. Doesn't use up name space. * 4. Options can be naturally grouped => ease of use. */ /* scm_options is the core of all options interface procedures. * * Some definitions: * * Run time options in Guile are arranged in groups. Each group * affects a certain aspect of the behaviour of the library. * * An "options interface procedure" manages one group of options. It * can be used to check or set options, or to get documentation for * all options of a group. The options interface procedure is not * intended to be called directly by the user. The user should * instead call * * (-options) * (-options 'help) * (-options 'full) * * to display current option settings (The second version also * displays documentation. The third version also displays * information about programmer's options.), and * * (-enable ') * (-disable ') * (-set! ) * (-options