From 132867de71fe35efdbbe08369eb22eb23e7e6434 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Fri, 5 Apr 2013 11:13:37 +0200 Subject: [PATCH] * 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 f90fab400..41370a183 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c index 83fb2d27b..0343fd293 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 {