config_f.h (131962) | config_f.h (145479) |
---|---|
1/* $Header: /src/pub/tcsh/config_f.h,v 3.26 2004/03/21 16:48:14 christos Exp $ */ | 1/* $Header: /src/pub/tcsh/config_f.h,v 3.32 2005/03/04 13:46:04 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 */ --- 24 unchanged lines hidden (view full) --- 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/* | 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 */ --- 24 unchanged lines hidden (view full) --- 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/* |
42 * SHORT_STRINGS Use 16 bit characters instead of 8 bit chars | 42 * SHORT_STRINGS Use at least 16 bit characters instead of 8 bit chars |
43 * This fixes up quoting problems and eases implementation 44 * of nls... 45 * 46 */ 47#define SHORT_STRINGS 48 49/* | 43 * This fixes up quoting problems and eases implementation 44 * of nls... 45 * 46 */ 47#define SHORT_STRINGS 48 49/* |
50 * WIDE_STRINGS Represent strings using wide characters 51 * Allows proper function in multibyte encodings like UTF-8 52 */ 53#if defined (SHORT_STRINGS) && SIZEOF_WCHAR_T >= 4 && !defined (WINNT_NATIVE) && !defined(_OSD_POSIX) 54# define WIDE_STRINGS 55#endif 56 57/* |
|
50 * NLS: Use Native Language System 51 * Routines like setlocale() are needed 52 * if you don't have <locale.h>, you don't want 53 * to define this. 54 */ 55#define NLS 56 57/* --- 47 unchanged lines hidden (view full) --- 105/* 106 * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 107 * Define to get the same type of messages. 108 */ 109#define SUSPENDED 110 111/* 112 * KANJI Ignore meta-next, and the ISO character set. Should | 58 * NLS: Use Native Language System 59 * Routines like setlocale() are needed 60 * if you don't have <locale.h>, you don't want 61 * to define this. 62 */ 63#define NLS 64 65/* --- 47 unchanged lines hidden (view full) --- 113/* 114 * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. 115 * Define to get the same type of messages. 116 */ 117#define SUSPENDED 118 119/* 120 * KANJI Ignore meta-next, and the ISO character set. Should |
113 * be used with SHORT_STRINGS | 121 * be used with SHORT_STRINGS (or WIDE_STRINGS) |
114 * 115 */ 116#define KANJI 117 118/* 119 * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 120 * only output, when "dspmbyte" is set. Should be used with 121 * KANJI 122 */ | 122 * 123 */ 124#define KANJI 125 126/* 127 * DSPMBYTE add variable "dspmbyte" and display multi-byte string at 128 * only output, when "dspmbyte" is set. Should be used with 129 * KANJI 130 */ |
123#define DSPMBYTE | 131#if defined (SHORT_STRINGS) && !defined (WIDE_STRINGS) 132# define DSPMBYTE 133#endif |
124 125/* 126 * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 127 * variable "mbytemap". 128 * (use for multi-byte table check) 129 */ 130#undef MBYTEDEBUG 131 --- 54 unchanged lines hidden (view full) --- 186# define RCSID(id) static char *rcsid = (id); 187# else 188# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 189# endif /* !__GNUC__ */ 190#else 191# define RCSID(id) /* Nothing */ 192#endif /* !lint && !SABER */ 193 | 134 135/* 136 * MBYTEDEBUG when "dspmbyte" is changed, set multi-byte checktable to 137 * variable "mbytemap". 138 * (use for multi-byte table check) 139 */ 140#undef MBYTEDEBUG 141 --- 54 unchanged lines hidden (view full) --- 196# define RCSID(id) static char *rcsid = (id); 197# else 198# define RCSID(id) static char *rcsid(const char *a) { return rcsid(a = id); } 199# endif /* !__GNUC__ */ 200#else 201# define RCSID(id) /* Nothing */ 202#endif /* !lint && !SABER */ 203 |
204/* Consistency checks */ 205#ifdef WIDE_STRINGS 206# if SIZEOF_WCHAR_T < 4 207 #error "wchar_t must be at least 4 bytes for WIDE_STRINGS" 208# endif 209 210# ifdef WINNT_NATIVE 211 #error "WIDE_STRINGS cannot be used together with WINNT_NATIVE" 212# endif 213 214# ifndef SHORT_STRINGS 215 #error "SHORT_STRINGS must be defined if WIDE_STRINGS is defined" 216# endif 217 218# ifndef NLS 219 #error "NLS must be defined if WIDE_STRINGS is defined" 220# endif 221 222# ifdef DSPMBYTE 223 #error "DSPMBYTE must not be defined if WIDE_STRINGS is defined" 224# endif 225#endif 226 227#if !defined (SHORT_STRINGS) && defined (DSPMBYTE) 228 #error "SHORT_STRINGS must be defined if DSPMBYTE is defined" 229#endif 230 |
|
194#endif /* _h_config_f */ | 231#endif /* _h_config_f */ |