RM> I'm having trouble getting Indent (from Indentx.zip dated 10-6-93,
Grab INDENTPE.ZIP instead, much better.
RM> in your Indent area) to line up subsequent lines in function
RM> headers. The -di:n parameter doesn't work when n=0. Could you run
RM> your OS/2 version over the following to see if it turns out
RM> different? It's already been through this Indent once.
It turns out different, I'll let you compare the differences...
/* 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;
}
@EOT:
---
* Origin: X (3:711/934.9)
|