Andrey Borzenkov
593e430cd6
* grub-core/script/execute.c (grub_script_execute_sourcecode): Split
...
off new function grub_script_execute_new_scope. Change callers to use
either of them as appropriate.
* grub-core/commands/eval.c: New command eval.
* docs/grub.texi (Commands): Document it.
2013-06-07 18:36:42 +02:00
Josh Triplett
e40b459617
* grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
...
handling to copy the killed characters to the kill buffer as
UCS4 stored as grub_uint32_t rather than as 8-bit characters
stored as char. Eliminates UCS4 truncation and corruption
observed when killing characters with Ctrl-u and yanking them
back with Ctrl-y.
2013-05-31 00:59:02 +02:00
Vladimir 'phcoder' Serbinenko
cdce14fad4
Progressively skip menu elements on small terminals rather
...
than crashing.
2013-05-14 08:57:18 +02:00
Vladimir 'phcoder' Serbinenko
c8d6cc3cf0
* grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
...
to avoid losing last column.
2013-05-14 08:54:18 +02:00
Vladimir 'phcoder' Serbinenko
d22840ec12
Mark few forgotten strings for translation.
2013-05-07 11:41:47 +02:00
Bean
fa2923436b
* grub-core/commands/testspeed.c: New command testspeed.
2013-05-05 18:16:48 +02:00
Vladimir 'phcoder' Serbinenko
310d42144b
Factor-out human-size printing.
2013-05-05 11:31:53 +02:00
Vladimir 'phcoder' Serbinenko
85002bf34a
Agglomerate more mallocs to speed-up gfxterm.
2013-05-04 22:23:23 +02:00
Vladimir 'phcoder' Serbinenko
44dea3f9a9
* grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
...
line of timeout as it may contain the rest of long line.
2013-05-04 13:52:21 +02:00
Vladimir 'phcoder' Serbinenko
14af86e41b
* grub-core/normal/main.c: Fix freed memory dereference.
2013-05-04 13:50:16 +02:00
Vladimir 'phcoder' Serbinenko
03f7c8c304
Fix several memory leaks.
2013-05-04 13:47:10 +02:00
Vladimir 'phcoder' Serbinenko
c686014c1b
* grub-core/normal/menu.c (run_menu): Fix timeout reference point.
2013-05-04 13:43:07 +02:00
Vladimir 'phcoder' Serbinenko
b5a2114d76
* grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
2013-05-03 13:56:45 +02:00
Vladimir 'phcoder' Serbinenko
7cd0df84f1
New command `nativedisk'.
2013-04-28 15:31:33 +02:00
Vladimir 'phcoder' Serbinenko
a6393224c4
Make 'make check' work on emu.
2013-04-27 02:00:16 +02:00
Vladimir 'phcoder' Serbinenko
a59a9826fd
* grub-core/normal/menu_text.c (print_entry): Put an asterisk
...
in front of chosen entry to mark it even if highlighting is lost.
2013-04-24 15:07:24 +02:00
Vladimir 'phcoder' Serbinenko
47043f959f
* grub-core/normal/term.c: Few more fixes for menu entry editor
...
rendering.
Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2013-04-08 14:35:26 +02:00
Vladimir 'phcoder' Serbinenko
a321606813
* grub-core/normal/term.c: Few more fixes for menu entry editor
...
rendering.
Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2013-04-07 17:48:22 +02:00
Vladimir 'phcoder' Serbinenko
91bf46b188
Fix screen corruption in menu entry editor and simplify the code
...
flow while on it.
2013-04-03 15:19:34 +02:00
Vladimir 'phcoder' Serbinenko
daae8f9e6d
* grub-core/normal/menu.c: Wait if there were errors shown at "boot"
...
command.
2013-03-25 10:32:06 +01:00
Vladimir 'phcoder' Serbinenko
cc19857a2a
New commands cbmemc, lscoreboot, coreboot_boottime to inspect
...
coreboot tables content. Support for cbmemc.
2013-03-20 17:13:31 +01:00
Vladimir 'phcoder' Serbinenko
e744219bb6
Implement boot time analysis framework.
2013-03-19 20:25:09 +01:00
Nickolai Zeldovich
e11645f434
* grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
...
OOM check.
* grub-core/normal/term.c (read_terminal_list): Likewise.
2013-03-07 08:41:27 +01:00
Vladimir 'phcoder' Serbinenko
19e29ee1a9
* grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
...
hook pass-through parameter. All users updated and unnested.
2013-03-02 11:47:59 +01:00
Andrey Borzenkov
f1a19118e5
* grub-core/normal/menu_entry.c (update_screen): remove
...
unused variable `off' which caused scroll down arrow to be always shown.
2013-02-25 22:53:40 +01:00
Andrey Borzenkov
958bfd2067
* grub-core/normal/menu_entry.c (insert_string): fix off by one
...
access to unallocated memory.
2013-02-25 22:42:25 +01:00
Vladimir 'phcoder' Serbinenko
28d468d6f2
* grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
...
sizes and display sector size.
2013-02-25 10:45:19 +01:00
Vladimir 'phcoder' Serbinenko
af18fdb4df
* grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
...
when menu highlight color isn't set.
2013-01-27 16:12:05 +01:00
Vladimir 'phcoder' Serbinenko
ec5010a3eb
Improve spkmomdem reliability by adding a separator between bytes.
2013-01-21 20:03:15 +01:00
Vladimir 'phcoder' Serbinenko
bc1369732f
Make color variables global instead of it being per-terminal.
2013-01-21 17:53:41 +01:00
Colin Watson
fc524edf65
Remove nested functions from filesystem directory iterators.
...
* include/grub/fs.h (grub_fs_dir_hook_t): New type.
(struct grub_fs.dir): Add hook_data argument.
Update all implementations and callers.
2013-01-21 01:33:46 +00:00
Colin Watson
25239370fd
Remove nested functions from device iterators.
...
* include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
(grub_arc_iterate_devs): Add hook_data argument.
* include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
(struct grub_ata_dev.iterate): Add hook_data argument.
* include/grub/device.h (grub_device_iterate_hook_t): New type.
(grub_device_iterate): Add hook_data argument.
* include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
(struct grub_disk_dev.iterate): Add hook_data argument.
(grub_disk_dev_iterate): Likewise.
* include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
Likewise.
* include/grub/msdos_partition.h (grub_partition_msdos_iterate):
Likewise.
* include/grub/partition.h (grub_partition_iterate_hook_t): New
type.
(struct grub_partition_map.iterate): Add hook_data argument.
(grub_partition_iterate): Likewise.
* include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
(struct grub_scsi_dev.iterate): Add hook_data argument.
Update all callers.
2013-01-20 15:52:15 +00:00
Vladimir 'phcoder' Serbinenko
34f71cb866
Improve bidi handling in entry editor.
2013-01-16 13:41:16 +01:00
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
Colin Watson
5c67ea6cd9
Remove several trivially-unnecessary uses of nested functions.
...
* grub-core/commands/i386/pc/sendkey.c
(grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
instead of nested.
* grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
Rename to ...
(legacy_file_getline): ... this.
* grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
Likewise.
* grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
* grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
to ...
(probe_dummy_iter): ... this.
* grub-core/kern/i386/coreboot/mmap.c
(grub_linuxbios_table_iterate: check_signature): Likewise.
* grub-core/kern/parser.c (grub_parser_split_cmdline:
check_varstate): Likewise. Mark inline.
* grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
an additional parameter.
(find_long: fnd_long): Likewise. Pass two additional parameters.
* grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
* grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
* grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
Likewise. Rename to ...
(grub_cmos_find_port_iter): ... this.
* grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
Rename to ...
(find_rtc_iter): ... this.
* grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
function directly into the function body, since it is only called
once.
2012-12-31 17:31:38 +00:00
Vladimir 'phcoder' Serbinenko
e81db8b5fd
* grub-core/normal/autofs.c (autoload_fs_module): Save and restore
...
filter state.
2012-07-22 16:23:46 +02:00
Vladimir 'phcoder' Serbinenko
5f91f70146
* configure.ac: Bump version to 2.00.
...
* grub-core/normal/main.c (features): Add feature_200_final.
2012-06-28 02:06:36 +02:00
Vladimir 'phcoder' Serbinenko
377c98cba2
* grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
...
gzio.
2012-06-15 23:42:34 +02:00
Vladimir 'phcoder' Serbinenko
3006e9810f
* grub-core/normal/dyncmd.c (read_command_list): Don't access freed
...
space.
2012-06-13 01:04:14 +02:00
Vladimir 'phcoder' Serbinenko
45dbe3000b
* grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
...
resulted in \\ at the end of the line.
2012-06-02 14:46:22 +02:00
Vladimir 'phcoder' Serbinenko
00d41dee71
* grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
...
fix partially stale display.
2012-06-02 14:30:52 +02:00
Vladimir 'phcoder' Serbinenko
f95d1f117a
* grub-core/normal/menu_entry.c (backward_char): Use right line for
...
substraction.
2012-06-02 14:28:12 +02:00
Christer Weinigel
684aef11c5
* grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2012-05-31 14:34:12 +02:00
Vladimir 'phcoder' Serbinenko
40e80b9403
* grub-core/normal/main.c (read_config_file): Provide config_file and
...
config_directory.
* util/grub.d/41_custom.in: Use config_directoy when available.
2012-05-27 15:34:41 +02:00
Vladimir 'phcoder' Serbinenko
7026b0e278
* grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
...
ext* instead of ext2.
2012-05-23 09:10:56 +02:00
Vladimir 'phcoder' Serbinenko
c2a51adee8
* grub-core/normal/term.c (read_terminal_list): Terminate the terminal
...
name with \0.
2012-05-23 09:09:36 +02:00
Vladimir 'phcoder' Serbinenko
7086ad524f
Remove unjustified hard dependency of normal.mod on gfxterm.
...
* include/grub/term.h (grub_term_output): New member fullscreen.
* include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
* grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
(grub_gfxterm): Set .fullscreen.
* grub-core/normal/menu.c (menu_init): Use fullscreen.
* grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2012-05-21 22:17:11 +02:00
Vladimir 'phcoder' Serbinenko
b2f6847735
* grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
...
commit.
2012-05-01 15:26:36 +02:00
Vladimir 'phcoder' Serbinenko
f0a53ed2c2
* grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
2012-05-01 15:06:34 +02:00
Vladimir 'phcoder' Serbinenko
851ffadac2
* grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
...
written bytes.
(grub_get_num_of_utf8_bytes): New function.
(grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
* grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
executing it.
* include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
(grub_ucs4_to_utf8): Change return type.
2012-04-07 20:11:04 +02:00