Ah, ok, I didn't notice the switch. I've originally used the default Emacs settings for the indent. Now I think I now use stroustrup, because it was the closest to Miller's style that I found.
In any case, it would be handy to have an 'indent' script which automatically does the standard formatting. Has anyone written something like that?
.hc
On Sep 26, 2007, at 11:43 AM, Miller Puckette wrote:
My settings are:
tabs are 8 spaces indents are 4 spaces
but to make things easier I always expand out tabs when releasing code; this is done with a shell script using the wonderful and (I think) universally available "expand" program.
HC's tabs are hardwired to 4 spaces (old Next style, apparently still in use somewhere :) so to use HC's code I first run "expand -4" on it.
Oh yes, in the latest CVS upload there are still 8-character tab stops in one file, u_main.tk, which I forgot to include in the detabbing script. I fixed the script since.
cheers Miller
On Wed, Sep 26, 2007 at 11:26:31AM -0400, Hans-Christoph Steiner wrote:
Hey all,
Has anyone ever tried to use indent or some tool to reformat code to match Miller's code formatting? It would be good to have a standard code format, and since the one that Miller uses it difficult to configure with many editors and non-standard, it would be quite useful to have some automated tool to make sure everything is in order.
.hc
You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie
PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
Terrorism is not an enemy. It cannot be defeated. It's a tactic. It's about as sensible to say we declare war on night attacks and expect we're going to win that war. We're not going to win the war on terrorism. - retired U.S. Army general, William Odom