* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
/*
|
|
|
|
|
* private-options.h - private declarations for option handling
|
|
|
|
|
*
|
|
|
|
|
* We put this in a private header, since layout of data structures
|
|
|
|
|
* is an implementation detail that we want to hide.
|
|
|
|
|
*
|
2014-01-12 07:55:22 -05:00
|
|
|
* Copyright (C) 2007, 2009, 2010, 2011, 2014 Free Software Foundation, Inc.
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
2009-06-17 00:22:09 +01:00
|
|
|
* 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.
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
*
|
2009-06-17 00:22:09 +01:00
|
|
|
* This library is distributed in the hope that it will be useful, but
|
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
* 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
|
2009-06-17 00:22:09 +01:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
|
* 02110-1301 USA
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef PRIVATE_OPTIONS
|
|
|
|
|
#define PRIVATE_OPTIONS
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
debugging.
|
|
|
|
|
*/
|
2010-10-01 13:11:51 +02:00
|
|
|
SCM_INTERNAL scm_t_option scm_debug_opts[];
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
remove a number of debug options
* libguile/private-options.h (SCM_BREAKPOINTS_P, SCM_TRACE_P)
(SCM_REC_PROCNAMES_P, SCM_BACKTRACE_INDENT, SCM_N_FRAMES)
(SCM_BACKTRACE_MAXDEPTH, SCM_DEVAL_P): Remove these internal names.
* libguile/eval.c (scm_debug_opts): Remove the corresponding debug
options -- breakpoints, trace, procnames, indent, frames, maxdepth,
and debug.
* libguile/debug.c (scm_debug_options): Remove SCM_N_FRAMES check.
* test-suite/lib.scm (with-debugging-evaluator*):
* module/scripts/summarize-guile-TODO.scm:
* module/statprof.scm (statprof-reset):
* module/ice-9/boot-9.scm (turn-on-debugging): Remove useless
debug-enable 'debug calls.
* module/ice-9/deprecated.scm (debug-enable): As it seems that 'debug is
a particulatly common option that we just removed, add a deprecation
shim.
* doc/ref/api-options.texi (Debugger options): Update the set of debug
options.
2010-09-24 20:49:46 +02:00
|
|
|
#define SCM_BACKWARDS_P scm_debug_opts[0].val
|
|
|
|
|
#define SCM_BACKTRACE_WIDTH scm_debug_opts[1].val
|
|
|
|
|
#define SCM_BACKTRACE_DEPTH scm_debug_opts[2].val
|
|
|
|
|
#define SCM_BACKTRACE_P scm_debug_opts[3].val
|
|
|
|
|
#define SCM_STACK_LIMIT scm_debug_opts[4].val
|
|
|
|
|
#define SCM_SHOW_FILE_NAME scm_debug_opts[5].val
|
|
|
|
|
#define SCM_WARN_DEPRECATED scm_debug_opts[6].val
|
|
|
|
|
#define SCM_N_DEBUG_OPTIONS 7
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
printing
|
|
|
|
|
*/
|
2010-10-01 13:11:51 +02:00
|
|
|
SCM_INTERNAL scm_t_option scm_print_opts[];
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
2011-12-04 22:37:27 +01:00
|
|
|
#define SCM_PRINT_HIGHLIGHT_PREFIX_I 0
|
2010-10-01 09:56:15 +02:00
|
|
|
#define SCM_PRINT_HIGHLIGHT_PREFIX (SCM_PACK (scm_print_opts[0].val))
|
2011-12-04 22:37:27 +01:00
|
|
|
#define SCM_PRINT_HIGHLIGHT_SUFFIX_I 1
|
2010-10-01 09:56:15 +02:00
|
|
|
#define SCM_PRINT_HIGHLIGHT_SUFFIX (SCM_PACK (scm_print_opts[1].val))
|
|
|
|
|
#define SCM_PRINT_KEYWORD_STYLE_I 2
|
|
|
|
|
#define SCM_PRINT_KEYWORD_STYLE (SCM_PACK (scm_print_opts[2].val))
|
2011-12-04 22:37:27 +01:00
|
|
|
#define SCM_PRINT_ESCAPE_NEWLINES_P scm_print_opts[3].val
|
2014-01-14 17:38:30 -05:00
|
|
|
#define SCM_PRINT_R7RS_SYMBOLS_P scm_print_opts[4].val
|
|
|
|
|
#define SCM_N_PRINT_OPTIONS 5
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
read
|
|
|
|
|
*/
|
2010-10-01 13:11:51 +02:00
|
|
|
SCM_INTERNAL scm_t_option scm_read_opts[];
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
|
|
|
|
#define SCM_COPY_SOURCE_P scm_read_opts[0].val
|
|
|
|
|
#define SCM_RECORD_POSITIONS_P scm_read_opts[1].val
|
|
|
|
|
#define SCM_CASE_INSENSITIVE_P scm_read_opts[2].val
|
|
|
|
|
#define SCM_KEYWORD_STYLE scm_read_opts[3].val
|
2010-10-01 10:20:54 +02:00
|
|
|
#define SCM_R6RS_ESCAPES_P scm_read_opts[4].val
|
|
|
|
|
#define SCM_SQUARE_BRACKETS_P scm_read_opts[5].val
|
2011-01-21 08:57:39 +01:00
|
|
|
#define SCM_HUNGRY_EOL_ESCAPES_P scm_read_opts[6].val
|
2012-10-26 17:20:16 -04:00
|
|
|
#define SCM_CURLY_INFIX_P scm_read_opts[7].val
|
2014-01-12 07:55:22 -05:00
|
|
|
#define SCM_R7RS_SYMBOLS_P scm_read_opts[8].val
|
2010-01-12 21:02:41 -08:00
|
|
|
|
2014-01-12 07:55:22 -05:00
|
|
|
#define SCM_N_READ_OPTIONS 9
|
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
2007-01-22 15:14:40 +00:00
|
|
|
|
|
|
|
|
#endif /* PRIVATE_OPTIONS */
|