Re: nxstyle weird indentations

2020-05-18 Thread Nathan Hartman
On Mon, May 18, 2020 at 9:20 PM Gregory Nutt wrote: > > > ... Either way, the left edge of the comment will not line up > > with the "define" or "undef." > > This is the perfect illustration of the problem of mixing the > incompatible C and pre-processor indentation. Visually, you eye is > drawn

Re: nxstyle weird indentations

2020-05-18 Thread Gregory Nutt
... Either way, the left edge of the comment will not line up with the "define" or "undef." This is the perfect illustration of the problem of mixing the incompatible C and pre-processor indentation.  Visually, you eye is drawn to want to align the C code with the pre-processor indentation

Re: nxstyle weird indentations

2020-05-18 Thread Gregory Nutt
So, would the correct indentation for the comment be at 2 columns or at 4 columns here? Either way, the left edge of the comment will not line up with the "define" or "undef." Column 1.  Why should there be any indentation on the comments. There is no C nesting at all. It is nearly impossi

Re: nxstyle weird indentations

2020-05-18 Thread Nathan Hartman
On Mon, May 18, 2020 at 8:08 PM Gregory Nutt wrote: > > > Actually, I just ran into another nxstyle-related conundrum and I > > don't see anything about this in the coding standard. > > > > Regarding indentations, the coding standard says that everything is > > indented by units of 2, so that all

Re: nxstyle weird indentations

2020-05-18 Thread Gregory Nutt
Actually, I just ran into another nxstyle-related conundrum and I don't see anything about this in the coding standard. Regarding indentations, the coding standard says that everything is indented by units of 2, so that all C code begins at column 4n + 2. But preprocessor statements begin with

nxstyle weird indentations

2020-05-18 Thread Nathan Hartman
Actually, I just ran into another nxstyle-related conundrum and I don't see anything about this in the coding standard. Regarding indentations, the coding standard says that everything is indented by units of 2, so that all C code begins at column 4n + 2. But preprocessor statements begin with a '