home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
bcpp1611.zip
/
BCPP
/
README.1ST
< prev
next >
Wrap
Text File
|
1996-12-18
|
3KB
|
62 lines
-------------------------------------------------------------------------------
C(++) Beautifier V1.61
Written By Steven De Toni January 1995
-------------------------------------------------------------------------------
C(++) Beautifier V1.61.1
Modified By Nitin Chandra December 1996
(nitin@poboxes.com)
-------------------------------------------------------------------------------
This file briefly describes my hacks <g> to this lovely program
---------------------------------------------------------------
1. Fixed to use DOS CR/LF, but is there as an option in the config file, so
it can still be used for LF only if required.
2. Fixed to read the config from the current dir and if not found there, then
get it from the directory from where the program was started and if still
absent, then use defaults.
3. Added my style of indenting.
main()
{
if ( xyz )
{
}
}
Both these can be configured from the config file, for example, you might
want to indent the function block braces as well.
4. I don't recall where I got this program from, nor do I have all the docs
for it, but the hacked <g> source is included as well as the original txt
dox for someone who might want to make this program even better. For
example the program falters on contructs like:
if ( xyx )
for ( abc )
{
}
it does not correctly indent these cases, but otherwise works great.
5. If you are using Watcom C, there is a slight gotcha here, you *must*
use the /ei option which tell the compiler to treat enums as ints. Whew
that was a pesky one since the config structure has a mix of an enum type
and int and the enum types are cast to (int &) in the code to set option
on startup which could cause all sorts of problems.
6. The default options in the program are the same as the ones in the config
file (bcpp.cfg) now which is what I use for my code ( of course :))
7. I have included an OS/2 .Cmd file to compile the different platform
versions of bcpp and the binaries are included in seperate directories
as well. Although there is a NT binary included, you are on your own
there as I have used only the OS/2 and DOS versions, but the source
should compile for most compilers in case there is a problem.
8. If anyone out there improves on this, please send me a copy as well :)
9. Why this? well....I wanted to make it to ten points :)
10. I can be reached at nitin@poboxes.com in case of any comments, and for
those of you who really want to know, I'm located in New Delhi, India.