projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coding Style cleanup: remove trailing white space
[platform/kernel/u-boot.git]
/
include
/
video_font_4x6.h
diff --git
a/include/video_font_4x6.h
b/include/video_font_4x6.h
index
d1778d5
..
0dcd2de
100644
(file)
--- a/
include/video_font_4x6.h
+++ b/
include/video_font_4x6.h
@@
-18,15
+18,15
@@
s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{
($num,$pat,$bits) = ($1,$3,$4);
s{((0x)?[0-9a-fA-F]+)(.*\[([\*\ ]{4})\])}{
($num,$pat,$bits) = ($1,$3,$4);
-
+
$bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge;
$bits =~ s/([^\s0])|(.)/ defined($1) + 0 /ge;
-
+
$num = ord(pack("B8", $bits));
$num |= $num >> 4;
$num = sprintf("0x%.2x", $num);
$num = ord(pack("B8", $bits));
$num |= $num >> 4;
$num = sprintf("0x%.2x", $num);
-
+
#print "$num,$pat,$bits\n";
#print "$num,$pat,$bits\n";
-
+
$num . $pat;
}ge;
$num . $pat;
}ge;