Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert fcode-utils to Linux kernel indentation #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

reinauer
Copy link
Member

Signed-off-by Stefan Reinauer stefan.reinauer@coreboot.org

Signed-off-by Stefan Reinauer <stefan.reinauer@coreboot.org>
Drop separate Makefiles and license files.

Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
it helps get rid of unneeded casting

Signed-of-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
We have version control.

Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
@@ -372,20 +369,25 @@ bool add_fcodes_from_list(char *vf_file_name)
bool found_spf = FALSE;
int indx;
for (indx = 0; indx < spcl_func_count; indx++) {
if ( strcmp( vs_fc_name, spcl_func_list[indx].name) == 0 ) {
if (strcmp
(vs_fc_name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this (parens on the next line) really Linux style? And even if, is this something to emulate?

#if 0 /* Fooey on C's petty limitations! */
/* I'd like to be able to do this: */
/* Special Functions */
#if 0 /* Fooey on C's petty limitations! */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe start the comment on the next line so that the indenter knows what to do about it?

@@ -75,9 +75,9 @@ char *lookup_token(u16 number)
*
**************************************************************************** */

void link_token( token_t *curr_token)
void link_token(token_t * curr_token)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the indenter mixed up multiplication and pointer type here

Copy link
Member

@pgeorgi pgeorgi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general thrust is reasonable, but there are some questionable decisions made that need resolution, otherwise we'll flip-flop between various inconsistent styles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants