TIP: Click on subject to list as thread! ANSI
echo: locuser
to: Roy McNeill
from: Paul Edwards
date: 1996-07-28 17:46:52
subject: indent

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)

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™.