1 1.2 tls /* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */ 2 1.2 tls 3 1.1 jtc /* Wrapper around the values.h/limits.h includes/ifdefs */ 4 1.2 tls /* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */ 5 1.1 jtc 6 1.1 jtc #ifdef HAVE_VALUES_H 7 1.1 jtc # include <values.h> 8 1.1 jtc #endif /* HAVE_VALUES_H */ 9 1.1 jtc /* limits.h is included in sh.h */ 10 1.1 jtc 11 1.1 jtc #ifndef DMAXEXP 12 1.1 jtc # define DMAXEXP 128 /* should be big enough */ 13 1.1 jtc #endif 14 1.1 jtc 15 1.1 jtc #ifndef BITSPERBYTE 16 1.1 jtc # ifdef CHAR_BIT 17 1.1 jtc # define BITSPERBYTE CHAR_BIT 18 1.1 jtc # else 19 1.1 jtc # define BITSPERBYTE 8 /* probably true.. */ 20 1.1 jtc # endif 21 1.1 jtc #endif 22 1.1 jtc 23 1.1 jtc #ifndef BITS 24 1.1 jtc # define BITS(t) (BITSPERBYTE * sizeof(t)) 25 1.1 jtc #endif 26