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