Chris Bennett wrote:
> Should it be done like this?
> 
> int     lflag
> int    *rflag
> int     sflag
> int     from_remote
> char  **blist
> int    *blist_size
> int     blist_addrs
> char ***boof

Close, but you only use spaces there. They usually start
with tabs and then align with spaces, like:

> int      lflag
> int     *rflag
> int      sflag
> int      from_remote
> char   **blist
> int     *blist_size
> int      blist_addrs
> char  ***boof

This has the downside that if you add another level of indentation, you
either have to break the alignment or change every line. So there are a
bunch of variants.

style(9) seems to recommend just using tabs:

> Put a tab after the first word, i.e., use ‘int^Ix;’ and ‘struct^Ifoo
> *x;’.

That can get ugly and hard to read, though.

Reply via email to