Article View: gnu.utils.bug
Article #830indent-1.6 left-justifies `#' of preprocessor directives
From: Jim Meyering
Date: Sat, 12 Sep 1992 05:18
Date: Sat, 12 Sep 1992 05:18
23 lines
1191 bytes
1191 bytes
Hi, I just noticed that indent-1.6 left-justifies the `#' of preprocessor directives. Most of the time this is what one wants, but for portability of #pragma directives with pre-ansi compilers it is inappropriate. For example, in most of the GNU utilities that use alloca, there is some code that looks like this: #ifdef _AIX #pragma alloca #else /* not _AIX */ ... #endif in which the #pragma is deliberately indented to hide it from pre-ANSI compilers. Running indent-1.6 (even with --leave-preprocessor-space) removes the space preceding #pragma. Jim Meyering | Member of the League for Programming Freedom meyering@cs.utexas.edu | Contact me or league@prep.ai.mit.edu for more info.
Technical Details
Message-ID:
<9209121518.AA10245@ai.cs.utexas.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.utexas.edu!meyeringShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cs.utexas.edu!meyering From: meyering@cs.utexas.edu (Jim Meyering) Subject: indent-1.6 left-justifies `#' of preprocessor directives Message-ID: <9209121518.AA10245@ai.cs.utexas.edu> Sender: gnulists@ai.mit.edu Organization: U of TX at Austin CS Dept Distribution: gnu Date: Sat, 12 Sep 1992 05:18:55 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 24