View Single Post
Re: a small utility to format your messy C/C++ code automatically.
Old
  (#4)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: a small utility to format your messy C/C++ code automatically. - 03-01-2005

I've made a MSVC-compilable version that doesn't need you to install all the GNU stuff on your PC. You can get it from the filebase here (source, native Win32 binaries and documentation included) :

http://filebase.bots-united.com/inde...on=file&id=245

Please note that indent is not a GNU tool, it was originally a BSD tool, but the GNU folks decided to make it their own but kept the original "indent" name and sticked their GPL on it, leading to confusion. Here I've restored the original BSD indenting options by default.

Also note that there are much better indenting tools available on the market, for different languages (even if most of which are commercial). Look for "pretty printer" on Google to find some. PolyStyle is a good example. I don't use any btw, I format my code while I type but it's very handy to clean out other people's code when you want to look at it.

*edit*
moving this to the proper forum, no objections ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."

Last edited by Pierre-Marie Baty; 03-01-2005 at 22:38..
  
Reply With Quote