httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+apa...@sunstarsys.com>
Subject Re: code style question
Date Tue, 19 Feb 2002 03:04:47 GMT
davidw@dedasys.com (David N. Welton) writes:

> What is up with all the reworking of the code style?
> 
> -       if (c->values) {
> +
> +       if (c->values)
>             c->values->nelts = 0;
> -       }
> -       else {
> +       else
>             c->values = ap_make_array(r->pool, 4, sizeof(char *));
> -       }
> 
> This is not the Apache style...

??? Here's gnu indent on "if(foo)bar;" using the flags from 

  http://httpd.apache.org/dev/styleguide.html

  % echo "if(foo)bar;" | indent -st -i4 -npsl -di0 -br -nce -d0 -cli0 \
  -npcs -nfc1
  if (foo)
      bar;

-- 
Joe Schaefer

Mime
View raw message