Re: Code Indenting



On 2002.01.12 19:54 Ali Akcaagac wrote:
> hi,
> 
> i was playing with the indent tool from ftp.gnu.org which i have
> described earlier in 2 previous mails (more replies). i went into
> the balsa/src dir and did:
> 
> indent -kr *.c
> indent -kr *.h
> 
> and hell. thats a big difference. a lot of redundant clutter got
> removed from the code and totally cleaned up. if you are interested,
> then give it a try. it's really worth the experiment and really worth
> to have it permanently.
> 
> -rw-r--r--    1 root     root     116676 Jan 13 01:45 sendmsg-window.c
> -rw-r--r--    1 root     root     120267 Jan 13 01:45
> sendmsg-window.c~
> 
> for example. now count this on the whole code.

 From reading HACKING and some discussion a while ago, I believe that

indent -kr -psl -nut

is preferred. I put these options in my ~/.indent.pro, and use indent 
on all my changes. It doesn't compress the files, but it should make 
them more easily edited by a wider group.

Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]