2004-12-10 19:12:32 +01:00
|
|
|
/** $MirBSD: src/bin/ksh/ksh_limval.h,v 2.1 2004/12/10 18:09:41 tg Exp $ */
|
2004-09-21 13:57:17 +02:00
|
|
|
/* $OpenBSD: ksh_limval.h,v 1.1.1.1 1996/08/14 06:19:11 downsj Exp $ */
|
2003-03-22 18:35:03 +01:00
|
|
|
|
2004-10-28 13:53:44 +02:00
|
|
|
#ifndef KSH_LIMVAL_H
|
|
|
|
#define KSH_LIMVAL_H
|
|
|
|
|
2003-03-22 18:35:03 +01:00
|
|
|
/* Wrapper around the values.h/limits.h includes/ifdefs */
|
|
|
|
|
|
|
|
#ifdef HAVE_VALUES_H
|
|
|
|
# include <values.h>
|
|
|
|
#endif /* HAVE_VALUES_H */
|
|
|
|
/* limits.h is included in sh.h */
|
|
|
|
|
|
|
|
#ifndef DMAXEXP
|
|
|
|
# define DMAXEXP 128 /* should be big enough */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef BITSPERBYTE
|
|
|
|
# ifdef CHAR_BIT
|
|
|
|
# define BITSPERBYTE CHAR_BIT
|
|
|
|
# else
|
|
|
|
# define BITSPERBYTE 8 /* probably true.. */
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef BITS
|
|
|
|
# define BITS(t) (BITSPERBYTE * sizeof(t))
|
|
|
|
#endif
|
2004-10-28 13:53:44 +02:00
|
|
|
|
|
|
|
#endif /* ndef KSH_LIMVAL_H */
|