httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Marr <gr...@alum.wpi.edu>
Subject Re: cvs commit: httpd-2.0/server/mpm/threaded threaded.c
Date Wed, 02 May 2001 22:58:45 GMT
At 04:39 PM 05/02/2001, Bill Stoddard wrote:
>My main concern... is this patch portable? Is INT_MAX defined 
>everywhere consistently?

K&R Second Edition (1988): Appendix B:

The header limits.h defines constants for the sizes of integral 
types.  The values below are acceptable minimum magnitudes: larger 
values may be used.

INT_MAX  +32767
LONG_MAX +2147483647
SHRT_MAX  +32767

On Windows, INT_MAX is:
#define INT_MAX       2147483647    /* maximum (signed) int value */

-- 
Greg Marr
gregm@alum.wpi.edu
"We thought you were dead."
"I was, but I'm better now." - Sheridan, "The Summoning"


Mime
View raw message