* util/misc.c: Move grub_reboot() and grub_halt() ...
* util/grub-emu.c: ... here. Make main_env static.
* include/grub/util/misc.h: Remove main_env.
2009-07-01 Pavel Roskin <proski@gnu.org>
+ * util/misc.c: Move grub_reboot() and grub_halt() ...
+ * util/grub-emu.c: ... here. Make main_env static.
+ * include/grub/util/misc.h: Remove main_env.
+
* kern/mm.c: Use correct format to print size_t.
* include/grub/elf.h: Define Elf_Sword and Elf_Xword.
extern char *progname;
extern int verbosity;
-extern jmp_buf main_env;
void grub_util_warn (const char *fmt, ...);
void grub_util_info (const char *fmt, ...);
#include <grub_emu_init.h>
/* Used for going back to the main function. */
-jmp_buf main_env;
+static jmp_buf main_env;
/* Store the prefix specified by an argument. */
static char *prefix = 0;
return GRUB_ERR_BAD_MODULE;
}
+void
+grub_reboot (void)
+{
+ longjmp (main_env, 1);
+}
+
+void
+grub_halt (
+#ifdef GRUB_MACHINE_PCBIOS
+ int no_apm __attribute__ ((unused))
+#endif
+ )
+{
+ grub_reboot ();
+}
+
void
grub_machine_init (void)
{
}
#endif /* __MINGW32__ */
-
-void
-grub_reboot (void)
-{
- longjmp (main_env, 1);
-}
-
-void
-grub_halt (
-#ifdef GRUB_MACHINE_PCBIOS
- int no_apm __attribute__ ((unused))
-#endif
- )
-{
- grub_reboot ();
-}