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