1 |
|
2005-03-08 Yoshinori Okuji <okuji@enbug.org> |
2 |
|
|
3 |
|
Automatic loading of commands is supported. |
4 |
|
|
5 |
|
* normal/main.c (read_command_list): New function. |
6 |
|
(grub_normal_execute): Call read_command_list. |
7 |
|
|
8 |
|
* normal/command.c (grub_register_command): Return zero or CMD. |
9 |
|
Allocate CMD->NAME from the heap. |
10 |
|
Initialize CMD->MODULE_NAME to zero. |
11 |
|
Find the same name as well. If the same command is found and it is |
12 |
|
a dummy command, overwrite members. If it is not a dummy command, |
13 |
|
return zero. |
14 |
|
(grub_unregister_command): Free Q->NAME and Q->MODULE_NAME. |
15 |
|
(grub_command_find): If a dummy command is found, load a module |
16 |
|
and retry to find a command only once. |
17 |
|
|
18 |
|
* normal/cmdline.c (grub_tab_complete): Call grub_command_find to |
19 |
|
make sure that each command is loaded. |
20 |
|
|
21 |
|
* include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New |
22 |
|
macro. |
23 |
|
(struct grub_command): Remove const from the member `name'. |
24 |
|
Add a new member `module_name'. |
25 |
|
(grub_register_command): Return grub_command_t. |
26 |
|
|
27 |
|
* commands/help.c (grub_cmd_help): Call grub_command_find to make |
28 |
|
sure that each command is loaded. |
29 |
|
|
30 |
|
* genmk.rb (PModule::rule): Specify a module name without the |
31 |
|
suffix ".mod" to gencmdlist.sh. |
32 |
|
|
33 |
2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
2005-03-02 Yoshinori K. Okuji <okuji@enbug.org> |
34 |
|
|
35 |
* gencmdlist.sh: New file. |
* gencmdlist.sh: New file. |