read: Support R7RS |...| symbol notation.
[bpt/guile.git] / libguile / private-options.h
CommitLineData
22fc179a
HWN
1/*
2 * private-options.h - private declarations for option handling
3 *
4 * We put this in a private header, since layout of data structures
5 * is an implementation detail that we want to hide.
6 *
dc59631d 7 * Copyright (C) 2007, 2009, 2010, 2011, 2014 Free Software Foundation, Inc.
22fc179a
HWN
8 *
9 * This library is free software; you can redistribute it and/or
53befeb7
NJ
10 * modify it under the terms of the GNU Lesser General Public License
11 * as published by the Free Software Foundation; either version 3 of
12 * the License, or (at your option) any later version.
22fc179a 13 *
53befeb7
NJ
14 * This library is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
22fc179a
HWN
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
53befeb7
NJ
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * 02110-1301 USA
22fc179a
HWN
23 */
24
25#ifndef PRIVATE_OPTIONS
26#define PRIVATE_OPTIONS
27
22fc179a
HWN
28/*
29 debugging.
30 */
ab9c9100 31SCM_INTERNAL scm_t_option scm_debug_opts[];
22fc179a 32
3932bdb3
AW
33#define SCM_BACKWARDS_P scm_debug_opts[0].val
34#define SCM_BACKTRACE_WIDTH scm_debug_opts[1].val
35#define SCM_BACKTRACE_DEPTH scm_debug_opts[2].val
36#define SCM_BACKTRACE_P scm_debug_opts[3].val
37#define SCM_STACK_LIMIT scm_debug_opts[4].val
38#define SCM_SHOW_FILE_NAME scm_debug_opts[5].val
39#define SCM_WARN_DEPRECATED scm_debug_opts[6].val
40#define SCM_N_DEBUG_OPTIONS 7
22fc179a
HWN
41
42
43/*
44 printing
45*/
ab9c9100 46SCM_INTERNAL scm_t_option scm_print_opts[];
22fc179a 47
8500b186 48#define SCM_PRINT_HIGHLIGHT_PREFIX_I 0
42723047 49#define SCM_PRINT_HIGHLIGHT_PREFIX (SCM_PACK (scm_print_opts[0].val))
8500b186 50#define SCM_PRINT_HIGHLIGHT_SUFFIX_I 1
42723047
AW
51#define SCM_PRINT_HIGHLIGHT_SUFFIX (SCM_PACK (scm_print_opts[1].val))
52#define SCM_PRINT_KEYWORD_STYLE_I 2
53#define SCM_PRINT_KEYWORD_STYLE (SCM_PACK (scm_print_opts[2].val))
8500b186
AW
54#define SCM_PRINT_ESCAPE_NEWLINES_P scm_print_opts[3].val
55#define SCM_N_PRINT_OPTIONS 4
22fc179a
HWN
56
57
58/*
59 read
60 */
ab9c9100 61SCM_INTERNAL scm_t_option scm_read_opts[];
22fc179a
HWN
62
63#define SCM_COPY_SOURCE_P scm_read_opts[0].val
64#define SCM_RECORD_POSITIONS_P scm_read_opts[1].val
65#define SCM_CASE_INSENSITIVE_P scm_read_opts[2].val
66#define SCM_KEYWORD_STYLE scm_read_opts[3].val
24259edb
AW
67#define SCM_R6RS_ESCAPES_P scm_read_opts[4].val
68#define SCM_SQUARE_BRACKETS_P scm_read_opts[5].val
684d664e 69#define SCM_HUNGRY_EOL_ESCAPES_P scm_read_opts[6].val
bf9eb54a 70#define SCM_CURLY_INFIX_P scm_read_opts[7].val
dc59631d 71#define SCM_R7RS_SYMBOLS_P scm_read_opts[8].val
dea901d6 72
dc59631d 73#define SCM_N_READ_OPTIONS 9
22fc179a
HWN
74
75#endif /* PRIVATE_OPTIONS */