|
|
f96e0b |
From 78daaf6e506ac36dca5d6ff92618e83723d8ed23 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Sun, 28 Apr 2013 13:27:51 +0200
|
|
|
f96e0b |
Subject: [PATCH 371/482] * grub-core/term/morse.c: Macroify dih and
|
|
|
f96e0b |
dah.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 4 +++
|
|
|
f96e0b |
grub-core/term/morse.c | 75 ++++++++++++++++++++++++++------------------------
|
|
|
f96e0b |
2 files changed, 43 insertions(+), 36 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 3144dd0..287770e 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,3 +1,7 @@
|
|
|
f96e0b |
+2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+ * grub-core/term/morse.c: Macroify dih and dah.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
* include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
|
|
|
f96e0b |
diff --git a/grub-core/term/morse.c b/grub-core/term/morse.c
|
|
|
f96e0b |
index 0fdc3b4..ba84dfe 100644
|
|
|
f96e0b |
--- a/grub-core/term/morse.c
|
|
|
f96e0b |
+++ b/grub-core/term/morse.c
|
|
|
f96e0b |
@@ -27,45 +27,48 @@
|
|
|
f96e0b |
GRUB_MOD_LICENSE ("GPLv3+");
|
|
|
f96e0b |
|
|
|
f96e0b |
#define BASE_TIME 250
|
|
|
f96e0b |
+#define DIH 1
|
|
|
f96e0b |
+#define DAH 3
|
|
|
f96e0b |
+#define END 0
|
|
|
f96e0b |
|
|
|
f96e0b |
static const char codes[0x80][6] =
|
|
|
f96e0b |
{
|
|
|
f96e0b |
- ['0'] = { 3, 3, 3, 3, 3, 0 },
|
|
|
f96e0b |
- ['1'] = { 1, 3, 3, 3, 3, 0 },
|
|
|
f96e0b |
- ['2'] = { 1, 1, 3, 3, 3, 0 },
|
|
|
f96e0b |
- ['3'] = { 1, 1, 1, 3, 3, 0 },
|
|
|
f96e0b |
- ['4'] = { 1, 1, 1, 1, 3, 0 },
|
|
|
f96e0b |
- ['5'] = { 1, 1, 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['6'] = { 3, 1, 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['7'] = { 3, 3, 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['8'] = { 3, 3, 3, 1, 1, 0 },
|
|
|
f96e0b |
- ['9'] = { 3, 3, 3, 3, 1, 0 },
|
|
|
f96e0b |
- ['a'] = { 1, 3, 0 },
|
|
|
f96e0b |
- ['b'] = { 3, 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['c'] = { 3, 1, 3, 1, 0 },
|
|
|
f96e0b |
- ['d'] = { 3, 1, 1, 0 },
|
|
|
f96e0b |
- ['e'] = { 1, 0 },
|
|
|
f96e0b |
- ['f'] = { 1, 1, 3, 1, 0 },
|
|
|
f96e0b |
- ['g'] = { 3, 3, 1, 0 },
|
|
|
f96e0b |
- ['h'] = { 1, 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['i'] = { 1, 1, 0 },
|
|
|
f96e0b |
- ['j'] = { 1, 3, 3, 3, 0 },
|
|
|
f96e0b |
- ['k'] = { 3, 1, 3, 0 },
|
|
|
f96e0b |
- ['l'] = { 1, 3, 1, 1, 0 },
|
|
|
f96e0b |
- ['m'] = { 3, 3, 0 },
|
|
|
f96e0b |
- ['n'] = { 3, 1, 0 },
|
|
|
f96e0b |
- ['o'] = { 3, 3, 3, 0 },
|
|
|
f96e0b |
- ['p'] = { 1, 3, 3, 1, 0 },
|
|
|
f96e0b |
- ['q'] = { 3, 3, 1, 3, 0 },
|
|
|
f96e0b |
- ['r'] = { 1, 3, 1, 0 },
|
|
|
f96e0b |
- ['s'] = { 1, 1, 1, 0 },
|
|
|
f96e0b |
- ['t'] = { 3, 0 },
|
|
|
f96e0b |
- ['u'] = { 1, 1, 3, 0 },
|
|
|
f96e0b |
- ['v'] = { 1, 1, 1, 3, 0 },
|
|
|
f96e0b |
- ['w'] = { 1, 3, 3, 0 },
|
|
|
f96e0b |
- ['x'] = { 3, 1, 1, 3, 0 },
|
|
|
f96e0b |
- ['y'] = { 3, 1, 3, 3, 0 },
|
|
|
f96e0b |
- ['z'] = { 3, 3, 1, 1, 0 }
|
|
|
f96e0b |
+ ['0'] = { DAH, DAH, DAH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['1'] = { DIH, DAH, DAH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['2'] = { DIH, DIH, DAH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['3'] = { DIH, DIH, DIH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['4'] = { DIH, DIH, DIH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['5'] = { DIH, DIH, DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['6'] = { DAH, DIH, DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['7'] = { DAH, DAH, DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['8'] = { DAH, DAH, DAH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['9'] = { DAH, DAH, DAH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['a'] = { DIH, DAH, END },
|
|
|
f96e0b |
+ ['b'] = { DAH, DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['c'] = { DAH, DIH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['d'] = { DAH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['e'] = { DIH, END },
|
|
|
f96e0b |
+ ['f'] = { DIH, DIH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['g'] = { DAH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['h'] = { DIH, DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['i'] = { DIH, DIH, END },
|
|
|
f96e0b |
+ ['j'] = { DIH, DAH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['k'] = { DAH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['l'] = { DIH, DAH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['m'] = { DAH, DAH, END },
|
|
|
f96e0b |
+ ['n'] = { DAH, DIH, END },
|
|
|
f96e0b |
+ ['o'] = { DAH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['p'] = { DIH, DAH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['q'] = { DAH, DAH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['r'] = { DIH, DAH, DIH, END },
|
|
|
f96e0b |
+ ['s'] = { DIH, DIH, DIH, END },
|
|
|
f96e0b |
+ ['t'] = { DAH, END },
|
|
|
f96e0b |
+ ['u'] = { DIH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['v'] = { DIH, DIH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['w'] = { DIH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['x'] = { DAH, DIH, DIH, DAH, END },
|
|
|
f96e0b |
+ ['y'] = { DAH, DIH, DAH, DAH, END },
|
|
|
f96e0b |
+ ['z'] = { DAH, DAH, DIH, DIH, END }
|
|
|
f96e0b |
};
|
|
|
f96e0b |
|
|
|
f96e0b |
static void
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|