httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Kasichainula <man...@io.com>
Subject Re: binary backwards compatability.
Date Thu, 30 Mar 2000 01:51:00 GMT
On Wed, Mar 29, 2000 at 07:47:13PM -0600, Me at IO wrote:
> On Wed, Mar 29, 2000 at 05:40:56PM -0800, Dean Gaudet wrote:
> > making a copy of a request_rec sounds cary to me, i wouldn't want to
> > encourage modules to do that.  any examples of this yet?
> 
> I sure can't think of a reason to do so, but why else is
> sizeof(request_rec) important?

Oh, yeah, the structure field reordering problem. AFAIK, an ANSI C
compiler is allowed to rearrange fields in a structure on a whim. This
is why adding fields to the end of request_rec is dangerous, right?

If so, then I don't see how adding padding space to request_rec solves
this problem anyway.


Mime
View raw message