logo       

Re: Indenting the source: msg#00039

lang.nasm.devel

Subject: Re: Indenting the source

Ed Beroset wrote:

I think you may misunderstand the difference. The -ci8 is just the *continuation* indent, meaning a single long line of code is wrapped and indented by 8. The -i4 means that the normal indentation is still 4, as we both have indicated we prefer. Most of the code seems to be in that style already.

Also, by preferring -lp instead of -nlp, you actually leave less room for comments, not more. The example statements above illustrate both of these points. The -lp version has the function arguments lined up vertically, and the -nlp -ci8 just indents the second line by 8 spaces instead as many as it takes to line up the parameters.


Ah yes. I really want the arguments to line up, even though it makes less room for comments. Otherwise it looks like a hanging statement (like a braceless if.)

What I got confused by was that your example had a space between the function name and the parenthesis. That space is a very bad thing in my opinion.

-hpa


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise