Mercurial > mplayer.hg
comparison sub/sub_cc.c @ 34702:788175a8c14a
Do not use single quotes around hex literals
This is a fixup for r34781. Somehow single quotes were added
to what was meant to be a C hex constant. They were not present
in the original patch. This probably means 10l for Compn :)
Additionally I added comments to describe what characters the
hex literals stand for.
Found-By: Ingo Br«äckl
author | al |
---|---|
date | Sat, 03 Mar 2012 23:34:29 +0000 |
parents | 5367c50655c4 |
children | df3ff52039fe |
comparison
equal
deleted
inserted
replaced
34701:863f5b2905f0 | 34702:788175a8c14a |
---|---|
63 int i; | 63 int i; |
64 /* first the normal ASCII codes */ | 64 /* first the normal ASCII codes */ |
65 for (i = 0; i < 128; i++) | 65 for (i = 0; i < 128; i++) |
66 chartbl[i] = (char) i; | 66 chartbl[i] = (char) i; |
67 /* now the special codes */ | 67 /* now the special codes */ |
68 chartbl[0x2a] = '0xe1'; | 68 chartbl[0x2a] = 0xe1; /* Latin Small Letter A with acute */ |
69 chartbl[0x5c] = '0xe9'; | 69 chartbl[0x5c] = 0xe9; /* Latin Small Letter E with acute */ |
70 chartbl[0x5e] = '0xed'; | 70 chartbl[0x5e] = 0xed; /* Latin Small Letter I with acute */ |
71 chartbl[0x5f] = '0xf3'; | 71 chartbl[0x5f] = 0xf3; /* Latin Small Letter O with acute */ |
72 chartbl[0x60] = '0xfa'; | 72 chartbl[0x60] = 0xfa; /* Latin Small Letter U with acute */ |
73 chartbl[0x7b] = '0xe7'; | 73 chartbl[0x7b] = 0xe7; /* Latin Small Letter C with cedilla */ |
74 chartbl[0x7c] = '0xf7'; | 74 chartbl[0x7c] = 0xf7; /* Division sign */ |
75 chartbl[0x7d] = '0xd1'; | 75 chartbl[0x7d] = 0xd1; /* Latin Capital letter N with tilde */ |
76 chartbl[0x7e] = '0xf1'; | 76 chartbl[0x7e] = 0xf1; /* Latin Small Letter N with tilde */ |
77 chartbl[0x7f] = '0xa4'; /* FIXME: this should be a solid block */ | 77 chartbl[0x7f] = 0xa4; /* Currency sign FIXME: this should be a solid block */ |
78 } | 78 } |
79 | 79 |
80 static void clear_buffer(subtitle *buf) | 80 static void clear_buffer(subtitle *buf) |
81 { | 81 { |
82 int i; | 82 int i; |