private-options.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Copyright 2007,2009-2011,2014,2018,2020
  2. Free Software Foundation, Inc.
  3. This file is part of Guile.
  4. Guile is free software: you can redistribute it and/or modify it
  5. under the terms of the GNU Lesser General Public License as published
  6. by the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Guile is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  11. License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with Guile. If not, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef PRIVATE_OPTIONS
  16. #define PRIVATE_OPTIONS
  17. /*
  18. debugging.
  19. */
  20. SCM_INTERNAL scm_t_option scm_debug_opts[];
  21. #define SCM_BACKWARDS_P scm_debug_opts[0].val
  22. #define SCM_BACKTRACE_WIDTH scm_debug_opts[1].val
  23. #define SCM_BACKTRACE_DEPTH scm_debug_opts[2].val
  24. #define SCM_BACKTRACE_P scm_debug_opts[3].val
  25. #define SCM_STACK_LIMIT scm_debug_opts[4].val
  26. #define SCM_SHOW_FILE_NAME scm_debug_opts[5].val
  27. #define SCM_WARN_DEPRECATED scm_debug_opts[6].val
  28. #define SCM_N_DEBUG_OPTIONS 7
  29. /*
  30. printing
  31. */
  32. SCM_INTERNAL scm_t_option scm_print_opts[];
  33. #define SCM_PRINT_HIGHLIGHT_PREFIX_I 0
  34. #define SCM_PRINT_HIGHLIGHT_PREFIX (SCM_PACK (scm_print_opts[0].val))
  35. #define SCM_PRINT_HIGHLIGHT_SUFFIX_I 1
  36. #define SCM_PRINT_HIGHLIGHT_SUFFIX (SCM_PACK (scm_print_opts[1].val))
  37. #define SCM_PRINT_KEYWORD_STYLE_I 2
  38. #define SCM_PRINT_KEYWORD_STYLE (SCM_PACK (scm_print_opts[2].val))
  39. #define SCM_PRINT_ESCAPE_NEWLINES_P scm_print_opts[3].val
  40. #define SCM_PRINT_R7RS_SYMBOLS_P scm_print_opts[4].val
  41. #define SCM_N_PRINT_OPTIONS 5
  42. /*
  43. read
  44. */
  45. SCM_INTERNAL scm_t_option scm_read_opts[];
  46. #define SCM_RECORD_POSITIONS_P scm_read_opts[0].val
  47. #define SCM_CASE_INSENSITIVE_P scm_read_opts[1].val
  48. #define SCM_KEYWORD_STYLE scm_read_opts[2].val
  49. #define SCM_R6RS_ESCAPES_P scm_read_opts[3].val
  50. #define SCM_SQUARE_BRACKETS_P scm_read_opts[4].val
  51. #define SCM_HUNGRY_EOL_ESCAPES_P scm_read_opts[5].val
  52. #define SCM_CURLY_INFIX_P scm_read_opts[6].val
  53. #define SCM_R7RS_SYMBOLS_P scm_read_opts[7].val
  54. #define SCM_N_READ_OPTIONS 8
  55. #endif /* PRIVATE_OPTIONS */