grub/grub-core/commands
Colin Watson 09fd6d8293 Remove nested functions from script reading and parsing.
* grub-core/kern/parser.c (grub_parser_split_cmdline): Add
getline_data argument, passed to getline.
* grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
getline_data argument, passed to grub_parser_split_cmdline.
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
lexerstate->getline_data to lexerstate->getline.
(grub_script_lexer_init): Add getline_data argument, saved in
lexerstate->getline_data.
* grub-core/script/main.c (grub_normal_parse_line): Add getline_data
argument, passed to grub_script_parse.
* grub-core/script/script.c (grub_script_parse): Add getline_data
argument, passed to grub_script_lexer_init.
* include/grub/parser.h (grub_parser_split_cmdline): Update
prototype.  Update all callers to pass appropriate getline data.
(struct grub_parser.parse_line): Likewise.
(grub_rescue_parse_line): Likewise.
* include/grub/reader.h (grub_reader_getline_t): Add void *
argument.
* include/grub/script_sh.h (struct grub_lexer_param): Add
getline_data member.
(grub_script_parse): Update prototype.  Update all callers to pass
appropriate getline data.
(grub_script_lexer_init): Likewise.
(grub_normal_parse_line): Likewise.

* grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
data argument.
* grub-core/kern/parser.c (grub_parser_execute: getline): Make
static instead of nested.  Rename to ...
(grub_parser_execute_getline): ... this.
* grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
data argument.
* grub-core/normal/main.c (read_config_file: getline): Make static
instead of nested.  Rename to ...
(read_config_file_getline): ... this.
(grub_normal_read_line): Add unused data argument.
* grub-core/script/execute.c (grub_script_execute_sourcecode:
getline): Make static instead of nested.  Rename to ...
(grub_script_execute_sourcecode_getline): ... this.
* util/grub-script-check.c (main: get_config_line): Make static
instead of nested.
2013-01-15 12:03:25 +00:00
..
arc sgi support 2011-05-13 16:36:05 +02:00
efi Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
i386 Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
ieee1275 * grub-core/commands/gptsync.c: Fix typographic quoting. 2012-03-03 13:05:08 +01:00
mips/loongson * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments. 2012-03-02 15:09:10 +01:00
acpi.c Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
acpihalt.c * grub-core/commands/acpihalt.c: Add TRANSLATORS comments. 2012-03-03 12:59:28 +01:00
blocklist.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
boot.c Terminate UNDI and PXE before launching the payload to avoid problems 2012-04-11 22:32:31 +02:00
cacheinfo.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
cat.c * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check. 2012-03-11 14:36:02 +01:00
cmp.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
configfile.c * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct 2012-10-12 15:34:33 +01:00
date.c * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform 2012-03-03 13:09:14 +01:00
echo.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
extcmd.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
gptsync.c * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the 2012-05-30 13:51:50 +02:00
halt.c Add noreturn attributes and remove unreachable code. 2011-12-13 15:13:51 +01:00
hashsum.c Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
hdparm.c * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings. 2012-06-06 12:22:32 +02:00
help.c * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro. 2012-07-02 11:19:22 +02:00
hexdump.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
iorw.c Replace grub_target_addr with more appropriate types. 2012-02-27 14:13:24 +01:00
keylayouts.c Remove grub_{modname}_init and grub_{modname}_fini. They should never 2012-02-27 00:28:45 +01:00
keystatus.c * grub-core/commands/acpihalt.c: Add TRANSLATORS comments. 2012-03-03 12:59:28 +01:00
legacycfg.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
loadenv.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
ls.c * grub-core/commands/ls.c (grub_ls_list_devices): Disable 2012-06-26 03:45:46 +02:00
lsacpi.c * grub-core/commands/lsacpi.c (options): Add missing terminator. 2012-04-01 21:22:48 +02:00
lsmmap.c Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
lspci.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
memrw.c Replace grub_target_addr with more appropriate types. 2012-02-27 14:13:24 +01:00
menuentry.c * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments 2012-05-04 01:20:38 +02:00
minicmd.c * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments. 2012-03-02 15:09:10 +01:00
parttool.c Fix handling of leading spaces in scripts. 2012-03-11 14:43:18 +01:00
password.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
password_pbkdf2.c Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
probe.c * grub-core/commands/probe.c (options): Replace VAR with VARNAME and 2012-03-08 19:07:23 +01:00
read.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
reboot.c Add noreturn attributes and remove unreachable code. 2011-12-13 15:13:51 +01:00
regexp.c * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments. 2012-03-11 23:36:35 +01:00
search.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
search_file.c * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete 2012-02-03 11:46:18 +01:00
search_label.c * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete 2012-02-03 11:46:18 +01:00
search_uuid.c * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete 2012-02-03 11:46:18 +01:00
search_wrap.c * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old 2012-04-19 11:32:59 +02:00
setpci.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
sleep.c * grub-core/commands/sleep.c (do_print): Add missing grub_refresh. 2012-05-22 00:02:21 +02:00
terminal.c Improve string. Gettextize. 2012-02-12 15:25:25 +01:00
test.c Improve string. Gettextize. 2012-02-12 15:25:25 +01:00
testload.c * conf/Makefile.common (CFLAGS_GNULIB): Add 2012-02-24 12:30:32 +01:00
time.c Improve string. Gettextize. 2012-02-12 15:25:25 +01:00
true.c * grub-core/commands/acpihalt.c: Add TRANSLATORS comments. 2012-03-03 12:59:28 +01:00
usbtest.c * grub-core/commands/usbtest.c (usb_print_str): Silence spurious 2012-04-07 20:03:38 +02:00
verify.c New command list_trusted. 2013-01-13 17:49:05 +01:00
videoinfo.c * grub-core/commands/videoinfo.c (hook): Show pitch. 2012-06-05 12:03:36 +02:00
videotest.c * grub-core/commands/videoinfo.c: Add TRANSLATORS comments. 2012-03-06 15:04:33 +01:00
wildcard.c * grub-core/commands/wildcard.c (check_file): Fix bad logic. 2012-06-27 21:13:06 +02:00
xnu_uuid.c * grub-core/commands/videoinfo.c: Add TRANSLATORS comments. 2012-03-10 13:19:46 +01:00