Sync usage with man page.
[netbsd-mini2440.git] / bin / ksh / ksh_limval.h
blob15f1ce9b0ccf8361961030c92dd496b8cad2bd4c
1 /* $NetBSD$ */
3 /* Wrapper around the values.h/limits.h includes/ifdefs */
4 /* $NetBSD: ksh_limval.h,v 1.1.1.1 1996/09/21 23:35:14 jtc Exp $ */
6 #ifdef HAVE_VALUES_H
7 # include <values.h>
8 #endif /* HAVE_VALUES_H */
9 /* limits.h is included in sh.h */
11 #ifndef DMAXEXP
12 # define DMAXEXP 128 /* should be big enough */
13 #endif
15 #ifndef BITSPERBYTE
16 # ifdef CHAR_BIT
17 # define BITSPERBYTE CHAR_BIT
18 # else
19 # define BITSPERBYTE 8 /* probably true.. */
20 # endif
21 #endif
23 #ifndef BITS
24 # define BITS(t) (BITSPERBYTE * sizeof(t))
25 #endif