diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-14 06:19:13 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-08-14 06:19:13 +0000 |
commit | 3039b959c7de1e35fe4ec27ae02f1c8fe8d4d4ac (patch) | |
tree | 09c6b5a4f13282e07afe153445fcfaa0d10651f4 /bin/pdksh/ksh_limval.h | |
parent | 596c2317eee31ab9606c6b88085644407d4d2f0f (diff) |
Import pdksh 5.2.7.
Diffstat (limited to 'bin/pdksh/ksh_limval.h')
-rw-r--r-- | bin/pdksh/ksh_limval.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/pdksh/ksh_limval.h b/bin/pdksh/ksh_limval.h new file mode 100644 index 00000000000..828c0f82577 --- /dev/null +++ b/bin/pdksh/ksh_limval.h @@ -0,0 +1,24 @@ +/* $OpenBSD: ksh_limval.h,v 1.1 1996/08/14 06:19:11 downsj Exp $ */ + +/* 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 |