From owner-freebsd-stable Fri Jul 5 3: 2: 0 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9318537B405 for ; Fri, 5 Jul 2002 03:01:56 -0700 (PDT) Received: from nitrogen.wanadoo.fr (ca-sqy-4-22.abo.wanadoo.fr [80.8.57.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D0A443E09 for ; Fri, 5 Jul 2002 03:01:55 -0700 (PDT) (envelope-from dak@wanadoo.fr) Received: from nitrogen.wanadoo.fr (localhost [127.0.0.1]) by nitrogen.wanadoo.fr (8.12.5/8.12.5) with ESMTP id g659xa5o000571 for ; Fri, 5 Jul 2002 11:59:36 +0200 (CEST) (envelope-from dak@nitrogen.wanadoo.fr) Received: (from dak@localhost) by nitrogen.wanadoo.fr (8.12.5/8.12.5/Submit) id g659xaeG000570 for stable@freebsd.org; Fri, 5 Jul 2002 11:59:36 +0200 (CEST) Date: Fri, 5 Jul 2002 11:59:36 +0200 From: =?unknown-8bit?Q?Aur=E9lien?= Nephtali To: stable@freebsd.org Subject: indent is strange Message-ID: <20020705095936.GA550@nitrogen> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 #include 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