From 79cd77365b72e4fc4131b1b2f87b10875536495f Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 5 Apr 2013 11:13:37 +0200 Subject: [PATCH 265/482] * util/grub-mkfont.c: Prefer enum to #define. --- ChangeLog | 4 ++++ util/grub-mkfont.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f90fab4..41370a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2013-04-05 Vladimir Serbinenko + * util/grub-mkfont.c: Prefer enum to #define. + +2013-04-05 Vladimir Serbinenko + * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size. 2013-04-05 Vladimir Serbinenko diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c index 83fb2d2..0343fd2 100644 --- a/util/grub-mkfont.c +++ b/util/grub-mkfont.c @@ -73,10 +73,13 @@ enum file_formats WIDTH_SPEC }; -#define GRUB_FONT_FLAG_BOLD 1 -#define GRUB_FONT_FLAG_NOBITMAP 2 -#define GRUB_FONT_FLAG_NOHINTING 4 -#define GRUB_FONT_FLAG_FORCEHINT 8 +enum + { + GRUB_FONT_FLAG_BOLD = 1, + GRUB_FONT_FLAG_NOBITMAP = 2, + GRUB_FONT_FLAG_NOHINTING = 4, + GRUB_FONT_FLAG_FORCEHINT = 8 + }; struct grub_font_info { -- 1.8.2.1