httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <>
Subject Re: [PATCH] PR#344: 64-bit cleanup
Date Sat, 12 Jul 1997 07:47:59 GMT
On Sat, 12 Jul 1997, Dean Gaudet wrote:

> You can agree with this all you want... but the fact remains that cmd_info
> is used both as an integer and a pointer.  And XtOffsetOf is widely used. 
> I suppose we could go:
> int foo = XtOffsetOf(blah,blah); 
> and just use &foo in the table, but just imagine how much fun it is to
> maintain this crap.
> Or is everyone agreeing to my statement that we could have both
> cmd_info_ptr and cmd_info_int ?  What are you agreeing with?

Maybe I've missed something, but isn't this what unions are for?

Though I'd rather see the code remain unchanged, at least as far as
modules are involved. The problem, as I understand it, is that the
current code wouldn't work right on platforms where int is larger than
a pointer, since cmd_info is used to store both.

Do any such systems exist? If not, why should we bother? I mean, we
don't support every OS that *does* exist, why should we support OSes
that don't? The time spent on this discussion could probably have been
used to port Apache to the BeOS or something... ;)

Alexei Kosut <>      The Apache HTTP Server

View raw message