Skip to content

🎨 Change Formatting 🎨 #454

@r0-zero

Description

@r0-zero

Is your feature request related to a problem? Please describe.
Change formatting of C source files

Describe the solution you'd like
I think for this project kernel C syntax would be much better. There are 3 things that could change:

Both for structs and for-if-while (anything other than functions) braces, they should start at the end of first statement. Instead of this:

typedef struct
{

This one should be used:

typedef struct {
...

As for functions braces should start after statement. But for any other loop - statement - definition, it should look like this:

while {
...
}
for ;; {
...
}

Last one is comments. All of the comments should be a multiline comment, and with a * on each of the following lines.

// Instead of comment
/* Comment */
/* This
*  Is
*  Multiline comment
*/

I can handle this formatting if that is okay.
https://www.kernel.org/doc/html/v4.10/process/coding-style.html

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions