| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | indent |
Hi Paul
I'm having trouble getting Indent (from Indentx.zip dated 10-6-93,
in your Indent area) to line up subsequent lines in function
headers. The -di:n parameter doesn't work when n=0. Could you run
your OS/2 version over the following to see if it turns out
different? It's already been through this Indent once.
/* INDENT OFF */
/* this is how I'd like it */
int t( char *title,
Comms * cms,
Solenoids * S )
{
return 1;
}
/* INDENT ON */
/* INDENT: -di:1 */
/* indents the subsequent lines by 1 */
int t( char *title,
Comms * cms,
Solenoids * S )
{
return 1;
}
/* note that a C++ class function is not affected, Indent seems to see
the :: as a label terminator, so doesn't treat the whole thing as
a function. I would like to be able to indent the parent class
lines, though. */
OnLine::OnLine( TProgram * t,
char *title,
Comms * cms,
Solenoids * S )
:SpEventHandlerBase( t, title, S ),
TWindowInit( &OnLine::initFrame )
{
C = cms;
}
/* INDENT: -di:2 */
/* indents the subsequent lines by 2 (just to show it works) */
int t( char *title,
Comms * cms,
Solenoids * S )
{
return 1;
}
/* INDENT: -di:0 */
/* indents the subsequent lines by 4, not zero!! */
int t( char *title,
Comms * cms,
Solenoids * S )
{
return 1;
}
Contents of INDENT.PRO (I keep the comments in a duplicate file so I
know what the hell it all means. There's an idea for a new version -
comments!
-bad ;blank line (bl) after dec block
-bap ;bl after proc body
-nbbb ;no bl before block comment
-nbc ;no nl after comma in declaration
-nbr ;lineup style of braces (= bl in doc)
-c:33 ;code comment column
-cci:2 ;indent case code
-cd:33 ;declaration comment column
-ncdb ;block comment delimiter style (/**/)
-nce ;place else on line after }
-ci:4 ;line continuation indent
-cli:2 ;indent case labels from switch statement
-cp:33 ;#else and #endif comment column
-d:0 ;solo comment indent from preceding code
-di:1 ;indent indentifier from declaring keyword
-nei ;if after else indented
-nfc1 ;disable formatting comments starting in col 1
-i:2 ;one indent level
-ip:0 ;indent parameter declarations (?)
-l:79 ;max line length
-lp ;line up code inside ()
-npcs ;no space between procedure name and (
-prs ;space after ( and before )
-npsl ;don't split procedure type and name
-nsc ;disable * at left col of multiline comments
-nsob ;don't swallow surplus blank lines
-ntabu ;don't use tabs for now, just to keep things simple
-tabs:4 ;tab width
Is there a version that does C++ yet?
Cheers
--- PPoint 1.88
* Origin: Silicon Heaven (3:711/934.16)SEEN-BY: 711/934 712/610 @PATH: 711/934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.