/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	machlimits.h,v $
 * Revision 1.1.3.3  92/03/12  17:55:15  Keith_Mortensen
 * 	"195-mortens"
 * 
 * Revision 1.1.4.2  92/03/10  13:21:52  Keith_Mortensen
 * 	Fixed unsigned limits for ANSI C.
 * 
 * Revision 1.1.3.2  91/11/20  13:44:32  Hal_Project
 * 	Moved from dec/machine/mips; pool reorg.
 * 	[91/11/18  00:07:09  Donald_Dutile]
 * 
 * Revision 4.2  91/09/19  23:12:11  devbld
 * 	Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: machlimits.h,v $ $Revision: 1.1.3.3 $ (DEC) $Date: 92/03/12 17:55:15 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/*
 * OSF/1 Release 1.0
 */
/* 
 * derived from machlimits.h	2.1	(ULTRIX/OSF)	12/3/90
 */
/*
 * Copyright (c) 1988 The Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that the above copyright notice and this paragraph are
 * duplicated in all such forms and that any documentation,
 * advertising materials, and other materials related to such
 * distribution and use acknowledge that the software was developed
 * by the University of California, Berkeley.  The name of the
 * University may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *

 */
#ifndef _MACH_MACHLIMITS_H_
#define _MACH_MACHLIMITS_H_

#define	CHAR_BIT	8		/* number of bits in a char */

#define	SCHAR_MIN	-128		/* min value for a signed char */
#define	SCHAR_MAX	0x7f		/* max value for a signed char */

#define	CHAR_MAX	0x7f		/* max value for a char */
#define	CHAR_MIN	-128		/* min value for a char */

#define	SHRT_MAX	0x7fff		/* max value for a short */
#define	SHRT_MIN	-32768		/* min value for a short */

#define	INT_MAX		0x7fffffff	/* max value for an int */
#define	INT_MIN		0x80000000	/* min value for an int */

#define	LONG_MAX	0x7fffffff	/* max value for a long */
#define	LONG_MIN	0x80000000	/* min value for a long */

#if defined(__STDC__)
#define UCHAR_MAX       255U		/* max value for an unsigned char */
#define USHRT_MAX       65535U		/* max value for an unsigned short */
#define UINT_MAX        4294967295U	/* max value for an unsigned int */
#define ULONG_MAX       4294967295U	/* max value for an unsigned long */
#else /*  defined(__STDC__)  */
#define UCHAR_MAX       255		/* max value for an unsigned char */
#define USHRT_MAX       65535		/* max value for an unsigned short */
#define UINT_MAX        4294967295	/* max value for an unsigned int */
#define ULONG_MAX       4294967295	/* max value for an unsigned long */
#endif /*  defined(__STDC__)  */

/* Must be at least two, for internationalization (NLS/KJI) */
#define MB_LEN_MAX	2		/* multibyte characters */

#endif /* _MACH_MACHLIMITS_H_ */

