httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@worldgate.com>
Subject Re: cvs commit: apache-1.3/src/main util.c
Date Thu, 06 Aug 1998 22:03:16 GMT
We already use memmove and define to bcopy where necessary.  The thing
is that you can't depend on it working right for overlapping copies.


On Thu, 6 Aug 1998, Martin Kraemer wrote:

> On Wed, Aug 05, 1998 at 08:59:29PM -0400, Rodent of Unusual Size wrote:
> > martin@hyperreal.org wrote:
> > > 
> > >   The recent changes which avoid whitespace compression in config lines
> > >   failed to remove leading whitespace, so it became impossible to indent
> > >   the block constructs. Fixed.
> > 
> > Eh?  That's what this sectiondoes, just above what you added:
> > 
> >         src = buf;
> >         while (ap_isspace(*src))
> >             ++src;
> 
> Nope. Yes, it determines the run length. But then, it doesn't do anything
> with it. My added code uses the current (difference between buf and) src to
> memmove() the data to the beginning of buf (because buf is returned,
> not src). I did NOT use memmove() because it is not portable enough --
> or do we have an ap_memmove()?
> 
>     Martin
> -- 
> | S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
> | ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
> | N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
> ~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
> 


Mime
View raw message