httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: indent, line splitting?
Date Tue, 16 Sep 1997 00:11:11 GMT
Oh yeah, and one more gotcha to watch out for:  It doesn't understand
mismatched {} caused by #ifdef grunginess.  i.e. there used to be code
in http_main.c:

#ifdef MPE
    if (blah blah blah) {
	if (bluh bluh bluh) {
#else
    if (feh foh fee) {
#endif
	whatever;
    }
#ifdef MPE
    }
#endif

It got really confused by that.

Dean

On Mon, 15 Sep 1997, Dean Gaudet wrote:

> I'm also finding that indent sometimes (but not always) totally mutates
> switch statements.  It indents the case labels sometimes, and then lines
> the code up with that.  But not all the time ... and we do specify -cli0
> which should mean no indenting of the case statement.
> 
> Also on alloc.c it totally screws up because it does not understand va_arg
> that well -- watch out for this.  I had to change:
> 
>     va_arg(ap, char *)
> 
> to:
>     
>     va_arg(ap, char_star)
> 
> and then reverse the change after running indent.
> 
> I just mention these things to dispel the notion that we can do this
> periodically or on any automated basis.  indent is just not perfect
> technology.
> 
> Dean
> 
> On Mon, 15 Sep 1997, Dean Gaudet wrote:
> 
> > Shouldn't our indent settings be doing line splitting?  They don't seem to
> > be for me.
> > 
> > % indent --version
> > GNU indent 1.9.1
> > 
> > Dean
> > 
> > 
> 
> 


Mime
View raw message