0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0328: OLD_DIGRAPHS is unused

Problem:    OLD_DIGRAPHS is unused.
Solution:   Remove OLD_DIGRAPHS.  Also drop HPUX_DIGRAPHS.
This commit is contained in:
Bram Moolenaar
2022-08-30 15:05:30 +01:00
parent 976f859763
commit e27d6e6382
4 changed files with 8 additions and 232 deletions

View File

@@ -30,228 +30,13 @@ static void printdigraph(digr_T *dp, result_T *previous);
static garray_T user_digraphs = {0, 0, (int)sizeof(digr_T), 10, NULL};
/*
* digraphs for Unicode from RFC1345
* (also work for ISO-8859-1 aka latin1)
*
* Note: Characters marked with XX are not included literally, because some
* compilers cannot handle them (Amiga SAS/C is the most picky one).
*/
static digr_T digraphdefault[] =
#ifdef HPUX_DIGRAPHS
/*
* different HPUX digraphs
*/
{{'A', '`', 161}, // ¡
{'A', '^', 162}, // ¢
{'E', '`', 163}, // £
{'E', '^', 164}, // ¤
{'E', '"', 165}, // ¥
{'I', '^', 166}, // ¦
{'I', '"', 167}, // §
{'\'', '\'', 168}, // ¨
{'`', '`', 169}, // ©
{'^', '^', 170}, // ª
{'"', '"', 171}, // «
{'~', '~', 172}, // ¬
{'U', '`', 173}, // ­
{'U', '^', 174}, // ®
{'L', '=', 175}, // ¯
{'~', '_', 176}, // °
{'Y', '\'', 177}, // ±
{'y', '\'', 178}, // ²
{'~', 'o', 179}, // ³
{'C', ',', 180}, // ´
{'c', ',', 181}, // µ
{'N', '~', 182}, // ¶
{'n', '~', 183}, // ·
{'~', '!', 184}, // ¸
{'~', '?', 185}, // ¹
{'o', 'x', 186}, // º
{'L', '-', 187}, // »
{'Y', '=', 188}, // ¼
{'p', 'p', 189}, // ½
{'f', 'l', 190}, // ¾
{'c', '|', 191}, // ¿
{'a', '^', 192}, // À
{'e', '^', 193}, // Á
{'o', '^', 194}, // Â
{'u', '^', 195}, // Ã
{'a', '\'', 196}, // Ä
{'e', '\'', 197}, // Å
{'o', '\'', 198}, // Æ
{'u', '\'', 199}, // Ç
{'a', '`', 200}, // È
{'e', '`', 201}, // É
{'o', '`', 202}, // Ê
{'u', '`', 203}, // Ë
{'a', '"', 204}, // Ì
{'e', '"', 205}, // Í
{'o', '"', 206}, // Î
{'u', '"', 207}, // Ï
{'A', 'o', 208}, // Ð
{'i', '^', 209}, // Ñ
{'O', '/', 210}, // Ò
{'A', 'E', 211}, // Ó
{'a', 'o', 212}, // Ô
{'i', '\'', 213}, // Õ
{'o', '/', 214}, // Ö
{'a', 'e', 215}, // ×
{'A', '"', 216}, // Ø
{'i', '`', 217}, // Ù
{'O', '"', 218}, // Ú
{'U', '"', 219}, // Û
{'E', '\'', 220}, // Ü
{'i', '"', 221}, // Ý
{'s', 's', 222}, // Þ
{'O', '^', 223}, // ß
{'A', '\'', 224}, // à
{'A', '~', 225}, // á
{'a', '~', 226}, // â
{'D', '-', 227}, // ã
{'d', '-', 228}, // ä
{'I', '\'', 229}, // å
{'I', '`', 230}, // æ
{'O', '\'', 231}, // ç
{'O', '`', 232}, // è
{'O', '~', 233}, // é
{'o', '~', 234}, // ê
{'S', '~', 235}, // ë
{'s', '~', 236}, // ì
{'U', '\'', 237}, // í
{'Y', '"', 238}, // î
{'y', '"', 239}, // ï
{'p', '-', 240}, // ð
{'p', '~', 241}, // ñ
{'~', '.', 242}, // ò
{'j', 'u', 243}, // ó
{'P', 'p', 244}, // ô
{'3', '4', 245}, // õ
{'-', '-', 246}, // ö
{'1', '4', 247}, // ÷
{'1', '2', 248}, // ø
{'a', '_', 249}, // ù
{'o', '_', 250}, // ú
{'<', '<', 251}, // û
{'x', 'x', 252}, // ü
{'>', '>', 253}, // ý
{'+', '-', 254}, // þ
{'n', 'u', 255}, // x XX
{NUL, NUL, NUL}
};
#else // !HPUX_DIGRAPHS
# ifdef OLD_DIGRAPHS
/*
* digraphs compatible with Vim 5.x
*/
{{'~', '!', 161}, // ¡
{'c', '|', 162}, // ¢
{'$', '$', 163}, // £
{'o', 'x', 164}, // ¤ - currency symbol in ISO 8859-1
{'e', '=', 164}, // ¤ - euro symbol in ISO 8859-15
{'Y', '-', 165}, // ¥
{'|', '|', 166}, // ¦
{'p', 'a', 167}, // §
{'"', '"', 168}, // ¨
{'c', 'O', 169}, // ©
{'a', '-', 170}, // ª
{'<', '<', 171}, // «
{'-', ',', 172}, // ¬
{'-', '-', 173}, // ­
{'r', 'O', 174}, // ®
{'-', '=', 175}, // ¯
{'~', 'o', 176}, // °
{'+', '-', 177}, // ±
{'2', '2', 178}, // ²
{'3', '3', 179}, // ³
{'\'', '\'', 180}, // ´
{'j', 'u', 181}, // µ
{'p', 'p', 182}, // ¶
{'~', '.', 183}, // ·
{',', ',', 184}, // ¸
{'1', '1', 185}, // ¹
{'o', '-', 186}, // º
{'>', '>', 187}, // »
{'1', '4', 188}, // ¼
{'1', '2', 189}, // ½
{'3', '4', 190}, // ¾
{'~', '?', 191}, // ¿
{'A', '`', 192}, // À
{'A', '\'', 193}, // Á
{'A', '^', 194}, // Â
{'A', '~', 195}, // Ã
{'A', '"', 196}, // Ä
{'A', '@', 197}, // Å
{'A', 'A', 197}, // Å
{'A', 'E', 198}, // Æ
{'C', ',', 199}, // Ç
{'E', '`', 200}, // È
{'E', '\'', 201}, // É
{'E', '^', 202}, // Ê
{'E', '"', 203}, // Ë
{'I', '`', 204}, // Ì
{'I', '\'', 205}, // Í
{'I', '^', 206}, // Î
{'I', '"', 207}, // Ï
{'D', '-', 208}, // Ð
{'N', '~', 209}, // Ñ
{'O', '`', 210}, // Ò
{'O', '\'', 211}, // Ó
{'O', '^', 212}, // Ô
{'O', '~', 213}, // Õ
{'O', '"', 214}, // Ö
{'/', '\\', 215}, // × - multiplication symbol in ISO 8859-1
{'O', 'E', 215}, // × - OE in ISO 8859-15
{'O', '/', 216}, // Ø
{'U', '`', 217}, // Ù
{'U', '\'', 218}, // Ú
{'U', '^', 219}, // Û
{'U', '"', 220}, // Ü
{'Y', '\'', 221}, // Ý
{'I', 'p', 222}, // Þ
{'s', 's', 223}, // ß
{'a', '`', 224}, // à
{'a', '\'', 225}, // á
{'a', '^', 226}, // â
{'a', '~', 227}, // ã
{'a', '"', 228}, // ä
{'a', '@', 229}, // å
{'a', 'a', 229}, // å
{'a', 'e', 230}, // æ
{'c', ',', 231}, // ç
{'e', '`', 232}, // è
{'e', '\'', 233}, // é
{'e', '^', 234}, // ê
{'e', '"', 235}, // ë
{'i', '`', 236}, // ì
{'i', '\'', 237}, // í
{'i', '^', 238}, // î
{'i', '"', 239}, // ï
{'d', '-', 240}, // ð
{'n', '~', 241}, // ñ
{'o', '`', 242}, // ò
{'o', '\'', 243}, // ó
{'o', '^', 244}, // ô
{'o', '~', 245}, // õ
{'o', '"', 246}, // ö
{':', '-', 247}, // ÷ - division symbol in ISO 8859-1
{'o', 'e', 247}, // ÷ - oe in ISO 8859-15
{'o', '/', 248}, // ø
{'u', '`', 249}, // ù
{'u', '\'', 250}, // ú
{'u', '^', 251}, // û
{'u', '"', 252}, // ü
{'y', '\'', 253}, // ý
{'i', 'p', 254}, // þ
{'y', '"', 255}, // x XX
{NUL, NUL, NUL}
};
# else // OLD_DIGRAPHS
/*
* digraphs for Unicode from RFC1345
* (also work for ISO-8859-1 aka latin1)
*/
{
static digr_T digraphdefault[] = {
{'N', 'U', 0x0a}, // LF for NUL
{'S', 'H', 0x01},
{'S', 'X', 0x02},
@@ -1646,11 +1431,8 @@ static digr_T digraphdefault[] =
{'f', 't', 0xfb05},
{'s', 't', 0xfb06},
{NUL, NUL, NUL}
};
# endif // OLD_DIGRAPHS
#endif // !HPUX_DIGRAPHS
{NUL, NUL, NUL} // end marker
};
/*
* handle digraphs after typing a character