]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
merge with mainline
authorBVK Chaitanya <bvk.groups@gmail.com>
Sat, 12 Jun 2010 11:02:06 +0000 (16:32 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Sat, 12 Jun 2010 11:02:06 +0000 (16:32 +0530)
1  2 
conf/common.rmk
include/grub/script_sh.h
script/function.c
util/grub-script-check.c

diff --cc conf/common.rmk
index 3674cae07c98492793eecac8eb593c01bbbe5b7f,3b9d1e5ce4d632ae4ae83bdf6bf7833401125909..c437156b7ef194ff22cc9be9d5f0040ae941417d
@@@ -638,18 -619,14 +619,14 @@@ keystatus_mod_LDFLAGS = $(COMMON_LDFLAG
  
  # For normal.mod.
  normal_mod_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c \
-       normal/auth.c normal/autofs.c normal/handler.c \
+       normal/auth.c normal/autofs.c  \
        normal/color.c normal/completion.c normal/datetime.c normal/menu.c \
        normal/menu_entry.c normal/menu_text.c \
-       normal/misc.c normal/crypto.c normal/term.c normal/context.c
- normal_mod_CFLAGS = $(COMMON_CFLAGS)
- normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
- # For sh.mod.
- sh_mod_SOURCES = script/main.c script/script.c script/argv.c script/execute.c \
+       normal/misc.c normal/crypto.c normal/term.c normal/context.c \
 -      script/main.c script/script.c script/execute.c \
++      script/main.c script/script.c script/execute.c script/argv.c \
        script/function.c script/lexer.c grub_script.tab.c grub_script.yy.c
sh_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS) -Wno-error
sh_mod_LDFLAGS = $(COMMON_LDFLAGS)
normal_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS) -Wno-error
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)
  
  ifneq (, $(FONT_SOURCE))
  font/font.c_DEPENDENCIES = ascii.h
index 9199a539ef09a4566c6ceba10969a6769c1a9cbc,7d6129243043fb22a4c91509f3354fab009cbeca..9bfc7e4bbc5ac9b75b58b360a23ebed1de30d14f
@@@ -340,9 -344,8 +345,9 @@@ grub_script_function_t grub_script_func
                                                    struct grub_script *cmd);
  void grub_script_function_remove (const char *name);
  grub_script_function_t grub_script_function_find (char *functionname);
- int grub_script_function_iterate (int (*iterate) (grub_script_function_t));
 -int grub_script_function_call (grub_script_function_t func,
 -                             int argc, char **args);
++
 +grub_err_t grub_script_function_call (grub_script_function_t func,
 +                                    int argc, char **args);
  
  char **
  grub_script_execute_arglist_to_argv (struct grub_script_arglist *arglist, int *count);
index 82c753bcd83b3d3db591586cd2926cddd4378534,810c652338deddd19fae613749da675a8e8ff14e..47b236652af8541a5542bb554c72e1b728f40d77
@@@ -103,15 -103,12 +103,3 @@@ grub_script_function_find (char *functi
  
    return func;
  }
--
--int
- grub_script_function_iterate (int (*iterate) (grub_script_function_t))
 -grub_script_function_call (grub_script_function_t func,
 -                         int argc __attribute__((unused)),
 -                         char **args __attribute__((unused)))
--{
-   grub_script_function_t func;
-   for (func = grub_script_function_list; func; func = func->next)
-     if (iterate (func))
-       return 1;
-   return 0;
 -  /* XXX: Arguments are not supported yet.  */
 -  return grub_script_execute (func->func);
--}
Simple merge