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