bin/70756: [PATCH] indent mishandles code that is protected for c++
compilers
Mike Meyer
mwm at mired.org
Fri Aug 20 22:40:24 PDT 2004
>Number: 70756
>Category: bin
>Synopsis: [PATCH] indent 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:
>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 at 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:
More information about the freebsd-bugs
mailing list