Re: Code Indenting



On 2002.01.13 01:54 Ali Akcaagac wrote:
> 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.

If we wanted to compress the code, we could remove all spaces and 
indentation as well (with exception for strings) and fit entires files in 
single lines (except for preprocessing directives).

:-)

-pawel



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