/contrib/tcsh/config_f.h

https://bitbucket.org/freebsd/freebsd-head/ · C Header · 213 lines · 60 code · 27 blank · 126 comment · 14 complexity · f1d58c264d7c2bd6c56325f84d038f3d MD5 · raw file

  1. /* $Header: /p/tcsh/cvsroot/tcsh/config_f.h,v 3.47 2011/02/05 20:34:55 christos Exp $ */
  2. /*
  3. * config_f.h -- configure various defines for tcsh
  4. *
  5. * This is included by config.h.
  6. *
  7. * Edit this to match your particular feelings; this is set up to the
  8. * way I like it.
  9. */
  10. /*-
  11. * Copyright (c) 1980, 1991 The Regents of the University of California.
  12. * All rights reserved.
  13. *
  14. * Redistribution and use in source and binary forms, with or without
  15. * modification, are permitted provided that the following conditions
  16. * are met:
  17. * 1. Redistributions of source code must retain the above copyright
  18. * notice, this list of conditions and the following disclaimer.
  19. * 2. Redistributions in binary form must reproduce the above copyright
  20. * notice, this list of conditions and the following disclaimer in the
  21. * documentation and/or other materials provided with the distribution.
  22. * 3. Neither the name of the University nor the names of its contributors
  23. * may be used to endorse or promote products derived from this software
  24. * without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  27. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  28. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  29. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  30. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  31. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  32. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  33. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  34. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  35. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  36. * SUCH DAMAGE.
  37. */
  38. #ifndef _h_config_f
  39. #define _h_config_f
  40. /*
  41. * SHORT_STRINGS Use at least 16 bit characters instead of 8 bit chars
  42. * This fixes up quoting problems and eases implementation
  43. * of nls...
  44. *
  45. */
  46. #define SHORT_STRINGS
  47. /*
  48. * WIDE_STRINGS Represent strings using wide characters
  49. * Allows proper function in multibyte encodings like UTF-8
  50. */
  51. #if defined (SHORT_STRINGS) && defined (NLS) && !defined (WINNT_NATIVE) && !defined(_OSD_POSIX)
  52. # define WIDE_STRINGS
  53. # if SIZEOF_WCHAR_T < 4
  54. # define UTF16_STRINGS
  55. # endif
  56. #endif
  57. /*
  58. * LOGINFIRST Source ~/.login before ~/.cshrc
  59. */
  60. #undef LOGINFIRST
  61. /*
  62. * VIDEFAULT Make the VI mode editor the default
  63. */
  64. #undef VIDEFAULT
  65. /*
  66. * KAI use "bye" command and rename "log" to "watchlog"
  67. */
  68. #undef KAI
  69. /*
  70. * TESLA drops DTR on logout. Historical note:
  71. * tesla.ee.cornell.edu was a vax11/780 with a develcon
  72. * switch that sometimes would not hang up.
  73. */
  74. #undef TESLA
  75. /*
  76. * DOTLAST put "." last in the default path, for security reasons
  77. */
  78. #define DOTLAST
  79. /*
  80. * NODOT Don't put "." in the default path, for security reasons
  81. */
  82. #undef NODOT
  83. /*
  84. * AUTOLOGOUT tries to determine if it should set autologout depending
  85. * on the name of the tty, and environment.
  86. * Does not make sense in the modern window systems!
  87. */
  88. #define AUTOLOGOUT
  89. /*
  90. * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'.
  91. * Define to get the same type of messages.
  92. */
  93. #define SUSPENDED
  94. /*
  95. * KANJI Ignore meta-next, and the ISO character set. Should
  96. * be used with SHORT_STRINGS (or WIDE_STRINGS)
  97. *
  98. */
  99. #define KANJI
  100. /*
  101. * DSPMBYTE add variable "dspmbyte" and display multi-byte string at
  102. * only output, when "dspmbyte" is set. Should be used with
  103. * KANJI
  104. */
  105. #if defined (SHORT_STRINGS) && !defined (WIDE_STRINGS)
  106. # define DSPMBYTE
  107. #endif
  108. /*
  109. * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to
  110. * variable "mbytemap".
  111. * (use for multi-byte table check)
  112. */
  113. #undef MBYTEDEBUG
  114. /*
  115. * NEWGRP Provide a newgrp builtin.
  116. */
  117. #undef NEWGRP
  118. /*
  119. * SYSMALLOC Use the system provided version of malloc and friends.
  120. * This can be much slower and no memory statistics will be
  121. * provided.
  122. */
  123. #if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__)
  124. # define SYSMALLOC
  125. #else
  126. # undef SYSMALLOC
  127. #endif
  128. /*
  129. * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.
  130. * POSIX says to use stat, but stat(2) is less accurate
  131. * than access(2) for determining file access.
  132. */
  133. #undef USE_ACCESS
  134. /*
  135. * REMOTEHOST Try to determine the remote host that we logged in from
  136. * using first getpeername, and then the utmp file. If
  137. * successful, set $REMOTEHOST to the name or address of the
  138. * host
  139. */
  140. #define REMOTEHOST
  141. /*
  142. * COLOR_LS_F Do you want to use builtin color ls-F ?
  143. *
  144. */
  145. #define COLOR_LS_F
  146. /*
  147. * COLORCAT Do you want to colorful message ?
  148. *
  149. */
  150. #undef COLORCAT
  151. /*
  152. * FILEC support for old style file completion
  153. */
  154. #define FILEC
  155. /*
  156. * RCSID This defines if we want rcs strings in the binary or not
  157. *
  158. */
  159. #if !defined(lint) && !defined(SABER) && !defined(__CLCC__)
  160. # ifndef __GNUC__
  161. # define RCSID(id) static char *rcsid = (id);
  162. # else
  163. # define RCSID(id) static const char rcsid[] __attribute__((__used__)) = (id);
  164. # endif /* !__GNUC__ */
  165. #else
  166. # define RCSID(id) /* Nothing */
  167. #endif /* !lint && !SABER */
  168. /* Consistency checks */
  169. #ifdef WIDE_STRINGS
  170. # ifdef WINNT_NATIVE
  171. #error "WIDE_STRINGS cannot be used together with WINNT_NATIVE"
  172. # endif
  173. # ifndef SHORT_STRINGS
  174. #error "SHORT_STRINGS must be defined if WIDE_STRINGS is defined"
  175. # endif
  176. # ifndef NLS
  177. #error "NLS must be defined if WIDE_STRINGS is defined"
  178. # endif
  179. # ifdef DSPMBYTE
  180. #error "DSPMBYTE must not be defined if WIDE_STRINGS is defined"
  181. # endif
  182. #endif
  183. #if !defined (SHORT_STRINGS) && defined (DSPMBYTE)
  184. #error "SHORT_STRINGS must be defined if DSPMBYTE is defined"
  185. #endif
  186. #endif /* _h_config_f */