1 /* This file was generated by MKcodes.awk */
3 #include <curses.priv.h>
5 #define IT NCURSES_CONST char * const
8 #if BROKEN_LINKER || USE_REENTRANT
10 static const char _nc_code_blob
[] =
11 "bw\0" "am\0" "xb\0" "xs\0" "xn\0" "eo\0" "gn\0" "hc\0" "km\0" "hs\0" "in\0" \
12 "da\0" "db\0" "mi\0" "ms\0" "os\0" "es\0" "xt\0" "hz\0" "ul\0" "xo\0" "nx\0" \
13 "5i\0" "HC\0" "NR\0" "NP\0" "ND\0" "cc\0" "ut\0" "hl\0" "YA\0" "YB\0" "YC\0" \
14 "YD\0" "YE\0" "YF\0" "YG\0" "co\0" "it\0" "li\0" "lm\0" "sg\0" "pb\0" "vt\0" \
15 "ws\0" "Nl\0" "lh\0" "lw\0" "ma\0" "MW\0" "Co\0" "pa\0" "NC\0" "Ya\0" "Yb\0" \
16 "Yc\0" "Yd\0" "Ye\0" "Yf\0" "Yg\0" "Yh\0" "Yi\0" "Yj\0" "Yk\0" "Yl\0" "Ym\0" \
17 "Yn\0" "BT\0" "Yo\0" "Yp\0" "bt\0" "bl\0" "cr\0" "cs\0" "ct\0" "cl\0" "ce\0" \
18 "cd\0" "ch\0" "CC\0" "cm\0" "do\0" "ho\0" "vi\0" "le\0" "CM\0" "ve\0" "nd\0" \
19 "ll\0" "up\0" "vs\0" "dc\0" "dl\0" "ds\0" "hd\0" "as\0" "mb\0" "md\0" "ti\0" \
20 "dm\0" "mh\0" "im\0" "mk\0" "mp\0" "mr\0" "so\0" "us\0" "ec\0" "ae\0" "me\0" \
21 "te\0" "ed\0" "ei\0" "se\0" "ue\0" "vb\0" "ff\0" "fs\0" "i1\0" "is\0" "i3\0" \
22 "if\0" "ic\0" "al\0" "ip\0" "kb\0" "ka\0" "kC\0" "kt\0" "kD\0" "kL\0" "kd\0" \
23 "kM\0" "kE\0" "kS\0" "k0\0" "k1\0" "k;\0" "k2\0" "k3\0" "k4\0" "k5\0" "k6\0" \
24 "k7\0" "k8\0" "k9\0" "kh\0" "kI\0" "kA\0" "kl\0" "kH\0" "kN\0" "kP\0" "kr\0" \
25 "kF\0" "kR\0" "kT\0" "ku\0" "ke\0" "ks\0" "l0\0" "l1\0" "la\0" "l2\0" "l3\0" \
26 "l4\0" "l5\0" "l6\0" "l7\0" "l8\0" "l9\0" "mo\0" "mm\0" "nw\0" "pc\0" "DC\0" \
27 "DL\0" "DO\0" "IC\0" "SF\0" "AL\0" "LE\0" "RI\0" "SR\0" "UP\0" "pk\0" "pl\0" \
28 "px\0" "ps\0" "pf\0" "po\0" "rp\0" "r1\0" "r2\0" "r3\0" "rf\0" "rc\0" "cv\0" \
29 "sc\0" "sf\0" "sr\0" "sa\0" "st\0" "wi\0" "ta\0" "ts\0" "uc\0" "hu\0" "iP\0" \
30 "K1\0" "K3\0" "K2\0" "K4\0" "K5\0" "pO\0" "rP\0" "ac\0" "pn\0" "kB\0" "SX\0" \
31 "RX\0" "SA\0" "RA\0" "XN\0" "XF\0" "eA\0" "LO\0" "LF\0" "@1\0" "@2\0" "@3\0" \
32 "@4\0" "@5\0" "@6\0" "@7\0" "@8\0" "@9\0" "@0\0" "%1\0" "%2\0" "%3\0" "%4\0" \
33 "%5\0" "%6\0" "%7\0" "%8\0" "%9\0" "%0\0" "&1\0" "&2\0" "&3\0" "&4\0" "&5\0" \
34 "&6\0" "&7\0" "&8\0" "&9\0" "&0\0" "*1\0" "*2\0" "*3\0" "*4\0" "*5\0" "*6\0" \
35 "*7\0" "*8\0" "*9\0" "*0\0" "#1\0" "#2\0" "#3\0" "#4\0" "%a\0" "%b\0" "%c\0" \
36 "%d\0" "%e\0" "%f\0" "%g\0" "%h\0" "%i\0" "%j\0" "!1\0" "!2\0" "!3\0" "RF\0" \
37 "F1\0" "F2\0" "F3\0" "F4\0" "F5\0" "F6\0" "F7\0" "F8\0" "F9\0" "FA\0" "FB\0" \
38 "FC\0" "FD\0" "FE\0" "FF\0" "FG\0" "FH\0" "FI\0" "FJ\0" "FK\0" "FL\0" "FM\0" \
39 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8\0" "Xh\0" "Xl\0" "Xo\0" "Xr\0" "Xt\0" "Xv\0" \
53 "sA\0" "sL\0" "i2\0" "rs\0" "ug\0" "bs\0" "ns\0" "nc\0" "dC\0" "dN\0" "nl\0" \
54 "bc\0" "MT\0" "NL\0" "dB\0" "dT\0" "kn\0" "ko\0" "ma\0" "pt\0" "xr\0" "G2\0" \
55 "G3\0" "G1\0" "G4\0" "GR\0" "GL\0" "GU\0" "GD\0" "GH\0" "GV\0" "GC\0" "ml\0" \
57 static const short _nc_offset_boolcodes
[] = {
58 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42,
59 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87,
60 90, 93, 96, 99, 102, 105, 108, 1401, 1404, 1407, 1422, 1425, 1443, 1446, };
62 static NCURSES_CONST
char ** ptr_boolcodes
= 0;
64 static const short _nc_offset_numcodes
[] = {
65 111, 114, 117, 120, 123, 126,
66 129, 132, 135, 138, 141, 144, 147, 150, 153, 156, 159, 162,
67 165, 168, 171, 174, 177, 180, 183, 186, 189, 192, 195, 198,
68 201, 204, 207, 1398, 1410, 1413, 1428, 1431, 1434, };
70 static NCURSES_CONST
char ** ptr_numcodes
= 0;
72 static const short _nc_offset_strcodes
[] = {
73 210, 213, 216, 219, 222, 225, 228, 231, 234,
74 237, 240, 243, 246, 249, 252, 255, 258, 261, 264, 267, 270,
75 273, 276, 279, 282, 285, 288, 291, 294, 297, 300, 303, 306,
76 309, 312, 315, 318, 321, 324, 327, 330, 333, 336, 339, 342,
77 345, 348, 351, 354, 357, 360, 363, 366, 369, 372, 375, 378,
78 381, 384, 387, 390, 393, 396, 399, 402, 405, 408, 411, 414,
79 417, 420, 423, 426, 429, 432, 435, 438, 441, 444, 447, 450,
80 453, 456, 459, 462, 465, 468, 471, 474, 477, 480, 483, 486,
81 489, 492, 495, 498, 501, 504, 507, 510, 513, 516, 519, 522,
82 525, 528, 531, 534, 537, 540, 543, 546, 549, 552, 555, 558,
83 561, 564, 567, 570, 573, 576, 579, 582, 585, 588, 591, 594,
84 597, 600, 603, 606, 609, 612, 615, 618, 621, 624, 627, 630,
85 633, 636, 639, 642, 645, 648, 651, 654, 657, 660, 663, 666,
86 669, 672, 675, 678, 681, 684, 687, 690, 693, 696, 699, 702,
87 705, 708, 711, 714, 717, 720, 723, 726, 729, 732, 735, 738,
88 741, 744, 747, 750, 753, 756, 759, 762, 765, 768, 771, 774,
89 777, 780, 783, 786, 789, 792, 795, 798, 801, 804, 807, 810,
90 813, 816, 819, 822, 825, 828, 831, 834, 837, 840, 843, 846,
91 849, 852, 855, 858, 861, 864, 867, 870, 873, 876, 879, 882,
92 885, 888, 891, 894, 897, 900, 903, 906, 909, 912, 915, 918,
93 921, 924, 927, 930, 933, 936, 939, 942, 945, 948, 951, 954,
94 957, 960, 963, 966, 969, 972, 975, 978, 981, 984, 987, 990,
95 993, 996, 999, 1002, 1005, 1008, 1011, 1014, 1017, 1020, 1023,
96 1026, 1029, 1032, 1035, 1038, 1041, 1044, 1047, 1050, 1053, 1056,
97 1059, 1062, 1065, 1068, 1071, 1074, 1077, 1080, 1083, 1086, 1089,
98 1092, 1095, 1098, 1101, 1104, 1107, 1110, 1113, 1116, 1119, 1122,
99 1125, 1128, 1131, 1134, 1137, 1140, 1143, 1146, 1149, 1152, 1155,
100 1158, 1161, 1164, 1167, 1170, 1173, 1176, 1179, 1182, 1185, 1188,
101 1191, 1194, 1197, 1200, 1203, 1206, 1209, 1212, 1215, 1218, 1221,
102 1224, 1227, 1230, 1233, 1236, 1239, 1242, 1245, 1248, 1251, 1254,
103 1257, 1260, 1263, 1266, 1269, 1272, 1275, 1278, 1281, 1284, 1287,
104 1290, 1293, 1296, 1299, 1302, 1305, 1308, 1311, 1314, 1317, 1320,
105 1323, 1326, 1329, 1332, 1335, 1338, 1341, 1344, 1347, 1350, 1353,
106 1356, 1359, 1362, 1365, 1368, 1371, 1374, 1377, 1380, 1383, 1386,
107 1389, 1392, 1395, 1416, 1419,
108 1437, 1440, 1449, 1452,
109 1455, 1458, 1461, 1464, 1467, 1470, 1473, 1476, 1479, 1482, 1485,
112 static NCURSES_CONST
char ** ptr_strcodes
= 0;
116 alloc_array(NCURSES_CONST
char ***value
, const short *offsets
, unsigned size
)
119 if ((*value
= typeCalloc(NCURSES_CONST
char *, size
+ 1)) != 0) {
121 for (n
= 0; n
< size
; ++n
) {
122 (*value
)[n
] = (NCURSES_CONST
char *) _nc_code_blob
+ offsets
[n
];
129 #define FIX(it) NCURSES_IMPEXP IT * NCURSES_API NCURSES_PUBLIC_VAR(it)(void) { return alloc_array(&ptr_##it, _nc_offset_##it, SIZEOF(_nc_offset_##it)); }
131 /* remove public definition which conflicts with FIX() */
136 /* add local definition */
141 /* restore the public definition */
143 #define FREE_FIX(it) if (ptr_##it) { FreeAndNull(ptr_##it); }
144 #define boolcodes NCURSES_PUBLIC_VAR(boolcodes())
145 #define numcodes NCURSES_PUBLIC_VAR(numcodes())
146 #define strcodes NCURSES_PUBLIC_VAR(strcodes())
150 _nc_codes_leaks(void)
160 #define DCL(it) NCURSES_EXPORT_VAR(IT) it[]
208 (NCURSES_CONST
char *)0,
252 (NCURSES_CONST
char *)0,
671 (NCURSES_CONST
char *)0,
675 #endif /* BROKEN_LINKER */