-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: master
Are you sure you want to change the base?
Conversation
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>
detok/addfcodes.c
Outdated
@@ -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, |
There was a problem hiding this comment.
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! */ |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this 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.
Signed-off-by Stefan Reinauer stefan.reinauer@coreboot.org