grub/grub-core/kern
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
..
efi Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
emu * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly 2013-01-13 22:45:16 +01:00
generic Remove non-functional EFI grub_get_rtc. Put a better fatal message 2012-06-11 20:44:38 +02:00
i386 Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
ia64 Use ITC on IA64 rather than broken routine based on daytime. 2012-06-09 10:52:39 +02:00
ieee1275 Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
mips Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
powerpc * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions. 2012-06-18 21:09:57 +02:00
sparc64 Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
x86_64 Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
command.c Remove prio_list 2012-02-12 03:52:17 +01:00
corecmd.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
device.c * grub-core/kern/device.c (grub_device_open): Remove dead code. 2012-06-19 11:20:34 +02:00
disk.c * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K 2013-01-10 08:09:26 +01:00
dl.c * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub 2012-03-19 11:10:11 +01:00
elf.c Another round of string clarification and adding TRANSLATORS comments. 2012-02-26 17:28:05 +01:00
env.c * include/grub/env.h (grub_env_find): Remove prototype. 2012-02-26 23:53:21 +01:00
err.c * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ... 2012-02-05 10:24:53 +01:00
file.c Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
fs.c Remove several trivially-unnecessary uses of nested functions. 2012-12-31 17:31:38 +00:00
list.c Remove prio_list. 2012-02-26 22:49:24 +01:00
main.c * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak. 2012-06-22 11:51:48 +02:00
misc.c Fix failing printf test. 2013-01-02 12:48:31 +00:00
mm.c * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions. 2012-06-23 00:39:10 +02:00
parser.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
partition.c * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited 2012-02-08 20:19:44 +01:00
rescue_parser.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
rescue_reader.c Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
term.c Fix tab and wide character handling in editor and menu. 2012-03-27 17:07:26 +02:00
time.c automake commit without merge history 2010-05-06 11:34:04 +05:30
vga_init.c Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00