sl-feat.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Setting this to one permits strings with embedded color changing commands.
  2. * This is experimental.
  3. */
  4. #define SLSMG_HAS_EMBEDDED_ESCAPE 1
  5. /* Setting this to 1 enables automatic support for associative arrays.
  6. * If this is set to 0, an application must explicitly enable associative
  7. * array support via SLang_init_slassoc.
  8. */
  9. #define SLANG_HAS_ASSOC_ARRAYS 1
  10. #define SLANG_HAS_COMPLEX 1
  11. #define SLANG_HAS_FLOAT 1
  12. /* This is the old space-speed trade off. To reduce memory usage and code
  13. * size, set this to zero.
  14. */
  15. /* #define SLANG_OPTIMIZE_FOR_SPEED 0 */
  16. #define SLANG_OPTIMIZE_FOR_SPEED 2
  17. #define SLANG_USE_INLINE_CODE 1
  18. /* Add extra information for tracking down errors. */
  19. #define SLANG_HAS_DEBUG_CODE 1
  20. /* Experimental: Support for examining call frames */
  21. #define SLANG_HAS_DEBUGGER_SUPPORT 1
  22. /* Allow optimizations based upon the __tmp operator. */
  23. #define SLANG_USE_TMP_OPTIMIZATION 1
  24. /* Setting this to one will map 8 bit vtxxx terminals to 7 bit. Terminals
  25. * such as the vt320 can be set up to output the two-character escape sequence
  26. * encoded as 'ESC [' as single character. Setting this variable to 1 will
  27. * insert code to map such characters to the 7 bit equivalent.
  28. * This affects just input characters in the range 128-160 on non PC
  29. * systems.
  30. */
  31. #if defined(VMS) || defined(AMIGA)
  32. # define SLANG_MAP_VTXXX_8BIT 1
  33. #else
  34. # define SLANG_MAP_VTXXX_8BIT 0
  35. #endif
  36. /* Add support for color terminals that cannot do background color erases
  37. * Such terminals are poorly designed and are slowly disappearing but they
  38. * are still quite common. For example, screen is one of them!
  39. *
  40. * This is experimental. In particular, it is not known to work if
  41. * KANJI suupport is enabled.
  42. */
  43. #if !defined(IBMPC_SYSTEM)
  44. # define SLTT_HAS_NON_BCE_SUPPORT 1
  45. #else
  46. # define SLTT_HAS_NON_BCE_SUPPORT 0
  47. #endif
  48. /* If you want slang to assume that an xterm always has the background color
  49. * erase feature, then set this to 1. Otherwise, it will check the terminfo
  50. * database. This may or may not be a good idea since most good color xterms
  51. * support bce but many terminfo systems do not support it.
  52. */
  53. #define SLTT_XTERM_ALWAYS_BCE 0
  54. /* Set this to 1 to enable Kanji support. See above comment. */
  55. #define SLANG_HAS_KANJI_SUPPORT 0
  56. #define SLANG_HAS_SIGNALS 1
  57. /* Enable this if you want beginning-of-statement and end-of-statement
  58. * callbacks. This allows the creation of profilers, stack-checkers, etc.
  59. * SLANG_HAS_DEBUG_CODE must be enabled for this to work.
  60. */
  61. #define SLANG_HAS_BOSEOS SLANG_HAS_DEBUG_CODE