mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
merge mainline into emu-mod
This commit is contained in:
commit
19a9fb834b
459 files changed
+26481
-7640
No files matched your search
+10
-6
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* GRUB -- GRand Unified Bootloader
|
||||
* Copyright (C) 2008 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2008,2009 Free Software Foundation, Inc.
|
||||
*
|
||||
* GRUB is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -73,6 +73,10 @@
|
||||
|
||||
#define DEFLATE_HUFF_LEN 16
|
||||
|
||||
#ifdef PNG_DEBUG
|
||||
static grub_command_t cmd;
|
||||
#endif
|
||||
|
||||
struct huff_table
|
||||
{
|
||||
int *values, *maxval, *offset;
|
||||
@@ -866,7 +870,7 @@ grub_video_reader_png (struct grub_video_bitmap **bitmap,
|
||||
|
||||
#if defined(PNG_DEBUG)
|
||||
static grub_err_t
|
||||
grub_cmd_pngtest (struct grub_arg_list *state __attribute__ ((unused)),
|
||||
grub_cmd_pngtest (grub_command_t cmd __attribute__ ((unused)),
|
||||
int argc, char **args)
|
||||
{
|
||||
struct grub_video_bitmap *bitmap = 0;
|
||||
@@ -894,16 +898,16 @@ GRUB_MOD_INIT (png)
|
||||
{
|
||||
grub_video_bitmap_reader_register (&png_reader);
|
||||
#if defined(PNG_DEBUG)
|
||||
grub_register_command ("pngtest", grub_cmd_pngtest,
|
||||
GRUB_COMMAND_FLAG_BOTH, "pngtest FILE",
|
||||
"Tests loading of PNG bitmap.", 0);
|
||||
cmd = grub_register_command ("pngtest", grub_cmd_pngtest,
|
||||
"FILE",
|
||||
"Tests loading of PNG bitmap.");
|
||||
#endif
|
||||
}
|
||||
|
||||
GRUB_MOD_FINI (png)
|
||||
{
|
||||
#if defined(PNG_DEBUG)
|
||||
grub_unregister_command ("pngtest");
|
||||
grub_unregister_command (cmd);
|
||||
#endif
|
||||
grub_video_bitmap_reader_unregister (&png_reader);
|
||||
}
|
||||
Reference in new issue
Block a user