Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jul 2002 11:59:36 +0200
From:      =?unknown-8bit?Q?Aur=E9lien?= Nephtali <aurelien.nephtali@wanadoo.fr>
To:        stable@freebsd.org
Subject:   indent is strange
Message-ID:  <20020705095936.GA550@nitrogen>

next in thread | raw e-mail | index | archive | help
Hi,

Not really a -STABLE question but it's a freebsd after all and there's no
utils@freebsd.org :p

According to the man of indent, the switch -l is intented to reduce the length
of a line, its default is 78. But if this works or if there are some conditions
needed for it to work, the following (stupid) C code is just indented of 8
but the long line's still here:

#include <stdio.h>
#include <string.h>

int
main(void)
{
 if ((1 == 1) && (2 == 2) && (3 == 3) && (4 == 4) && (5 == 5) && (6 == 6) && (7 == 7) && (8 == 8))
 {
  printf("hello\n");
 }
 return (0);
}

Did I make a mistake ? is there a special condition for if() statements ?

-- Aurélien

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020705095936.GA550>