httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: svn commit: r294902 - /httpd/httpd/trunk/acinclude.m4
Date Tue, 04 Oct 2005 19:35:29 GMT
colm@apache.org wrote:
> 
> Author: colm
> Date: Tue Oct  4 12:25:51 2005
> New Revision: 294902
> 
> URL: http://svn.apache.org/viewcvs?rev=294902&view=rev
> Log:
> Invert the "yes" and "no" values for $ap_void_ptr_lt_long, which
> as Rudiger points out; are exactly wrong.
> 
> -if test "$ap_void_ptr_lt_long" = "no"; then
> +if test "$ap_void_ptr_lt_long" = "yes"; then
>      AC_MSG_ERROR([Size of "void *" is less than size of "long"])
> 

Don't shoot me :)

The problem is whether or not a pointer will fit in a long.
Is the site of void* is smaller than a long, that's
OK (if it fits in an int and sizeof(int)<sizeof(long)
that is perfectly OK).

Bill suggested figuring out what the smallest int that would
safely hold a void* and making that a typedef. And pointers
are always unsigned, iirc.

-- 
=======================================================================
 Jim Jagielski   [|]   jim@jaguNET.com   [|]   http://www.jaguNET.com/
           "If you can dodge a wrench, you can dodge a ball."

Mime
View raw message