grub/grub-core
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
..
boot Init video early on yeeloong to avoid being rebooted by watchdog. 2012-06-26 03:36:14 +02:00
bus Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
commands Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
disk Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
efiemu Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
font Remove dor on i and j when combining with above diacritics. 2012-06-11 00:20:55 +02:00
fs * grub-core/fs/ntfs.c: Ue more appropriate types. 2013-01-11 07:41:05 +01:00
gdb * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler. 2012-05-29 13:52:26 +02:00
gettext * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when 2012-04-04 14:41:55 +02:00
gfxmenu * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal 2012-12-10 16:14:12 +01:00
gnulib Backport gnulib fixes for C11. Fixes Savannah bug #37738. 2012-12-28 06:43:35 +00:00
hello * grub-core/commands/gptsync.c: Fix typographic quoting. 2012-03-03 13:05:08 +01:00
hook * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic 2011-11-11 21:03:49 +01:00
io Import gcrypt public-key cryptography and implement signature checking. 2013-01-11 21:32:42 +01:00
kern Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
lib Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
loader Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
mmap Remove nested functions from memory map iterators. 2013-01-15 12:02:35 +00:00
net * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment. 2012-11-28 14:14:20 +01:00
normal Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
partmap * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert 2012-09-19 02:44:54 +01:00
parttool * grub-core/net/http.c: Add TRANSLATORS comments. 2012-03-05 16:42:26 +01:00
script Remove nested functions from script reading and parsing. 2013-01-15 12:03:25 +00:00
term * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as 2012-12-10 16:07:33 +01:00
tests * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on 2013-01-02 16:42:48 +00:00
video Remove nested functions from PCI iterators. 2013-01-13 01:10:41 +00:00
gdb_grub.in * conf/Makefile.common (platform_SCRIPTS): New variable. 2012-02-18 20:25:11 +01:00
genemuinit.sh automake commit without merge history 2010-05-06 11:34:04 +05:30
genemuinitheader.sh automake commit without merge history 2010-05-06 11:34:04 +05:30
genmod.sh.in * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031 2012-06-05 17:20:39 +02:00
genmoddep.awk Add new all_video module. 2012-02-26 18:09:07 +01:00
gensyminfo.sh.in * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e', 2011-05-18 12:53:07 +01:00
gensymlist.sh Increase warning level. 2012-02-10 16:48:48 +01:00
gentrigtables.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
gmodule.pl.in Add facility to debug GRUB with gdb under qemu. 2011-11-13 22:59:46 +01:00
Makefile.am * grub-core/Makefile.am (moddep.lst): Use $(AWK) instead of awk 2012-10-12 15:04:02 +02:00
Makefile.core.def Fix compilation with older compilers. 2013-01-13 21:06:25 +01:00
modinfo.sh.in Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms 2011-05-18 01:38:01 +02:00