From mwm@mired.org  Sat Aug 21 05:32:45 2004
Return-Path: <mwm@mired.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E66E316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 05:32:45 +0000 (GMT)
Received: from delight.idiom.com (delight.idiom.com [216.240.32.16])
	by mx1.FreeBSD.org (Postfix) with ESMTP id BDB4643D31
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 21 Aug 2004 05:32:45 +0000 (GMT)
	(envelope-from mwm@mired.org)
Received: from idiom.com (idiom.com [216.240.32.1])
	by delight.idiom.com (Postfix) with ESMTP id 794DE7E8E9
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 22:32:45 -0700 (PDT)
Received: from mired.org (mwm@idiom [216.240.32.1])
	by idiom.com (8.12.11/8.12.9) with SMTP id i7L5RcYH057024
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Aug 2004 22:27:39 -0700 (PDT)
	(envelope-from mwm@mired.org)
Received: (qmail 19828 invoked by uid 100); 21 Aug 2004 05:27:38 -0000
Message-Id: <20040821052738.19827.qmail@mired.org>
Date: 21 Aug 2004 05:27:38 -0000
From: Mike Meyer <mwm@mired.org>
Reply-To: Mike Meyer <mwm@mired.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] indent mishandles code that is protected for c++ compilers
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70756
>Category:       bin
>Synopsis:       indent(1) mishandles code that is protected for c++ compilers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 05:40:23 GMT 2004
>Closed-Date:    
>Last-Modified:  Sun May 11 17:59:09 UTC 2008
>Originator:     Mike Meyer
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
Meyer Consulting
>Environment:
System: FreeBSD guru.mired.org 4.9-STABLE FreeBSD 4.9-STABLE #24: Sat Feb 7 16:15:12 CST 2004 mwm@guru.mired.org:/sharetmp/obj/usr/src/sys/GURU i386


>Description:

If you have a C file that is protected against c++ compilers by
starting with

#ifdef __cplusplus
extern "C" {
#endif

the entire file is shifted over one tab stop.

>How-To-Repeat:

Try running indent on this code.

>Fix:

Remove indent from the core system. gindent is in the ports, and
handles this case correctly.



>Release-Note:
>Audit-Trail:
>Unformatted:
