Re: [Audacity-devel] How about resurrecting scripts/reindent?
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@au...> - 2006-01-15 09:42:39
|
On Jan 14, 2006, at 9:19 PM, Leland Lucius wrote: > I know my style is way bogus to most people. I did try to follow the > existing style when I first started, but I found that it was a bit > tedious since there were already a few styles in place. So, I made it > worse by adding my own. :-( I would prefer if our C++ coding style was reasonably standardized. For maximum cross-platform and cross-editor compatibility, please always use spaces and not tabs. The standard for Audacity is 3 spaces of indentation, which is unusual but was chosen as a compromise between some people who normally use 2 and others who normally use 4. Everyone seems to be able to live with 3. Every Audacity C++ file has a magic sequence at the bottom that tells vi and emacs to use 3 spaces for indentation and no tabs. It'd be nice if people set other editors to do the same when working on Audacity. More important than any particular standard is that each file should be consistent. I don't care if one particular file has four spaces, or if one file uses mostly K&R style brackets and the other puts the left and right brackets on the same column, but I don't like them mixed and matched in the same file, especially not in the same function! The problem with auto-reindenting everything is that it tends to mess up things like macros and indented comments. :( So I'd prefer to do it on a case-by-case basis... - Dominic > I don't know...just a thought. > > Leland > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Audacity-devel mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel > |