/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009, 2010 Free Software Foundation * * This library 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. * * This library 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 this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301 USA */ #ifdef HAVE_CONFIG_H # include #endif #include "libguile/_scm.h" #include "libguile/mallocs.h" #include "libguile/strings.h" #include "libguile/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