From: Andreas F. <fe...@ep...> - 2000-12-07 08:12:59
|
Hi, > > I introduced quite some tab diffs, because the original source code > > did use almost no indentation, making it very hard to read. I use only > > tabs (no spaces except accidentally) which should expand to whatever the > > editor has been set to. (8 spaces if vi default is used). I am a bit Personally, I started to never use tabs. My Editor (and Emacs should also be able to handle it that way ;-) ) can be set to use spaces instead of tabs, and then also inserts spaces for automatic indentation. The advantage of using spaces only is that it looks the same in every editor, without having to puzzle with tab settings and the like. [...] > I played around with GNU indent a little tonight, and perhaps the best thing > to do is run "indent -kr -i8" on ieee12844.c with your code changes. It's not I think using "indent " would be a convenient way to achieve a somewhat consistent code layout. However, you should be aware of some problems which might occur: - Developers should *always* run indent with the same parameters before checkin; otherwise, you can never make useful diffs between versions. - The best way would be to install indent as a filter for checkin; I dont know if this is possible at the sourceforge CVS server, and some people dont like this either because the code may look different when you check it out again ;-) Just IMHO .... Regards Andreas -- Andreas Fester Phone : +(49) 721-6291-0 __ __ EIGNER + PARTNER AG Fax : +(49) 721-6291-88 /_ /_/ Ruschgraben 133 EMail : mailto:fe...@ep... /_ / D-76139 Karlsruhe URL : http://www.ep-ag.com EIGNER + PARTNER |