Re: indent, was re: Tutorial and guidelines: Coding standards

From: Randy Howard (randyhoward_at_FOOverizonBAR.net)
Date: 06/10/04


Date: Thu, 10 Jun 2004 03:05:23 GMT

In article <Pine.LNX.4.58-035.0406090943160.1765@unix46.andrew.cmu.edu>,
ajo@nospam.andrew.cmu.edu says...
> GNU 'indent' is in the aggravating position of being way, way
> better than anything I could code myself, but way, way worse than
> anything I'd actually want to use.

Well, perhaps my usage is different, but I mainly use it on
"other people's source" when it is indented in a way I can't
stand. I indent my own code, as I like it, out of habit and
almost never have a need to run it on my own source. As such,
I use it mainly to enhance readability of source, example some
open source project using the weenie GNU coding standards :-)

OTOH, gnu indent is also open source, so if it's usable for you
you could always take it and modify/extend it.

But, what could be easier than:

indent foo.c

??? I mean, come on, you don't want to use something that is
literally that straightforward once you have configured you
profile the way you like it? It's amazingly flexible, you
do the work once to tell it how you want it to handle a host
of semantic constructs, and then never have to touch it again
unless you change your own personal preferences. I fail to
see a problem there.

-- 
Randy Howard    (2reply remove FOOBAR)
"The most amazing achievement of the computer software industry is its
continuing cancellation of the steady and staggering gains made by the
computer hardware industry..."   - Henry Petroski
      


Relevant Pages

  • Options for GNU Indent
    ... I spent several hours last Tuesday and today trying to configure GNU ... indent to match my coding style, but I still can't get two items to ... void myFunction1{ ... Can anyone send the correct GNU indent options to achieve these goals, ...
    (comp.lang.c)
  • Re: Options for GNU Indent
    ... I spent several hours last Tuesday and today trying to configure GNU ... indent to match my coding style, but I still can't get two items to ... Recent versions of GNU indent support the undocumented option -brf ... void myFunction1{ ...
    (comp.lang.c)
  • Re: Thou shalt have no other gods before the ANSI C standard
    ... Fortunately, gnu ... > indent has made life far easier in fixing the abominations foisted ... so most of the coders were immediately ...
    (sci.crypt)
  • indent, was re: Tutorial and guidelines: Coding standards
    ... I'm not very familiar with Emacs, ... command-line-accessible indenting facilities are superior to ... GNU 'indent''s? ... Or is 'indent' dead, or is RMS just trying to encourage ...
    (comp.programming)
  • indent, was re: Tutorial and guidelines: Coding standards
    ... I'm not very familiar with Emacs, ... command-line-accessible indenting facilities are superior to ... GNU 'indent''s? ... Or is 'indent' dead, or is RMS just trying to encourage ...
    (comp.os.linux.development.apps)