]> git.ipfire.org Git - thirdparty/grub.git/commit
2006-04-29 Marco Gerards <marco@gnu.org>
authormarco_g <marco_g@localhost>
Sat, 29 Apr 2006 20:29:42 +0000 (20:29 +0000)
committermarco_g <marco_g@localhost>
Sat, 29 Apr 2006 20:29:42 +0000 (20:29 +0000)
commiteaef05533f1ee342f72ae74d6a84ad0168127d31
treec13bc198a84de50c279f3d823afd2642fad53725
parent7b455f4dd3766e45ec978443a46e00ab78f7bc33
2006-04-29  Marco Gerards  <marco@gnu.org>

* commands/configfile.c (grub_cmd_configfile): Execute the
configfile within its own context.

* include/grub/env.h (grub_env_context_open): New prototype.
(grub_env_context_close): Likewise.

* kern/env.c (grub_env): Removed.
(grub_env_sorted): Likewise.
(grub_env_context): New variable.
(grub_env_var_context): Likewise.
(grub_env_find): Search both the active context and the global
context.
(grub_env_context_open): New function.
(grub_env_context_close): Likewise.
(grub_env_insert): Likewise.
(grub_env_remove): Likewise.
(grub_env_export): Likewise.
(grub_env_set): Changed to use helper functions to avoid code
duplication.
(grub_env_iterate): Rewritten so both the current context and the
global context are being used.

* normal/command.c (export_command): New function.
(grub_command_init): Register the `export' function.
ChangeLog
commands/configfile.c
include/grub/env.h
kern/env.c
normal/command.c