* kern/parser.c: Indented.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-03-18 00:19:30 +01:00
parent ed0e3d30cd
commit f84afb2775
2 changed files with 74 additions and 70 deletions

View File

@ -1,3 +1,7 @@
2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
* kern/parser.c: Indented.
2010-03-17 Vladimir Serbinenko <phcoder@gmail.com> 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
* term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken). * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).

View File

@ -26,8 +26,7 @@
/* All the possible state transitions on the command line. If a /* All the possible state transitions on the command line. If a
transition can not be found, it is assumed that there is no transition can not be found, it is assumed that there is no
transition and keep_value is assumed to be 1. */ transition and keep_value is assumed to be 1. */
static struct grub_parser_state_transition state_transitions[] = static struct grub_parser_state_transition state_transitions[] = {
{
{GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_QUOTE, '\'', 0}, {GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_QUOTE, '\'', 0},
{GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_DQUOTE, '\"', 0}, {GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_DQUOTE, '\"', 0},
{GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_VAR, '$', 0}, {GRUB_PARSER_STATE_TEXT, GRUB_PARSER_STATE_VAR, '$', 0},
@ -149,7 +148,8 @@ grub_parser_split_cmdline (const char *cmdline, grub_reader_getline_t getline,
{ {
if (getline) if (getline)
getline (&rd, 1); getline (&rd, 1);
else break; else
break;
} }
if (!rd) if (!rd)
@ -190,7 +190,8 @@ grub_parser_split_cmdline (const char *cmdline, grub_reader_getline_t getline,
} }
state = newstate; state = newstate;
} }
} while (state != GRUB_PARSER_STATE_TEXT && !check_varstate (state)); }
while (state != GRUB_PARSER_STATE_TEXT && !check_varstate (state));
/* A special case for when the last character was part of a /* A special case for when the last character was part of a
variable. */ variable. */
@ -229,8 +230,7 @@ grub_parser_split_cmdline (const char *cmdline, grub_reader_getline_t getline,
return 0; return 0;
} }
struct grub_handler_class grub_parser_class = struct grub_handler_class grub_parser_class = {
{
.name = "parser" .name = "parser"
}; };