Csound Csound-dev Csound-tekno Search About

[Cs-dev] script for formatting C or C++ code

Date2009-05-09 19:41
Fromvictor
Subject[Cs-dev] script for formatting C or C++ code
AttachmentsNone  None  
Does anyone have a script handy that I can use to run through
100+ C++ to format/ident lines? I remember Istvan use to have
something like this because all my code was miraculuously idented
the next day I committed. I wonder if anyone else might have
something like that.
 
Victor

Date2009-05-09 19:43
Fromvictor
SubjectRe: [Cs-dev] script for formatting C or C++ code
AttachmentsNone  None  
I mean a 100+ C++ files
----- Original Message -----
From: victor
Sent: Saturday, May 09, 2009 7:41 PM
Subject: [Cs-dev] script for formatting C or C++ code

Does anyone have a script handy that I can use to run through
100+ C++ to format/ident lines? I remember Istvan use to have
something like this because all my code was miraculuously idented
the next day I committed. I wonder if anyone else might have
something like that.
 
Victor


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com


_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2009-05-09 19:45
FromJustin Smith
SubjectRe: [Cs-dev] script for formatting C or C++ code
On Sat, May 9, 2009 at 11:41 AM, victor  wrote:
> Does anyone have a script handy that I can use to run through
> 100+ C++ to format/ident lines? I remember Istvan use to have
> something like this because all my code was miraculuously idented
> the next day I committed. I wonder if anyone else might have
> something like that.
>
> Victor
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>

http://indent.isidore-it.eu/beautify.html should do the trick

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-05-09 19:55
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] script for formatting C or C++ code
I use emacs and indent-buffer
Also untabify-buffer and picture-mode ^c^c

Then with a macro one just lets it happen

There is Istvan's formatter somewhere -- will look

==John ff

> On Sat, May 9, 2009 at 11:41 AM, victor  wrote:
>> Does anyone have a script handy that I can use to run through
>> 100+ C++ to format/ident lines? I remember Istvan use to have
>> something like this because all my code was miraculuously idented
>> the next day I committed. I wonder if anyone else might have
>> something like that.
>>
>> Victor
>>



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-05-09 20:46
Fromvictor
SubjectRe: [Cs-dev] script for formatting C or C++ code
I do this on individual files, but my emacs lisp is non-existent,
so I would not know how to do it for a batch of  files

Victor
----- Original Message ----- 
From: 
To: "Developer discussions" 
Sent: Saturday, May 09, 2009 7:55 PM
Subject: Re: [Cs-dev] script for formatting C or C++ code


>I use emacs and indent-buffer
> Also untabify-buffer and picture-mode ^c^c
>
> Then with a macro one just lets it happen
>
> There is Istvan's formatter somewhere -- will look
>
> ==John ff
>
>> On Sat, May 9, 2009 at 11:41 AM, victor  wrote:
>>> Does anyone have a script handy that I can use to run through
>>> 100+ C++ to format/ident lines? I remember Istvan use to have
>>> something like this because all my code was miraculuously idented
>>> the next day I committed. I wonder if anyone else might have
>>> something like that.
>>>
>>> Victor
>>>
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK 
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-05-09 20:54
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] script for formatting C or C++ code
emacs *.cpp

Then a macro that does th ereformat and then saves and kills the buffer
^U 100 ^C-e



> I do this on individual files, but my emacs lisp is non-existent,
> so I would not know how to do it for a batch of  files
>
> Victor
> ----- Original Message -----
> From: 
> To: "Developer discussions" 
> Sent: Saturday, May 09, 2009 7:55 PM
> Subject: Re: [Cs-dev] script for formatting C or C++ code
>
>
>>I use emacs and indent-buffer
>> Also untabify-buffer and picture-mode ^c^c
>>
>> Then with a macro one just lets it happen
>>
>> There is Istvan's formatter somewhere -- will look
>>
>> ==John ff
>>
>>> On Sat, May 9, 2009 at 11:41 AM, victor 
>>> wrote:
>>>> Does anyone have a script handy that I can use to run through
>>>> 100+ C++ to format/ident lines? I remember Istvan use to have
>>>> something like this because all my code was miraculuously idented
>>>> the next day I committed. I wonder if anyone else might have
>>>> something like that.
>>>>
>>>> Victor
>>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>> production scanning environment may not be a perfect world - but thanks
>> to
>> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
>> i700
>> Series Scanner you'll get full speed at 300 dpi even with all image
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-05-10 15:27
FromMichael Gogins
SubjectRe: [Cs-dev] script for formatting C or C++ code
astyle is a program that does what you want. A number of programmer's
editors use it. I use it.

Regards,
Mike

On 5/9/09, jpff@cs.bath.ac.uk  wrote:
> emacs *.cpp
>
> Then a macro that does th ereformat and then saves and kills the buffer
> ^U 100 ^C-e
>
>
>
>> I do this on individual files, but my emacs lisp is non-existent,
>> so I would not know how to do it for a batch of  files
>>
>> Victor
>> ----- Original Message -----
>> From: 
>> To: "Developer discussions" 
>> Sent: Saturday, May 09, 2009 7:55 PM
>> Subject: Re: [Cs-dev] script for formatting C or C++ code
>>
>>
>>>I use emacs and indent-buffer
>>> Also untabify-buffer and picture-mode ^c^c
>>>
>>> Then with a macro one just lets it happen
>>>
>>> There is Istvan's formatter somewhere -- will look
>>>
>>> ==John ff
>>>
>>>> On Sat, May 9, 2009 at 11:41 AM, victor 
>>>> wrote:
>>>>> Does anyone have a script handy that I can use to run through
>>>>> 100+ C++ to format/ident lines? I remember Istvan use to have
>>>>> something like this because all my code was miraculuously idented
>>>>> the next day I committed. I wonder if anyone else might have
>>>>> something like that.
>>>>>
>>>>> Victor
>>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>>> production scanning environment may not be a perfect world - but thanks
>>> to
>>> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
>>> i700
>>> Series Scanner you'll get full speed at 300 dpi even with all image
>>> processing features enabled. http://p.sf.net/sfu/kodak-com
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
>> production scanning environment may not be a perfect world - but thanks to
>> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
>> i700
>> Series Scanner you'll get full speed at 300 dpi even with all image
>> processing features enabled. http://p.sf.net/sfu/kodak-com
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net