> It says on the coding guidelines page "Lines must be a maximum of 78
> characters long". Does that include the space characters used for
> indentation too?
Yes.  78 characters total.  There are many reasons that this is a good
policy (and is the policy for python, *bsd, linux, etc)

> Also, what is the policy of splitting DPRINTF statements over multiple lines?
>
> e.g.,
>        DPRINTF(XYZ, "THIS IS A DEBUG STATEMENT...", arg1, arg2, arg3, arg4);
>
> to be split up into 2 lines because of the 78 character limit:
>
>        DPRINTF(XYZ, "THIS IS A DEBUG STATEMENT...",
>        arg1, arg2, arg3, arg4);
> or
>        DPRINTF(XYZ, "THIS IS A DEBUG STATEMENT...",
>            arg1, arg2, arg3, arg4);
>
> or anything else.

We don't specify how to indent subsequent lines.  There are really
three options I think.  Indent 4 more than the previous indent level.
Indent 8 more.  Or align with the next scope.  Emacs does the last by
default.  The first seems obvious, but the second is probably the
nicest when indenting for things like an 'if' statement.

  Nate
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to