1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918
|
# line 43 "gram.y"
#include <stdio.h>
#include <ctype.h>
#include "twm.h"
#include "menus.h"
#include "icons.h"
#include "list.h"
#include "util.h"
#include "screen.h"
#include "parse.h"
#ifdef VMS
#include <decw$include/Xos.h>
#include <X11Xmu/CharSet.h>
#else
#include <X11/Xos.h>
#include <X11/Xmu/CharSet.h>
#endif
static char *Action = "";
static char *Name = "";
static char *defstring = "default";
static MenuRoot *root, *pull = NULL;
static char *curWorkSpc;
static char *client, *workspace;
static MenuItem *lastmenuitem = (MenuItem*) 0;
static MenuRoot *GetRoot();
static Bool CheckWarpScreenArg(), CheckWarpRingArg();
static Bool CheckColormapArg();
static void GotButton(), GotKey(), GotTitleButton();
static char *ptr;
static name_list **list;
static int cont = 0;
static int color;
int mods = 0;
unsigned int mods_used = (ShiftMask | ControlMask | Mod1Mask);
extern int do_single_keyword(), do_string_keyword(), do_number_keyword();
extern name_list **do_colorlist_keyword();
extern int do_color_keyword(), do_string_savecolor();
extern int yylineno;
# line 81 "gram.y"
typedef union
{
int num;
char *ptr;
} YYSTYPE;
#ifdef __cplusplus
# include <stdio.h>
extern "C" {
extern void yyerror(char *);
extern int yylex();
}
#endif /* __cplusplus */
# define LB 257
# define RB 258
# define LP 259
# define RP 260
# define MENUS 261
# define MENU 262
# define BUTTON 263
# define DEFAULT_FUNCTION 264
# define PLUS 265
# define MINUS 266
# define ALL 267
# define OR 268
# define CURSORS 269
# define PIXMAPS 270
# define ICONS 271
# define COLOR 272
# define SAVECOLOR 273
# define MONOCHROME 274
# define FUNCTION 275
# define ICONMGR_SHOW 276
# define ICONMGR 277
# define WINDOW_FUNCTION 278
# define ZOOM 279
# define ICONMGRS 280
# define ICONMGR_GEOMETRY 281
# define ICONMGR_NOSHOW 282
# define MAKE_TITLE 283
# define ICONIFY_BY_UNMAPPING 284
# define DONT_ICONIFY_BY_UNMAPPING 285
# define NO_BORDER 286
# define NO_ICON_TITLE 287
# define NO_TITLE 288
# define AUTO_RAISE 289
# define NO_HILITE 290
# define ICON_REGION 291
# define META 292
# define SHIFT 293
# define LOCK 294
# define CONTROL 295
# define WINDOW 296
# define TITLE 297
# define ICON 298
# define ROOT 299
# define FRAME 300
# define COLON 301
# define EQUALS 302
# define SQUEEZE_TITLE 303
# define DONT_SQUEEZE_TITLE 304
# define START_ICONIFIED 305
# define NO_TITLE_HILITE 306
# define TITLE_HILITE 307
# define MOVE 308
# define RESIZE 309
# define WAITC 310
# define SELECT 311
# define KILL 312
# define LEFT_TITLEBUTTON 313
# define RIGHT_TITLEBUTTON 314
# define NUMBER 315
# define KEYWORD 316
# define NKEYWORD 317
# define CKEYWORD 318
# define CLKEYWORD 319
# define FKEYWORD 320
# define FSKEYWORD 321
# define SKEYWORD 322
# define DKEYWORD 323
# define JKEYWORD 324
# define WINDOW_RING 325
# define WARP_CURSOR 326
# define ERRORTOKEN 327
# define NO_STACKMODE 328
# define WORKSPACE 329
# define WORKSPACES 330
# define WORKSPCMGR_GEOMETRY 331
# define OCCUPYALL 332
# define OCCUPYLIST 333
# define MAPWINDOWCURRENTWORKSPACE 334
# define MAPWINDOWDEFAULTWORKSPACE 335
# define OPAQUEMOVE 336
# define NOOPAQUEMOVE 337
# define OPAQUERESIZE 338
# define NOOPAQUERESIZE 339
# define CHANGE_WORKSPACE_FUNCTION 340
# define DEICONIFY_FUNCTION 341
# define ICONIFY_FUNCTION 342
# define STRING 343
#define yyclearin yychar = -1
#define yyerrok yyerrflag = 0
extern int yychar;
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 150
#endif
/* __YYSCLASS defines the scoping/storage class for global objects
* that are NOT renamed by the -p option. By default these names
* are going to be 'static' so that multi-definition errors
* will not occur with multiple parsers.
* If you want (unsupported) access to internal names you need
* to define this to be null so it implies 'extern' scope.
* This should not be used in conjunction with -p.
*/
#ifndef __YYSCLASS
# define __YYSCLASS static
#endif
YYSTYPE yylval;
__YYSCLASS YYSTYPE yyval;
typedef int yytabelem;
# define YYERRCODE 256
# line 830 "gram.y"
yyerror(s) char *s;
{
twmrc_error_prefix();
fprintf (stderr, "error in input file: %s\n", s ? s : "");
ParseError = 1;
}
RemoveDQuote(str)
char *str;
{
register char *i, *o;
register n;
register count;
for (i=str+1, o=str; *i && *i != '\"'; o++)
{
if (*i == '\\')
{
switch (*++i)
{
case 'n':
*o = '\n';
i++;
break;
case 'b':
*o = '\b';
i++;
break;
case 'r':
*o = '\r';
i++;
break;
case 't':
*o = '\t';
i++;
break;
case 'f':
*o = '\f';
i++;
break;
case '0':
if (*++i == 'x')
goto hex;
else
--i;
case '1': case '2': case '3':
case '4': case '5': case '6': case '7':
n = 0;
count = 0;
while (*i >= '0' && *i <= '7' && count < 3)
{
n = (n<<3) + (*i++ - '0');
count++;
}
*o = n;
break;
hex:
case 'x':
n = 0;
count = 0;
while (i++, count++ < 2)
{
if (*i >= '0' && *i <= '9')
n = (n<<4) + (*i - '0');
else if (*i >= 'a' && *i <= 'f')
n = (n<<4) + (*i - 'a') + 10;
else if (*i >= 'A' && *i <= 'F')
n = (n<<4) + (*i - 'A') + 10;
else
break;
}
*o = n;
break;
case '\n':
i++; /* punt */
o--; /* to account for o++ at end of loop */
break;
case '\"':
case '\'':
case '\\':
default:
*o = *i++;
break;
}
}
else
*o = *i++;
}
*o = '\0';
}
static MenuRoot *GetRoot(name, fore, back)
char *name;
char *fore, *back;
{
MenuRoot *tmp;
tmp = FindMenuRoot(name);
if (tmp == NULL)
tmp = NewMenuRoot(name);
if (fore)
{
int save;
save = Scr->FirstTime;
Scr->FirstTime = TRUE;
GetColor(COLOR, &tmp->highlight.fore, fore);
GetColor(COLOR, &tmp->highlight.back, back);
Scr->FirstTime = save;
}
return tmp;
}
static void GotButton (butt, func)
int butt, func;
{
int i;
MenuRoot *menu;
MenuItem *item;
for (i = 0; i < NUM_CONTEXTS; i++) {
if ((cont & (1 << i)) == 0) continue;
if (func == F_MENU) {
pull->prev = NULL;
AddFuncButton (butt, i, mods, func, pull, (MenuItem*) 0);
}
else {
root = GetRoot (TWM_ROOT, NULLSTR, NULLSTR);
item = AddToMenu (root, "x", Action, NULLSTR, func, NULLSTR, NULLSTR);
AddFuncButton (butt, i, mods, func, (MenuRoot*) 0, item);
}
}
Action = "";
pull = NULL;
cont = 0;
mods_used |= mods;
mods = 0;
}
static void GotKey(key, func)
char *key;
int func;
{
int i;
for (i = 0; i < NUM_CONTEXTS; i++)
{
if ((cont & (1 << i)) == 0)
continue;
if (!AddFuncKey(key, i, mods, func, Name, Action))
break;
}
Action = "";
pull = NULL;
cont = 0;
mods_used |= mods;
mods = 0;
}
static void GotTitleButton (bitmapname, func, rightside)
char *bitmapname;
int func;
Bool rightside;
{
if (!CreateTitleButton (bitmapname, func, Action, pull, rightside, True)) {
twmrc_error_prefix();
fprintf (stderr,
"unable to create %s titlebutton \"%s\"\n",
rightside ? "right" : "left", bitmapname);
}
Action = "";
pull = NULL;
}
static Bool CheckWarpScreenArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, WARPSCREEN_NEXT) == 0 ||
strcmp (s, WARPSCREEN_PREV) == 0 ||
strcmp (s, WARPSCREEN_BACK) == 0)
return True;
for (; *s && isascii(*s) && isdigit(*s); s++) ; /* SUPPRESS 530 */
return (*s ? False : True);
}
static Bool CheckWarpRingArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, WARPSCREEN_NEXT) == 0 ||
strcmp (s, WARPSCREEN_PREV) == 0)
return True;
return False;
}
static Bool CheckColormapArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, COLORMAP_NEXT) == 0 ||
strcmp (s, COLORMAP_PREV) == 0 ||
strcmp (s, COLORMAP_DEFAULT) == 0)
return True;
return False;
}
twmrc_error_prefix ()
{
fprintf (stderr, "%s: line %d: ", ProgramName, yylineno);
}
__YYSCLASS yytabelem yyexca[] ={
-1, 1,
0, -1,
-2, 0,
-1, 2,
0, 1,
-2, 0,
-1, 17,
257, 24,
-2, 26,
-1, 18,
257, 27,
-2, 29,
-1, 19,
257, 30,
-2, 32,
-1, 20,
257, 33,
-2, 35,
-1, 21,
257, 36,
-2, 38,
-1, 30,
257, 53,
-2, 55,
-1, 33,
257, 60,
-2, 62,
-1, 34,
257, 63,
-2, 65,
-1, 35,
257, 66,
-2, 68,
-1, 37,
257, 71,
-2, 73,
-1, 38,
257, 74,
-2, 76,
-1, 41,
257, 81,
-2, 83,
-1, 53,
257, 103,
-2, 105,
-1, 54,
257, 106,
-2, 108,
-1, 58,
257, 192,
-2, 191,
-1, 59,
257, 195,
-2, 194,
-1, 242,
257, 208,
-2, 207,
-1, 267,
257, 10,
-2, 9,
-1, 319,
257, 179,
-2, 178,
};
# define YYNPROD 268
# define YYLAST 654
__YYSCLASS yytabelem yyact[]={
25, 209, 61, 331, 321, 68, 339, 175, 85, 122,
62, 63, 64, 83, 84, 68, 376, 178, 138, 372,
137, 364, 87, 78, 79, 80, 83, 84, 369, 303,
304, 243, 361, 61, 325, 323, 251, 161, 312, 301,
313, 270, 380, 104, 105, 337, 261, 268, 347, 61,
265, 346, 254, 210, 302, 357, 352, 117, 296, 297,
298, 299, 300, 294, 4, 252, 180, 83, 84, 246,
42, 60, 48, 316, 248, 240, 332, 16, 15, 44,
45, 46, 47, 43, 32, 139, 49, 14, 31, 10,
30, 39, 17, 26, 36, 37, 38, 41, 34, 9,
67, 61, 247, 81, 61, 61, 61, 264, 315, 132,
330, 58, 59, 40, 33, 234, 61, 61, 220, 61,
61, 22, 23, 61, 55, 57, 61, 176, 218, 177,
56, 61, 61, 54, 53, 61, 35, 61, 27, 11,
28, 29, 12, 13, 18, 19, 20, 21, 50, 51,
52, 61, 110, 111, 112, 113, 114, 212, 118, 61,
61, 121, 208, 173, 123, 124, 167, 169, 343, 344,
83, 84, 203, 165, 166, 257, 150, 219, 221, 147,
144, 222, 128, 126, 223, 224, 225, 226, 227, 228,
229, 230, 231, 232, 233, 236, 199, 200, 201, 202,
61, 72, 70, 61, 253, 204, 242, 245, 250, 140,
255, 213, 373, 61, 256, 367, 263, 266, 68, 365,
269, 349, 271, 351, 272, 273, 274, 275, 276, 277,
278, 279, 280, 281, 282, 260, 259, 334, 203, 181,
305, 195, 196, 191, 187, 333, 307, 308, 309, 244,
206, 310, 311, 314, 235, 194, 362, 318, 186, 348,
319, 320, 199, 200, 201, 202, 329, 306, 241, 205,
324, 197, 326, 292, 293, 249, 217, 207, 184, 185,
120, 183, 216, 290, 170, 119, 377, 370, 262, 188,
189, 190, 192, 193, 215, 356, 340, 141, 291, 258,
238, 214, 285, 286, 287, 288, 289, 283, 182, 130,
179, 336, 129, 295, 284, 198, 239, 237, 267, 116,
115, 109, 168, 108, 107, 164, 106, 211, 163, 162,
131, 354, 103, 102, 101, 100, 99, 350, 98, 97,
355, 96, 95, 94, 149, 93, 92, 146, 91, 363,
366, 90, 143, 89, 88, 77, 368, 317, 76, 75,
74, 73, 71, 69, 371, 127, 66, 125, 374, 65,
375, 378, 379, 322, 8, 7, 6, 5, 3, 381,
382, 2, 1, 384, 86, 82, 341, 327, 24, 0,
0, 0, 0, 0, 0, 0, 0, 0, 328, 0,
0, 0, 0, 0, 0, 133, 134, 135, 136, 0,
0, 335, 0, 0, 0, 0, 0, 0, 338, 142,
0, 145, 342, 148, 0, 151, 152, 153, 154, 155,
156, 157, 158, 159, 160, 0, 0, 353, 0, 0,
0, 0, 358, 0, 359, 360, 171, 172, 0, 0,
0, 174, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 383, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 345 };
__YYSCLASS yytabelem yypact[]={
-3000, -3000, -192, -3000, -3000, -3000, -3000, -3000, -3000, -341,
-341, -341, -3000, -3000, -300, -55, -56, -3000, -3000, -3000,
-3000, -3000, -341, -341, -294, -280, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -341, -341, -3000, -3000, -3000, -3000, -307, -307,
-307, -307, -307, -3000, -3000, -3000, -341, -300, -3000, -3000,
-300, -3000, -314, -300, -300, -74, -75, -3000, -3000, -3000,
-3000, -3000, -3000, -148, -148, -148, -148, -148, -282, -284,
-3000, -3000, -3000, -3000, -341, -3000, -3000, -3000, -148, -77,
-148, -78, -148, -81, -148, -148, -148, -148, -148, -148,
-148, -148, -148, -148, -222, -3000, -84, -91, -90, -91,
-3000, -3000, -3000, -3000, -3000, -148, -148, -3000, -3000, -94,
-148, -3000, -316, -3000, -3000, -3000, -341, -3000, -341, -241,
-19, -3000, -3000, -3000, -3000, -3000, -3000, -307, -307, -3000,
-30, -96, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -341, -204, -100, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -300, -130, -140, -3000, -3000,
-341, -3000, -3000, -341, -341, -341, -341, -341, -341, -341,
-341, -341, -341, -341, -143, -3000, -3000, -3000, -3000, -300,
-3000, -3000, -3000, -3000, -3000, -183, -227, -184, -265, -3000,
-3000, -3000, -3000, -206, -83, -212, -208, -300, -3000, -211,
-3000, -217, -3000, -341, -341, -341, -341, -341, -341, -341,
-341, -341, -341, -341, -3000, -3000, -3000, 6, -3000, -238,
-3000, -3000, -3000, -3000, -3000, -3000, -341, -341, -3000, -3000,
-341, -341, -220, -150, -3000, -3000, -341, -3000, -3000, -341,
-341, -3000, -3000, -3000, -3000, -3000, -320, -3000, -3000, -223,
-3000, -224, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -307, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -307, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -147, -181, -3000, -3000,
-310, -215, -3000, -3000, -253, -3000, -3000, -3000, -3000, -3000,
-3000, -97, -148, -3000, -207, -3000, -210, -3000, -3000, -3000,
-3000, -3000, -3000, -181, -201, -3000, -300, -3000, -3000, -341,
-202, -300, -3000, -300, -300, -3000, -3000, -3000, -226, -237,
-3000, -3000, -3000, -3000, -204, -273, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -341, -3000, -3000, -3000, -239, -3000, -341,
-242, -341, -3000, -3000, -3000, -218, -3000, -3000, -341, -341,
-307, -3000, -341, -3000, -3000 };
__YYSCLASS yytabelem yypgo[]={
0, 0, 103, 388, 100, 386, 385, 384, 382, 381,
378, 377, 376, 375, 374, 373, 330, 369, 367, 366,
365, 363, 362, 361, 360, 359, 358, 355, 354, 353,
352, 351, 348, 347, 346, 345, 344, 343, 342, 341,
339, 338, 336, 335, 334, 333, 332, 331, 1, 329,
328, 327, 326, 325, 324, 174, 323, 322, 321, 320,
319, 209, 317, 316, 315, 314, 313, 312, 310, 309,
308, 301, 299, 296, 295, 294, 288, 287, 286, 285,
282, 280, 277, 275, 269, 268, 267, 266, 259, 256,
255, 254, 250, 249, 246, 3, 245, 237, 223, 221,
219, 215, 212, 211, 210, 204, 73, 65, 40 };
__YYSCLASS yytabelem yyr1[]={
0, 8, 9, 9, 10, 10, 10, 10, 10, 10,
15, 10, 10, 10, 10, 10, 17, 10, 19, 10,
10, 10, 10, 10, 23, 10, 10, 24, 10, 10,
25, 10, 10, 26, 10, 10, 27, 10, 10, 10,
10, 10, 10, 10, 10, 28, 10, 29, 10, 31,
10, 32, 10, 34, 10, 10, 35, 10, 37, 10,
38, 10, 10, 39, 10, 10, 40, 10, 10, 41,
10, 42, 10, 10, 43, 10, 10, 44, 10, 45,
10, 46, 10, 10, 47, 10, 49, 10, 50, 10,
52, 10, 54, 10, 56, 10, 58, 10, 10, 10,
10, 10, 10, 59, 10, 10, 60, 10, 10, 11,
12, 12, 13, 6, 7, 61, 61, 64, 64, 64,
64, 64, 64, 62, 62, 65, 65, 65, 65, 65,
65, 65, 65, 65, 63, 63, 66, 66, 66, 66,
66, 66, 66, 66, 66, 66, 21, 67, 67, 68,
22, 69, 69, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 70, 70, 70, 70, 70,
70, 70, 70, 70, 70, 55, 71, 71, 72, 73,
72, 72, 57, 75, 75, 76, 76, 74, 77, 77,
78, 14, 79, 14, 14, 81, 14, 80, 80, 36,
82, 82, 83, 83, 30, 84, 84, 85, 86, 85,
87, 88, 88, 89, 89, 89, 89, 89, 18, 18,
18, 18, 20, 20, 20, 20, 16, 90, 90, 91,
33, 92, 92, 94, 93, 96, 93, 97, 93, 95,
99, 99, 100, 98, 101, 101, 102, 53, 103, 103,
104, 51, 105, 105, 106, 48, 107, 107, 108, 108,
2, 2, 5, 5, 5, 3, 1, 4 };
__YYSCLASS yytabelem yyr2[]={
0, 2, 0, 4, 2, 2, 2, 2, 2, 13,
1, 16, 7, 5, 7, 5, 1, 6, 1, 6,
5, 3, 5, 5, 1, 6, 3, 1, 6, 3,
1, 6, 3, 1, 6, 3, 1, 6, 3, 9,
9, 5, 5, 5, 5, 1, 6, 1, 6, 1,
6, 1, 6, 1, 6, 3, 1, 6, 1, 6,
1, 6, 3, 1, 6, 3, 1, 6, 3, 1,
6, 1, 6, 3, 1, 6, 3, 1, 6, 1,
6, 1, 6, 3, 1, 19, 1, 9, 1, 8,
1, 6, 1, 6, 1, 6, 1, 6, 5, 5,
5, 5, 5, 1, 6, 3, 1, 6, 3, 3,
5, 3, 5, 13, 13, 0, 4, 3, 3, 3,
3, 5, 3, 0, 4, 3, 3, 3, 3, 3,
3, 3, 3, 3, 0, 4, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 7, 0, 4, 5,
7, 0, 4, 7, 5, 7, 5, 7, 5, 7,
5, 7, 5, 7, 5, 7, 5, 7, 5, 7,
5, 7, 5, 7, 5, 7, 0, 4, 5, 1,
8, 5, 7, 0, 4, 3, 3, 7, 0, 4,
5, 3, 1, 10, 3, 1, 6, 0, 11, 7,
0, 4, 7, 9, 7, 0, 4, 3, 1, 6,
7, 0, 4, 3, 5, 7, 9, 11, 7, 9,
11, 13, 7, 9, 11, 13, 7, 0, 4, 3,
7, 0, 4, 1, 6, 1, 8, 1, 8, 7,
0, 4, 3, 7, 0, 4, 3, 7, 0, 4,
5, 7, 0, 4, 3, 7, 0, 4, 5, 15,
3, 5, 3, 5, 5, 5, 3, 3 };
__YYSCLASS yytabelem yychk[]={
-3000, -8, -9, -10, 256, -11, -12, -13, -14, 291,
281, 331, 334, 335, 279, 270, 269, 284, 336, 337,
338, 339, 313, 314, -3, -1, 285, 330, 332, 333,
282, 280, 276, 306, 290, 328, 286, 287, 288, 283,
305, 289, 262, 275, 271, 272, 273, 274, 264, 278,
340, 341, 342, 326, 325, 316, 322, 317, 303, 304,
263, 343, -1, -1, -1, -17, -19, -4, 315, -21,
257, -22, 257, -23, -24, -25, -26, -27, -1, -1,
-1, -2, -6, 320, 321, 302, -7, 302, -28, -29,
-31, -32, -34, -35, -37, -38, -39, -40, -41, -42,
-43, -44, -45, -46, -1, -1, -52, -54, -56, -58,
-2, -2, -2, -2, -2, -59, -60, -1, -4, -79,
-81, -4, 323, -4, -4, -18, 257, -20, 257, -67,
-69, -16, 257, -16, -16, -16, -16, 302, 302, -1,
-61, -61, -16, -30, 257, -16, -33, 257, -16, -36,
257, -16, -16, -16, -16, -16, -16, -16, -16, -16,
-16, 259, -49, -50, -53, 257, -55, 257, -57, 257,
-55, -16, -16, 257, -16, 323, -1, -1, 258, -68,
307, 258, -70, 300, 297, 298, 277, 263, 308, 309,
310, 262, 311, 312, -90, -2, -2, 301, -64, 292,
293, 294, 295, 268, 301, -84, -92, -82, -1, -48,
257, -51, 257, -103, -71, -75, -80, -4, 258, -1,
258, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 258, -91, -1, -62, -4, -63,
258, -85, -1, 258, -93, -1, 296, 329, 258, -83,
-1, 301, -107, -105, 258, -104, -1, 258, -72, 319,
318, 258, -76, -1, 319, 258, -1, -4, 258, -1,
258, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 301, -65, 296, 297, 298, 299, 300,
277, 292, 267, 268, 301, -66, 296, 297, 298, 299,
300, 277, 292, 267, 268, -1, -86, -94, -1, -1,
-1, -1, 258, -108, -1, 258, -106, -2, -1, -1,
-1, 324, -15, 258, -1, 258, -1, -2, -2, -87,
257, -95, 257, -96, -97, -4, -1, 260, -2, 259,
-73, -5, -4, 265, 266, -16, 258, 258, -88, -99,
-95, -98, 257, -4, -47, -1, -74, 257, -4, -4,
-4, 258, -89, -1, 258, -100, -1, -101, -48, 301,
-77, -1, 258, -102, -1, -1, 258, -78, -1, -1,
260, -1, -1, -2, -1 };
__YYSCLASS yytabelem yydef[]={
2, -2, -2, 3, 4, 5, 6, 7, 8, 0,
0, 0, 16, 18, 21, 0, 0, -2, -2, -2,
-2, -2, 0, 0, 0, 0, 45, 47, 49, 51,
-2, 56, 58, -2, -2, -2, 69, -2, -2, 77,
79, -2, 0, 0, 90, 92, 94, 96, 0, 0,
0, 0, 0, -2, -2, 109, 111, 0, -2, -2,
0, 266, 0, 13, 15, 0, 0, 20, 267, 22,
147, 23, 151, 0, 0, 0, 0, 0, 0, 0,
41, 42, 44, 260, 0, 115, 43, 115, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 86, 88, 0, 0, 0, 0,
98, 99, 100, 101, 102, 0, 0, 110, 112, 0,
0, 265, 0, 12, 14, 17, 0, 19, 0, 0,
0, 25, 227, 28, 31, 34, 37, 0, 0, 261,
0, 0, 46, 48, 205, 50, 52, 231, 54, 57,
200, 59, 61, 64, 67, 70, 72, 75, 78, 80,
82, 0, 0, 0, 91, 248, 93, 176, 95, 183,
97, 104, 107, 197, 196, 0, 0, 0, 146, 148,
0, 150, 152, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 39, 40, 123, 116, 117,
118, 119, 120, 122, 134, 0, 0, 0, 0, 87,
256, 89, 252, 0, 0, 0, 0, 0, 218, 0,
222, 0, 149, 154, 156, 158, 160, 162, 164, 166,
168, 170, 172, 174, 226, 228, 229, 0, 121, 0,
204, 206, -2, 230, 232, 233, 0, 0, 199, 201,
0, 0, 0, 0, 247, 249, 0, 175, 177, 0,
0, 182, 184, 185, 186, 193, 0, -2, 219, 0,
223, 0, 153, 155, 157, 159, 161, 163, 165, 167,
169, 171, 173, 0, 124, 125, 126, 127, 128, 129,
130, 131, 132, 133, 0, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 0, 0, 235, 237,
0, 0, 255, 257, 0, 251, 253, 254, 250, -2,
181, 0, 0, 220, 0, 224, 0, 113, 114, 209,
211, 234, 240, 0, 0, 202, 0, 84, 258, 0,
0, 0, 262, 0, 0, 11, 221, 225, 0, 0,
236, 238, 244, 203, 0, 0, 180, 188, 198, 263,
264, 210, 212, 213, 239, 241, 242, 0, 85, 0,
0, 214, 243, 245, 246, 0, 187, 189, 0, 215,
0, 190, 216, 259, 217 };
typedef struct { char *t_name; int t_val; } yytoktype;
#ifndef YYDEBUG
# define YYDEBUG 0 /* don't allow debugging */
#endif
#if YYDEBUG
__YYSCLASS yytoktype yytoks[] =
{
"LB", 257,
"RB", 258,
"LP", 259,
"RP", 260,
"MENUS", 261,
"MENU", 262,
"BUTTON", 263,
"DEFAULT_FUNCTION", 264,
"PLUS", 265,
"MINUS", 266,
"ALL", 267,
"OR", 268,
"CURSORS", 269,
"PIXMAPS", 270,
"ICONS", 271,
"COLOR", 272,
"SAVECOLOR", 273,
"MONOCHROME", 274,
"FUNCTION", 275,
"ICONMGR_SHOW", 276,
"ICONMGR", 277,
"WINDOW_FUNCTION", 278,
"ZOOM", 279,
"ICONMGRS", 280,
"ICONMGR_GEOMETRY", 281,
"ICONMGR_NOSHOW", 282,
"MAKE_TITLE", 283,
"ICONIFY_BY_UNMAPPING", 284,
"DONT_ICONIFY_BY_UNMAPPING", 285,
"NO_BORDER", 286,
"NO_ICON_TITLE", 287,
"NO_TITLE", 288,
"AUTO_RAISE", 289,
"NO_HILITE", 290,
"ICON_REGION", 291,
"META", 292,
"SHIFT", 293,
"LOCK", 294,
"CONTROL", 295,
"WINDOW", 296,
"TITLE", 297,
"ICON", 298,
"ROOT", 299,
"FRAME", 300,
"COLON", 301,
"EQUALS", 302,
"SQUEEZE_TITLE", 303,
"DONT_SQUEEZE_TITLE", 304,
"START_ICONIFIED", 305,
"NO_TITLE_HILITE", 306,
"TITLE_HILITE", 307,
"MOVE", 308,
"RESIZE", 309,
"WAITC", 310,
"SELECT", 311,
"KILL", 312,
"LEFT_TITLEBUTTON", 313,
"RIGHT_TITLEBUTTON", 314,
"NUMBER", 315,
"KEYWORD", 316,
"NKEYWORD", 317,
"CKEYWORD", 318,
"CLKEYWORD", 319,
"FKEYWORD", 320,
"FSKEYWORD", 321,
"SKEYWORD", 322,
"DKEYWORD", 323,
"JKEYWORD", 324,
"WINDOW_RING", 325,
"WARP_CURSOR", 326,
"ERRORTOKEN", 327,
"NO_STACKMODE", 328,
"WORKSPACE", 329,
"WORKSPACES", 330,
"WORKSPCMGR_GEOMETRY", 331,
"OCCUPYALL", 332,
"OCCUPYLIST", 333,
"MAPWINDOWCURRENTWORKSPACE", 334,
"MAPWINDOWDEFAULTWORKSPACE", 335,
"OPAQUEMOVE", 336,
"NOOPAQUEMOVE", 337,
"OPAQUERESIZE", 338,
"NOOPAQUERESIZE", 339,
"CHANGE_WORKSPACE_FUNCTION", 340,
"DEICONIFY_FUNCTION", 341,
"ICONIFY_FUNCTION", 342,
"STRING", 343,
"-unknown-", -1 /* ends search */
};
__YYSCLASS char * yyreds[] =
{
"-no such reduction-",
"twmrc : stmts",
"stmts : /* empty */",
"stmts : stmts stmt",
"stmt : error",
"stmt : noarg",
"stmt : sarg",
"stmt : narg",
"stmt : squeeze",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number win_list",
"stmt : ICONMGR_GEOMETRY string number",
"stmt : ICONMGR_GEOMETRY string",
"stmt : WORKSPCMGR_GEOMETRY string number",
"stmt : WORKSPCMGR_GEOMETRY string",
"stmt : MAPWINDOWCURRENTWORKSPACE",
"stmt : MAPWINDOWCURRENTWORKSPACE curwork",
"stmt : MAPWINDOWDEFAULTWORKSPACE",
"stmt : MAPWINDOWDEFAULTWORKSPACE defwork",
"stmt : ZOOM number",
"stmt : ZOOM",
"stmt : PIXMAPS pixmap_list",
"stmt : CURSORS cursor_list",
"stmt : ICONIFY_BY_UNMAPPING",
"stmt : ICONIFY_BY_UNMAPPING win_list",
"stmt : ICONIFY_BY_UNMAPPING",
"stmt : OPAQUEMOVE",
"stmt : OPAQUEMOVE win_list",
"stmt : OPAQUEMOVE",
"stmt : NOOPAQUEMOVE",
"stmt : NOOPAQUEMOVE win_list",
"stmt : NOOPAQUEMOVE",
"stmt : OPAQUERESIZE",
"stmt : OPAQUERESIZE win_list",
"stmt : OPAQUERESIZE",
"stmt : NOOPAQUERESIZE",
"stmt : NOOPAQUERESIZE win_list",
"stmt : NOOPAQUERESIZE",
"stmt : LEFT_TITLEBUTTON string EQUALS action",
"stmt : RIGHT_TITLEBUTTON string EQUALS action",
"stmt : button string",
"stmt : button action",
"stmt : string fullkey",
"stmt : button full",
"stmt : DONT_ICONIFY_BY_UNMAPPING",
"stmt : DONT_ICONIFY_BY_UNMAPPING win_list",
"stmt : WORKSPACES",
"stmt : WORKSPACES workspc_list",
"stmt : OCCUPYALL",
"stmt : OCCUPYALL win_list",
"stmt : OCCUPYLIST",
"stmt : OCCUPYLIST occupy_list",
"stmt : ICONMGR_NOSHOW",
"stmt : ICONMGR_NOSHOW win_list",
"stmt : ICONMGR_NOSHOW",
"stmt : ICONMGRS",
"stmt : ICONMGRS iconm_list",
"stmt : ICONMGR_SHOW",
"stmt : ICONMGR_SHOW win_list",
"stmt : NO_TITLE_HILITE",
"stmt : NO_TITLE_HILITE win_list",
"stmt : NO_TITLE_HILITE",
"stmt : NO_HILITE",
"stmt : NO_HILITE win_list",
"stmt : NO_HILITE",
"stmt : NO_STACKMODE",
"stmt : NO_STACKMODE win_list",
"stmt : NO_STACKMODE",
"stmt : NO_BORDER",
"stmt : NO_BORDER win_list",
"stmt : NO_ICON_TITLE",
"stmt : NO_ICON_TITLE win_list",
"stmt : NO_ICON_TITLE",
"stmt : NO_TITLE",
"stmt : NO_TITLE win_list",
"stmt : NO_TITLE",
"stmt : MAKE_TITLE",
"stmt : MAKE_TITLE win_list",
"stmt : START_ICONIFIED",
"stmt : START_ICONIFIED win_list",
"stmt : AUTO_RAISE",
"stmt : AUTO_RAISE win_list",
"stmt : AUTO_RAISE",
"stmt : MENU string LP string COLON string RP",
"stmt : MENU string LP string COLON string RP menu",
"stmt : MENU string",
"stmt : MENU string menu",
"stmt : FUNCTION string",
"stmt : FUNCTION string function",
"stmt : ICONS",
"stmt : ICONS icon_list",
"stmt : COLOR",
"stmt : COLOR color_list",
"stmt : SAVECOLOR",
"stmt : SAVECOLOR save_color_list",
"stmt : MONOCHROME",
"stmt : MONOCHROME color_list",
"stmt : DEFAULT_FUNCTION action",
"stmt : WINDOW_FUNCTION action",
"stmt : CHANGE_WORKSPACE_FUNCTION action",
"stmt : DEICONIFY_FUNCTION action",
"stmt : ICONIFY_FUNCTION action",
"stmt : WARP_CURSOR",
"stmt : WARP_CURSOR win_list",
"stmt : WARP_CURSOR",
"stmt : WINDOW_RING",
"stmt : WINDOW_RING win_list",
"stmt : WINDOW_RING",
"noarg : KEYWORD",
"sarg : SKEYWORD string",
"sarg : SKEYWORD",
"narg : NKEYWORD number",
"full : EQUALS keys COLON contexts COLON action",
"fullkey : EQUALS keys COLON contextkeys COLON action",
"keys : /* empty */",
"keys : keys key",
"key : META",
"key : SHIFT",
"key : LOCK",
"key : CONTROL",
"key : META number",
"key : OR",
"contexts : /* empty */",
"contexts : contexts context",
"context : WINDOW",
"context : TITLE",
"context : ICON",
"context : ROOT",
"context : FRAME",
"context : ICONMGR",
"context : META",
"context : ALL",
"context : OR",
"contextkeys : /* empty */",
"contextkeys : contextkeys contextkey",
"contextkey : WINDOW",
"contextkey : TITLE",
"contextkey : ICON",
"contextkey : ROOT",
"contextkey : FRAME",
"contextkey : ICONMGR",
"contextkey : META",
"contextkey : ALL",
"contextkey : OR",
"contextkey : string",
"pixmap_list : LB pixmap_entries RB",
"pixmap_entries : /* empty */",
"pixmap_entries : pixmap_entries pixmap_entry",
"pixmap_entry : TITLE_HILITE string",
"cursor_list : LB cursor_entries RB",
"cursor_entries : /* empty */",
"cursor_entries : cursor_entries cursor_entry",
"cursor_entry : FRAME string string",
"cursor_entry : FRAME string",
"cursor_entry : TITLE string string",
"cursor_entry : TITLE string",
"cursor_entry : ICON string string",
"cursor_entry : ICON string",
"cursor_entry : ICONMGR string string",
"cursor_entry : ICONMGR string",
"cursor_entry : BUTTON string string",
"cursor_entry : BUTTON string",
"cursor_entry : MOVE string string",
"cursor_entry : MOVE string",
"cursor_entry : RESIZE string string",
"cursor_entry : RESIZE string",
"cursor_entry : WAITC string string",
"cursor_entry : WAITC string",
"cursor_entry : MENU string string",
"cursor_entry : MENU string",
"cursor_entry : SELECT string string",
"cursor_entry : SELECT string",
"cursor_entry : KILL string string",
"cursor_entry : KILL string",
"color_list : LB color_entries RB",
"color_entries : /* empty */",
"color_entries : color_entries color_entry",
"color_entry : CLKEYWORD string",
"color_entry : CLKEYWORD string",
"color_entry : CLKEYWORD string win_color_list",
"color_entry : CKEYWORD string",
"save_color_list : LB s_color_entries RB",
"s_color_entries : /* empty */",
"s_color_entries : s_color_entries s_color_entry",
"s_color_entry : string",
"s_color_entry : CLKEYWORD",
"win_color_list : LB win_color_entries RB",
"win_color_entries : /* empty */",
"win_color_entries : win_color_entries win_color_entry",
"win_color_entry : string string",
"squeeze : SQUEEZE_TITLE",
"squeeze : SQUEEZE_TITLE",
"squeeze : SQUEEZE_TITLE LB win_sqz_entries RB",
"squeeze : DONT_SQUEEZE_TITLE",
"squeeze : DONT_SQUEEZE_TITLE",
"squeeze : DONT_SQUEEZE_TITLE win_list",
"win_sqz_entries : /* empty */",
"win_sqz_entries : win_sqz_entries string JKEYWORD signed_number number",
"iconm_list : LB iconm_entries RB",
"iconm_entries : /* empty */",
"iconm_entries : iconm_entries iconm_entry",
"iconm_entry : string string number",
"iconm_entry : string string string number",
"workspc_list : LB workspc_entries RB",
"workspc_entries : /* empty */",
"workspc_entries : workspc_entries workspc_entry",
"workspc_entry : string",
"workspc_entry : string",
"workspc_entry : string workapp_list",
"workapp_list : LB workapp_entries RB",
"workapp_entries : /* empty */",
"workapp_entries : workapp_entries workapp_entry",
"workapp_entry : string",
"workapp_entry : string string",
"workapp_entry : string string string",
"workapp_entry : string string string string",
"workapp_entry : string string string string string",
"curwork : LB string RB",
"curwork : LB string string RB",
"curwork : LB string string string RB",
"curwork : LB string string string string RB",
"defwork : LB string RB",
"defwork : LB string string RB",
"defwork : LB string string string RB",
"defwork : LB string string string string RB",
"win_list : LB win_entries RB",
"win_entries : /* empty */",
"win_entries : win_entries win_entry",
"win_entry : string",
"occupy_list : LB occupy_entries RB",
"occupy_entries : /* empty */",
"occupy_entries : occupy_entries occupy_entry",
"occupy_entry : string",
"occupy_entry : string occupy_workspc_list",
"occupy_entry : WINDOW string",
"occupy_entry : WINDOW string occupy_workspc_list",
"occupy_entry : WORKSPACE string",
"occupy_entry : WORKSPACE string occupy_window_list",
"occupy_workspc_list : LB occupy_workspc_entries RB",
"occupy_workspc_entries : /* empty */",
"occupy_workspc_entries : occupy_workspc_entries occupy_workspc_entry",
"occupy_workspc_entry : string",
"occupy_window_list : LB occupy_window_entries RB",
"occupy_window_entries : /* empty */",
"occupy_window_entries : occupy_window_entries occupy_window_entry",
"occupy_window_entry : string",
"icon_list : LB icon_entries RB",
"icon_entries : /* empty */",
"icon_entries : icon_entries icon_entry",
"icon_entry : string string",
"function : LB function_entries RB",
"function_entries : /* empty */",
"function_entries : function_entries function_entry",
"function_entry : action",
"menu : LB menu_entries RB",
"menu_entries : /* empty */",
"menu_entries : menu_entries menu_entry",
"menu_entry : string action",
"menu_entry : string LP string COLON string RP action",
"action : FKEYWORD",
"action : FSKEYWORD string",
"signed_number : number",
"signed_number : PLUS number",
"signed_number : MINUS number",
"button : BUTTON number",
"string : STRING",
"number : NUMBER",
};
#endif /* YYDEBUG */
#define YYFLAG (-3000)
/* @(#) $Revision: 1.2 $ */
/*
** Skeleton parser driver for yacc output
*/
#if defined(NLS) && !defined(NL_SETN)
#include <msgbuf.h>
#endif
#ifndef nl_msg
#define nl_msg(i,s) (s)
#endif
/*
** yacc user known macros and defines
*/
#define YYERROR goto yyerrlab
#ifndef __RUNTIME_YYMAXDEPTH
#define YYACCEPT return(0)
#define YYABORT return(1)
#else
#define YYACCEPT {free_stacks(); return(0);}
#define YYABORT {free_stacks(); return(1);}
#endif
#define YYBACKUP( newtoken, newvalue )\
{\
if ( yychar >= 0 || ( yyr2[ yytmp ] >> 1 ) != 1 )\
{\
yyerror( (nl_msg(30001,"syntax error - cannot backup")) );\
goto yyerrlab;\
}\
yychar = newtoken;\
yystate = *yyps;\
yylval = newvalue;\
goto yynewstate;\
}
#define YYRECOVERING() (!!yyerrflag)
#ifndef YYDEBUG
# define YYDEBUG 1 /* make debugging available */
#endif
/*
** user known globals
*/
int yydebug; /* set to 1 to get debugging */
/*
** driver internal defines
*/
/* define for YYFLAG now generated by yacc program. */
/*#define YYFLAG (FLAGVAL)*/
/*
** global variables used by the parser
*/
# ifndef __RUNTIME_YYMAXDEPTH
__YYSCLASS YYSTYPE yyv[ YYMAXDEPTH ]; /* value stack */
__YYSCLASS int yys[ YYMAXDEPTH ]; /* state stack */
# else
__YYSCLASS YYSTYPE *yyv; /* pointer to malloc'ed value stack */
__YYSCLASS int *yys; /* pointer to malloc'ed stack stack */
#if defined(__STDC__) || defined (__cplusplus)
#include <stdlib.h>
#else
extern char *malloc();
extern char *realloc();
extern void free();
#endif /* __STDC__ or __cplusplus */
static int allocate_stacks();
static void free_stacks();
# ifndef YYINCREMENT
# define YYINCREMENT (YYMAXDEPTH/2) + 10
# endif
# endif /* __RUNTIME_YYMAXDEPTH */
long yymaxdepth = YYMAXDEPTH;
__YYSCLASS YYSTYPE *yypv; /* top of value stack */
__YYSCLASS int *yyps; /* top of state stack */
__YYSCLASS int yystate; /* current state */
__YYSCLASS int yytmp; /* extra var (lasts between blocks) */
int yynerrs; /* number of errors */
__YYSCLASS int yyerrflag; /* error recovery flag */
int yychar; /* current input token number */
/*
** yyparse - return 0 if worked, 1 if syntax error not recovered from
*/
int
yyparse()
{
register YYSTYPE *yypvt; /* top of value stack for $vars */
/*
** Initialize externals - yyparse may be called more than once
*/
# ifdef __RUNTIME_YYMAXDEPTH
if (allocate_stacks()) YYABORT;
# endif
yypv = &yyv[-1];
yyps = &yys[-1];
yystate = 0;
yytmp = 0;
yynerrs = 0;
yyerrflag = 0;
yychar = -1;
goto yystack;
{
register YYSTYPE *yy_pv; /* top of value stack */
register int *yy_ps; /* top of state stack */
register int yy_state; /* current state */
register int yy_n; /* internal state number info */
/*
** get globals into registers.
** branch to here only if YYBACKUP was called.
*/
yynewstate:
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
goto yy_newstate;
/*
** get globals into registers.
** either we just started, or we just finished a reduction
*/
yystack:
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
/*
** top of for (;;) loop while no reductions done
*/
yy_stack:
/*
** put a state and value onto the stacks
*/
#if YYDEBUG
/*
** if debugging, look up token value in list of value vs.
** name pairs. 0 and negative (-1) are special values.
** Note: linear search is used since time is not a real
** consideration while debugging.
*/
if ( yydebug )
{
register int yy_i;
printf( "State %d, token ", yy_state );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val == yychar )
break;
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( ++yy_ps >= &yys[ yymaxdepth ] ) /* room on stack? */
{
# ifndef __RUNTIME_YYMAXDEPTH
yyerror( (nl_msg(30002,"yacc stack overflow")) );
YYABORT;
# else
/* save old stack bases to recalculate pointers */
YYSTYPE * yyv_old = yyv;
int * yys_old = yys;
yymaxdepth += YYINCREMENT;
yys = (int *) realloc(yys, yymaxdepth * sizeof(int));
yyv = (YYSTYPE *) realloc(yyv, yymaxdepth * sizeof(YYSTYPE));
if (yys==0 || yyv==0) {
yyerror( (nl_msg(30002,"yacc stack overflow")) );
YYABORT;
}
/* Reset pointers into stack */
yy_ps = (yy_ps - yys_old) + yys;
yyps = (yyps - yys_old) + yys;
yy_pv = (yy_pv - yyv_old) + yyv;
yypv = (yypv - yyv_old) + yyv;
# endif
}
*yy_ps = yy_state;
*++yy_pv = yyval;
/*
** we have a new state - find out what to do
*/
yy_newstate:
if ( ( yy_n = yypact[ yy_state ] ) <= YYFLAG )
goto yydefault; /* simple state */
#if YYDEBUG
/*
** if debugging, need to mark whether new token grabbed
*/
yytmp = yychar < 0;
#endif
if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
yychar = 0; /* reached EOF */
#if YYDEBUG
if ( yydebug && yytmp )
{
register int yy_i;
printf( "Received token " );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val == yychar )
break;
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( ( ( yy_n += yychar ) < 0 ) || ( yy_n >= YYLAST ) )
goto yydefault;
if ( yychk[ yy_n = yyact[ yy_n ] ] == yychar ) /*valid shift*/
{
yychar = -1;
yyval = yylval;
yy_state = yy_n;
if ( yyerrflag > 0 )
yyerrflag--;
goto yy_stack;
}
yydefault:
if ( ( yy_n = yydef[ yy_state ] ) == -2 )
{
#if YYDEBUG
yytmp = yychar < 0;
#endif
if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
yychar = 0; /* reached EOF */
#if YYDEBUG
if ( yydebug && yytmp )
{
register int yy_i;
printf( "Received token " );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0;
yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val
== yychar )
{
break;
}
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
/*
** look through exception table
*/
{
register int *yyxi = yyexca;
while ( ( *yyxi != -1 ) ||
( yyxi[1] != yy_state ) )
{
yyxi += 2;
}
while ( ( *(yyxi += 2) >= 0 ) &&
( *yyxi != yychar ) )
;
if ( ( yy_n = yyxi[1] ) < 0 )
YYACCEPT;
}
}
/*
** check for syntax error
*/
if ( yy_n == 0 ) /* have an error */
{
/* no worry about speed here! */
switch ( yyerrflag )
{
case 0: /* new error */
yyerror( (nl_msg(30003,"syntax error")) );
yynerrs++;
goto skip_init;
yyerrlab:
/*
** get globals into registers.
** we have a user generated syntax type error
*/
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
yynerrs++;
skip_init:
case 1:
case 2: /* incompletely recovered error */
/* try again... */
yyerrflag = 3;
/*
** find state where "error" is a legal
** shift action
*/
while ( yy_ps >= yys )
{
yy_n = yypact[ *yy_ps ] + YYERRCODE;
if ( yy_n >= 0 && yy_n < YYLAST &&
yychk[yyact[yy_n]] == YYERRCODE) {
/*
** simulate shift of "error"
*/
yy_state = yyact[ yy_n ];
goto yy_stack;
}
/*
** current state has no shift on
** "error", pop stack
*/
#if YYDEBUG
# define _POP_ "Error recovery pops state %d, uncovers state %d\n"
if ( yydebug )
printf( _POP_, *yy_ps,
yy_ps[-1] );
# undef _POP_
#endif
yy_ps--;
yy_pv--;
}
/*
** there is no state on stack with "error" as
** a valid shift. give up.
*/
YYABORT;
case 3: /* no shift yet; eat a token */
#if YYDEBUG
/*
** if debugging, look up token in list of
** pairs. 0 and negative shouldn't occur,
** but since timing doesn't matter when
** debugging, it doesn't hurt to leave the
** tests here.
*/
if ( yydebug )
{
register int yy_i;
printf( "Error recovery discards " );
if ( yychar == 0 )
printf( "token end-of-file\n" );
else if ( yychar < 0 )
printf( "token -none-\n" );
else
{
for ( yy_i = 0;
yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val
== yychar )
{
break;
}
}
printf( "token %s\n",
yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( yychar == 0 ) /* reached EOF. quit */
YYABORT;
yychar = -1;
goto yy_newstate;
}
}/* end if ( yy_n == 0 ) */
/*
** reduction by production yy_n
** put stack tops, etc. so things right after switch
*/
#if YYDEBUG
/*
** if debugging, print the string that is the user's
** specification of the reduction which is just about
** to be done.
*/
if ( yydebug )
printf( "Reduce by (%d) \"%s\"\n",
yy_n, yyreds[ yy_n ] );
#endif
yytmp = yy_n; /* value to switch over */
yypvt = yy_pv; /* $vars top of value stack */
/*
** Look in goto table for next state
** Sorry about using yy_state here as temporary
** register variable, but why not, if it works...
** If yyr2[ yy_n ] doesn't have the low order bit
** set, then there is no action to be done for
** this reduction. So, no saving & unsaving of
** registers done. The only difference between the
** code just after the if and the body of the if is
** the goto yy_stack in the body. This way the test
** can be made before the choice of what to do is needed.
*/
{
/* length of production doubled with extra bit */
register int yy_len = yyr2[ yy_n ];
if ( !( yy_len & 01 ) )
{
yy_len >>= 1;
yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */
yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
*( yy_ps -= yy_len ) + 1;
if ( yy_state >= YYLAST ||
yychk[ yy_state =
yyact[ yy_state ] ] != -yy_n )
{
yy_state = yyact[ yypgo[ yy_n ] ];
}
goto yy_stack;
}
yy_len >>= 1;
yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */
yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
*( yy_ps -= yy_len ) + 1;
if ( yy_state >= YYLAST ||
yychk[ yy_state = yyact[ yy_state ] ] != -yy_n )
{
yy_state = yyact[ yypgo[ yy_n ] ];
}
}
/* save until reenter driver code */
yystate = yy_state;
yyps = yy_ps;
yypv = yy_pv;
}
/*
** code supplied by user is placed in this switch
*/
switch( yytmp )
{
case 9:
# line 123 "gram.y"
{
(void) AddIconRegion(yypvt[-4].ptr, yypvt[-3].num, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
} break;
case 10:
# line 126 "gram.y"
{
list = AddIconRegion(yypvt[-4].ptr, yypvt[-3].num, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
} break;
case 12:
# line 130 "gram.y"
{ if (Scr->FirstTime)
{
Scr->iconmgr->geometry= yypvt[-1].ptr;
Scr->iconmgr->columns=yypvt[-0].num;
}
} break;
case 13:
# line 136 "gram.y"
{ if (Scr->FirstTime)
Scr->iconmgr->geometry = yypvt[-0].ptr;
} break;
case 14:
# line 139 "gram.y"
{ if (Scr->FirstTime)
{
Scr->workSpaceMgr.workspaceWindow.geometry= yypvt[-1].ptr;
Scr->workSpaceMgr.workspaceWindow.columns=yypvt[-0].num;
}
} break;
case 15:
# line 145 "gram.y"
{ if (Scr->FirstTime)
Scr->workSpaceMgr.workspaceWindow.geometry = yypvt[-0].ptr;
} break;
case 16:
# line 148 "gram.y"
{} break;
case 18:
# line 151 "gram.y"
{} break;
case 20:
# line 154 "gram.y"
{ if (Scr->FirstTime)
{
Scr->DoZoom = TRUE;
Scr->ZoomCount = yypvt[-0].num;
}
} break;
case 21:
# line 160 "gram.y"
{ if (Scr->FirstTime)
Scr->DoZoom = TRUE; } break;
case 22:
# line 162 "gram.y"
{} break;
case 23:
# line 163 "gram.y"
{} break;
case 24:
# line 164 "gram.y"
{ list = &Scr->IconifyByUn; } break;
case 26:
# line 166 "gram.y"
{ if (Scr->FirstTime)
Scr->IconifyByUnmapping = TRUE; } break;
case 27:
# line 169 "gram.y"
{ list = &Scr->OpaqueMoveList; } break;
case 29:
# line 171 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueMove = TRUE; } break;
case 30:
# line 172 "gram.y"
{ list = &Scr->NoOpaqueMoveList; } break;
case 32:
# line 174 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueMove = FALSE; } break;
case 33:
# line 175 "gram.y"
{ list = &Scr->OpaqueMoveList; } break;
case 35:
# line 177 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueResize = TRUE; } break;
case 36:
# line 178 "gram.y"
{ list = &Scr->NoOpaqueResizeList; } break;
case 38:
# line 180 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueResize = FALSE; } break;
case 39:
# line 182 "gram.y"
{
GotTitleButton (yypvt[-2].ptr, yypvt[-0].num, False);
} break;
case 40:
# line 185 "gram.y"
{
GotTitleButton (yypvt[-2].ptr, yypvt[-0].num, True);
} break;
case 41:
# line 188 "gram.y"
{
root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR);
AddFuncButton (yypvt[-1].num, C_ROOT, 0, F_MENU, root, (MenuItem*) 0);
} break;
case 42:
# line 192 "gram.y"
{
if (yypvt[-0].num == F_MENU) {
pull->prev = NULL;
AddFuncButton (yypvt[-1].num, C_ROOT, 0, yypvt[-0].num, pull, (MenuItem*) 0);
}
else {
MenuItem *item;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
item = AddToMenu (root, "x", Action,
NULLSTR, yypvt[-0].num, NULLSTR, NULLSTR);
AddFuncButton (yypvt[-1].num, C_ROOT, 0, yypvt[-0].num, (MenuRoot*) 0, item);
}
Action = "";
pull = NULL;
} break;
case 43:
# line 208 "gram.y"
{ GotKey(yypvt[-1].ptr, yypvt[-0].num); } break;
case 44:
# line 209 "gram.y"
{ GotButton(yypvt[-1].num, yypvt[-0].num); } break;
case 45:
# line 211 "gram.y"
{ list = &Scr->DontIconify; } break;
case 47:
# line 213 "gram.y"
{} break;
case 49:
# line 215 "gram.y"
{ list = &Scr->OccupyAll; } break;
case 51:
# line 217 "gram.y"
{} break;
case 53:
# line 219 "gram.y"
{ list = &Scr->IconMgrNoShow; } break;
case 55:
# line 221 "gram.y"
{ Scr->IconManagerDontShow = TRUE; } break;
case 56:
# line 222 "gram.y"
{ list = &Scr->IconMgrs; } break;
case 58:
# line 224 "gram.y"
{ list = &Scr->IconMgrShow; } break;
case 60:
# line 226 "gram.y"
{ list = &Scr->NoTitleHighlight; } break;
case 62:
# line 228 "gram.y"
{ if (Scr->FirstTime)
Scr->TitleHighlight = FALSE; } break;
case 63:
# line 230 "gram.y"
{ list = &Scr->NoHighlight; } break;
case 65:
# line 232 "gram.y"
{ if (Scr->FirstTime)
Scr->Highlight = FALSE; } break;
case 66:
# line 234 "gram.y"
{ list = &Scr->NoStackModeL; } break;
case 68:
# line 236 "gram.y"
{ if (Scr->FirstTime)
Scr->StackMode = FALSE; } break;
case 69:
# line 238 "gram.y"
{ list = &Scr->NoBorder; } break;
case 71:
# line 240 "gram.y"
{ list = &Scr->NoIconTitle; } break;
case 73:
# line 242 "gram.y"
{ if (Scr->FirstTime)
Scr->NoIconTitlebar = TRUE; } break;
case 74:
# line 244 "gram.y"
{ list = &Scr->NoTitle; } break;
case 76:
# line 246 "gram.y"
{ if (Scr->FirstTime)
Scr->NoTitlebar = TRUE; } break;
case 77:
# line 248 "gram.y"
{ list = &Scr->MakeTitle; } break;
case 79:
# line 250 "gram.y"
{ list = &Scr->StartIconified; } break;
case 81:
# line 252 "gram.y"
{ list = &Scr->AutoRaise; } break;
case 83:
# line 254 "gram.y"
{ Scr->AutoRaiseDefault = TRUE; } break;
case 84:
# line 255 "gram.y"
{
root = GetRoot(yypvt[-5].ptr, yypvt[-3].ptr, yypvt[-1].ptr); } break;
case 85:
# line 257 "gram.y"
{ root->real_menu = TRUE;} break;
case 86:
# line 258 "gram.y"
{ root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR); } break;
case 87:
# line 259 "gram.y"
{ root->real_menu = TRUE; } break;
case 88:
# line 260 "gram.y"
{ root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR); } break;
case 90:
# line 262 "gram.y"
{ list = &Scr->IconNames; } break;
case 92:
# line 264 "gram.y"
{ color = COLOR; } break;
case 94:
# line 266 "gram.y"
{} break;
case 96:
# line 268 "gram.y"
{ color = MONOCHROME; } break;
case 98:
# line 270 "gram.y"
{ Scr->DefaultFunction.func = yypvt[-0].num;
if (yypvt[-0].num == F_MENU)
{
pull->prev = NULL;
Scr->DefaultFunction.menu = pull;
}
else
{
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->DefaultFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
}
Action = "";
pull = NULL;
} break;
case 99:
# line 286 "gram.y"
{ Scr->WindowFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->WindowFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 100:
# line 294 "gram.y"
{ Scr->ChangeWorkspaceFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->ChangeWorkspaceFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 101:
# line 302 "gram.y"
{ Scr->DeIconifyFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->DeIconifyFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 102:
# line 310 "gram.y"
{ Scr->IconifyFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->IconifyFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 103:
# line 318 "gram.y"
{ list = &Scr->WarpCursorL; } break;
case 105:
# line 320 "gram.y"
{ if (Scr->FirstTime)
Scr->WarpCursor = TRUE; } break;
case 106:
# line 322 "gram.y"
{ list = &Scr->WindowRingL; } break;
case 108:
# line 324 "gram.y"
{ Scr->WindowRingAll = TRUE; } break;
case 109:
# line 327 "gram.y"
{ if (!do_single_keyword (yypvt[-0].num)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown singleton keyword %d\n",
yypvt[-0].num);
ParseError = 1;
}
} break;
case 110:
# line 337 "gram.y"
{ if (!do_string_keyword (yypvt[-1].num, yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown string keyword %d (value \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 111:
# line 345 "gram.y"
{ if (!do_string_keyword (yypvt[-0].num, defstring)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown string keyword %d (no value)\n",
yypvt[-0].num);
ParseError = 1;
}
} break;
case 112:
# line 355 "gram.y"
{ if (!do_number_keyword (yypvt[-1].num, yypvt[-0].num)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown numeric keyword %d (value %d)\n",
yypvt[-1].num, yypvt[-0].num);
ParseError = 1;
}
} break;
case 113:
# line 367 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 114:
# line 370 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 117:
# line 377 "gram.y"
{ mods |= Mod1Mask; } break;
case 118:
# line 378 "gram.y"
{ mods |= ShiftMask; } break;
case 119:
# line 379 "gram.y"
{ mods |= LockMask; } break;
case 120:
# line 380 "gram.y"
{ mods |= ControlMask; } break;
case 121:
# line 381 "gram.y"
{ if (yypvt[-0].num < 1 || yypvt[-0].num > 5) {
twmrc_error_prefix();
fprintf (stderr,
"bad modifier number (%d), must be 1-5\n",
yypvt[-0].num);
ParseError = 1;
} else {
mods |= (Mod1Mask << (yypvt[-0].num - 1));
}
} break;
case 122:
# line 391 "gram.y"
{ } break;
case 125:
# line 398 "gram.y"
{ cont |= C_WINDOW_BIT; } break;
case 126:
# line 399 "gram.y"
{ cont |= C_TITLE_BIT; } break;
case 127:
# line 400 "gram.y"
{ cont |= C_ICON_BIT; } break;
case 128:
# line 401 "gram.y"
{ cont |= C_ROOT_BIT; } break;
case 129:
# line 402 "gram.y"
{ cont |= C_FRAME_BIT; } break;
case 130:
# line 403 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 131:
# line 404 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 132:
# line 405 "gram.y"
{ cont |= C_ALL_BITS; } break;
case 133:
# line 406 "gram.y"
{ } break;
case 136:
# line 413 "gram.y"
{ cont |= C_WINDOW_BIT; } break;
case 137:
# line 414 "gram.y"
{ cont |= C_TITLE_BIT; } break;
case 138:
# line 415 "gram.y"
{ cont |= C_ICON_BIT; } break;
case 139:
# line 416 "gram.y"
{ cont |= C_ROOT_BIT; } break;
case 140:
# line 417 "gram.y"
{ cont |= C_FRAME_BIT; } break;
case 141:
# line 418 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 142:
# line 419 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 143:
# line 420 "gram.y"
{ cont |= C_ALL_BITS; } break;
case 144:
# line 421 "gram.y"
{ } break;
case 145:
# line 422 "gram.y"
{ Name = yypvt[-0].ptr; cont |= C_NAME_BIT; } break;
case 146:
# line 426 "gram.y"
{} break;
case 149:
# line 433 "gram.y"
{ SetHighlightPixmap (yypvt[-0].ptr); } break;
case 150:
# line 437 "gram.y"
{} break;
case 153:
# line 444 "gram.y"
{
NewBitmapCursor(&Scr->FrameCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 154:
# line 446 "gram.y"
{
NewFontCursor(&Scr->FrameCursor, yypvt[-0].ptr); } break;
case 155:
# line 448 "gram.y"
{
NewBitmapCursor(&Scr->TitleCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 156:
# line 450 "gram.y"
{
NewFontCursor(&Scr->TitleCursor, yypvt[-0].ptr); } break;
case 157:
# line 452 "gram.y"
{
NewBitmapCursor(&Scr->IconCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 158:
# line 454 "gram.y"
{
NewFontCursor(&Scr->IconCursor, yypvt[-0].ptr); } break;
case 159:
# line 456 "gram.y"
{
NewBitmapCursor(&Scr->IconMgrCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 160:
# line 458 "gram.y"
{
NewFontCursor(&Scr->IconMgrCursor, yypvt[-0].ptr); } break;
case 161:
# line 460 "gram.y"
{
NewBitmapCursor(&Scr->ButtonCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 162:
# line 462 "gram.y"
{
NewFontCursor(&Scr->ButtonCursor, yypvt[-0].ptr); } break;
case 163:
# line 464 "gram.y"
{
NewBitmapCursor(&Scr->MoveCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 164:
# line 466 "gram.y"
{
NewFontCursor(&Scr->MoveCursor, yypvt[-0].ptr); } break;
case 165:
# line 468 "gram.y"
{
NewBitmapCursor(&Scr->ResizeCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 166:
# line 470 "gram.y"
{
NewFontCursor(&Scr->ResizeCursor, yypvt[-0].ptr); } break;
case 167:
# line 472 "gram.y"
{
NewBitmapCursor(&Scr->WaitCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 168:
# line 474 "gram.y"
{
NewFontCursor(&Scr->WaitCursor, yypvt[-0].ptr); } break;
case 169:
# line 476 "gram.y"
{
NewBitmapCursor(&Scr->MenuCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 170:
# line 478 "gram.y"
{
NewFontCursor(&Scr->MenuCursor, yypvt[-0].ptr); } break;
case 171:
# line 480 "gram.y"
{
NewBitmapCursor(&Scr->SelectCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 172:
# line 482 "gram.y"
{
NewFontCursor(&Scr->SelectCursor, yypvt[-0].ptr); } break;
case 173:
# line 484 "gram.y"
{
NewBitmapCursor(&Scr->DestroyCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 174:
# line 486 "gram.y"
{
NewFontCursor(&Scr->DestroyCursor, yypvt[-0].ptr); } break;
case 175:
# line 490 "gram.y"
{} break;
case 178:
# line 498 "gram.y"
{ if (!do_colorlist_keyword (yypvt[-1].num, color,
yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled list color keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 179:
# line 507 "gram.y"
{ list = do_colorlist_keyword(yypvt[-1].num,color,
yypvt[-0].ptr);
if (!list) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled color list keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 181:
# line 518 "gram.y"
{ if (!do_color_keyword (yypvt[-1].num, color,
yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled color keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 182:
# line 529 "gram.y"
{} break;
case 185:
# line 536 "gram.y"
{ do_string_savecolor(color, yypvt[-0].ptr); } break;
case 186:
# line 537 "gram.y"
{ do_var_savecolor(yypvt[-0].num); } break;
case 187:
# line 540 "gram.y"
{} break;
case 190:
# line 547 "gram.y"
{ if (Scr->FirstTime &&
color == Scr->Monochrome)
AddToList(list, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 191:
# line 552 "gram.y"
{
if (HasShape) Scr->SqueezeTitle = TRUE;
} break;
case 192:
# line 555 "gram.y"
{ list = &Scr->SqueezeTitleL;
if (HasShape && Scr->SqueezeTitle == -1)
Scr->SqueezeTitle = TRUE;
} break;
case 194:
# line 560 "gram.y"
{ Scr->SqueezeTitle = FALSE; } break;
case 195:
# line 561 "gram.y"
{ list = &Scr->DontSqueezeTitleL; } break;
case 198:
# line 566 "gram.y"
{
if (Scr->FirstTime) {
do_squeeze_entry (list, yypvt[-3].ptr, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
}
} break;
case 199:
# line 574 "gram.y"
{} break;
case 202:
# line 581 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-2].ptr, (char *)
AllocateIconManager(yypvt[-2].ptr, NULLSTR,
yypvt[-1].ptr,yypvt[-0].num));
} break;
case 203:
# line 587 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-3].ptr, (char *)
AllocateIconManager(yypvt[-3].ptr,yypvt[-2].ptr,
yypvt[-1].ptr, yypvt[-0].num));
} break;
case 204:
# line 594 "gram.y"
{} break;
case 207:
# line 601 "gram.y"
{
AddWorkSpace (yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR, NULLSTR, NULLSTR);
} break;
case 208:
# line 604 "gram.y"
{
curWorkSpc = yypvt[-0].ptr;
} break;
case 210:
# line 610 "gram.y"
{} break;
case 213:
# line 617 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR, NULLSTR);
} break;
case 214:
# line 620 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR);
} break;
case 215:
# line 623 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR, NULLSTR);
} break;
case 216:
# line 626 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR);
} break;
case 217:
# line 629 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr);
} break;
case 218:
# line 634 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-1].ptr, NULL, NULL, NULL);
} break;
case 219:
# line 637 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-2].ptr, yypvt[-1].ptr, NULL, NULL);
} break;
case 220:
# line 640 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, NULL);
} break;
case 221:
# line 643 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr);
} break;
case 222:
# line 648 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-1].ptr, NULL, NULL, NULL);
} break;
case 223:
# line 651 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-2].ptr, yypvt[-1].ptr, NULL, NULL);
} break;
case 224:
# line 654 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, NULL);
} break;
case 225:
# line 657 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr);
} break;
case 226:
# line 662 "gram.y"
{} break;
case 229:
# line 669 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-0].ptr, 0);
} break;
case 230:
# line 674 "gram.y"
{} break;
case 233:
# line 681 "gram.y"
{client = yypvt[-0].ptr;} break;
case 235:
# line 683 "gram.y"
{client = yypvt[-0].ptr;} break;
case 237:
# line 685 "gram.y"
{workspace = yypvt[-0].ptr;} break;
case 239:
# line 689 "gram.y"
{} break;
case 242:
# line 696 "gram.y"
{
AddToClientsList (yypvt[-0].ptr, client);
} break;
case 243:
# line 700 "gram.y"
{} break;
case 246:
# line 707 "gram.y"
{
AddToClientsList (workspace, yypvt[-0].ptr);
} break;
case 247:
# line 711 "gram.y"
{} break;
case 250:
# line 718 "gram.y"
{ if (Scr->FirstTime) AddToList(list, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 251:
# line 721 "gram.y"
{} break;
case 254:
# line 728 "gram.y"
{ AddToMenu(root, "", Action, NULLSTR, yypvt[-0].num,
NULLSTR, NULLSTR);
Action = "";
} break;
case 255:
# line 734 "gram.y"
{lastmenuitem = (MenuItem*) 0;} break;
case 258:
# line 741 "gram.y"
{
if (yypvt[-0].num == F_SEPARATOR) {
if (lastmenuitem) lastmenuitem->separated = 1;
}
else {
lastmenuitem = AddToMenu(root, yypvt[-1].ptr, Action, pull, yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
}
} break;
case 259:
# line 751 "gram.y"
{
if (yypvt[-0].num == F_SEPARATOR) {
if (lastmenuitem) lastmenuitem->separated = 1;
}
else {
lastmenuitem = AddToMenu(root, yypvt[-6].ptr, Action, pull, yypvt[-0].num, yypvt[-4].ptr, yypvt[-2].ptr);
Action = "";
pull = NULL;
}
} break;
case 260:
# line 763 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 261:
# line 764 "gram.y"
{
yyval.num = yypvt[-1].num;
Action = yypvt[-0].ptr;
switch (yypvt[-1].num) {
case F_MENU:
pull = GetRoot (yypvt[-0].ptr, NULLSTR,NULLSTR);
pull->prev = root;
break;
case F_WARPRING:
if (!CheckWarpRingArg (Action)) {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.warptoring argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
case F_WARPTOSCREEN:
if (!CheckWarpScreenArg (Action)) {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.warptoscreen argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
break;
case F_COLORMAP:
if (CheckColormapArg (Action)) {
yyval.num = F_COLORMAP;
} else {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.colormap argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
break;
} /* end switch */
} break;
case 262:
# line 805 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 263:
# line 806 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 264:
# line 807 "gram.y"
{ yyval.num = -(yypvt[-0].num); } break;
case 265:
# line 810 "gram.y"
{ yyval.num = yypvt[-0].num;
if (yypvt[-0].num == 0)
yyerror("bad button 0");
if (yypvt[-0].num > MAX_BUTTONS)
{
yyval.num = 0;
yyerror("button number too large");
}
} break;
case 266:
# line 822 "gram.y"
{ ptr = (char *)malloc(strlen(yypvt[-0].ptr)+1);
strcpy(ptr, yypvt[-0].ptr);
RemoveDQuote(ptr);
yyval.ptr = ptr;
} break;
case 267:
# line 827 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
}
goto yystack; /* reset registers in driver code */
}
# ifdef __RUNTIME_YYMAXDEPTH
static int allocate_stacks() {
/* allocate the yys and yyv stacks */
yys = (int *) malloc(yymaxdepth * sizeof(int));
yyv = (YYSTYPE *) malloc(yymaxdepth * sizeof(YYSTYPE));
if (yys==0 || yyv==0) {
yyerror( (nl_msg(30004,"unable to allocate space for yacc stacks")) );
return(1);
}
else return(0);
}
static void free_stacks() {
if (yys!=0) free((char *) yys);
if (yyv!=0) free((char *) yyv);
}
# endif /* defined(__RUNTIME_YYMAXDEPTH) */
# line 43 "gram.y"
#include <stdio.h>
#include <ctype.h>
#include "twm.h"
#include "menus.h"
#include "icons.h"
#include "list.h"
#include "util.h"
#include "screen.h"
#include "parse.h"
#include <X11/Xos.h>
#include <X11/Xmu/CharSet.h>
static char *Action = "";
static char *Name = "";
static char *defstring = "default";
static MenuRoot *root, *pull = NULL;
static char *curWorkSpc;
static char *client, *workspace;
static MenuItem *lastmenuitem = (MenuItem*) 0;
static MenuRoot *GetRoot();
static Bool CheckWarpScreenArg(), CheckWarpRingArg();
static Bool CheckColormapArg();
static void GotButton(), GotKey(), GotTitleButton();
static char *ptr;
static name_list **list;
static int cont = 0;
static int color;
int mods = 0;
unsigned int mods_used = (ShiftMask | ControlMask | Mod1Mask);
extern int do_single_keyword(), do_string_keyword(), do_number_keyword();
extern name_list **do_colorlist_keyword();
extern int do_color_keyword(), do_string_savecolor();
extern int yylineno;
# line 81 "gram.y"
typedef union
{
int num;
char *ptr;
} YYSTYPE;
#ifdef __cplusplus
# include <stdio.h>
# include <yacc.h>
#endif /* __cplusplus */
# define LB 257
# define RB 258
# define LP 259
# define RP 260
# define MENUS 261
# define MENU 262
# define BUTTON 263
# define DEFAULT_FUNCTION 264
# define PLUS 265
# define MINUS 266
# define ALL 267
# define OR 268
# define CURSORS 269
# define PIXMAPS 270
# define ICONS 271
# define COLOR 272
# define SAVECOLOR 273
# define MONOCHROME 274
# define FUNCTION 275
# define ICONMGR_SHOW 276
# define ICONMGR 277
# define WINDOW_FUNCTION 278
# define ZOOM 279
# define ICONMGRS 280
# define ICONMGR_GEOMETRY 281
# define ICONMGR_NOSHOW 282
# define MAKE_TITLE 283
# define ICONIFY_BY_UNMAPPING 284
# define DONT_ICONIFY_BY_UNMAPPING 285
# define NO_BORDER 286
# define NO_ICON_TITLE 287
# define NO_TITLE 288
# define AUTO_RAISE 289
# define NO_HILITE 290
# define ICON_REGION 291
# define META 292
# define SHIFT 293
# define LOCK 294
# define CONTROL 295
# define WINDOW 296
# define TITLE 297
# define ICON 298
# define ROOT 299
# define FRAME 300
# define COLON 301
# define EQUALS 302
# define SQUEEZE_TITLE 303
# define DONT_SQUEEZE_TITLE 304
# define START_ICONIFIED 305
# define NO_TITLE_HILITE 306
# define TITLE_HILITE 307
# define MOVE 308
# define RESIZE 309
# define WAITC 310
# define SELECT 311
# define KILL 312
# define LEFT_TITLEBUTTON 313
# define RIGHT_TITLEBUTTON 314
# define NUMBER 315
# define KEYWORD 316
# define NKEYWORD 317
# define CKEYWORD 318
# define CLKEYWORD 319
# define FKEYWORD 320
# define FSKEYWORD 321
# define SKEYWORD 322
# define DKEYWORD 323
# define JKEYWORD 324
# define WINDOW_RING 325
# define WARP_CURSOR 326
# define ERRORTOKEN 327
# define NO_STACKMODE 328
# define WORKSPACE 329
# define WORKSPACES 330
# define WORKSPCMGR_GEOMETRY 331
# define OCCUPYALL 332
# define OCCUPYLIST 333
# define MAPWINDOWCURRENTWORKSPACE 334
# define MAPWINDOWDEFAULTWORKSPACE 335
# define OPAQUEMOVE 336
# define NOOPAQUEMOVE 337
# define OPAQUERESIZE 338
# define NOOPAQUERESIZE 339
# define CHANGE_WORKSPACE_FUNCTION 340
# define DEICONIFY_FUNCTION 341
# define ICONIFY_FUNCTION 342
# define STRING 343
#define yyclearin yychar = -1
#define yyerrok yyerrflag = 0
extern int yychar;
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 150
#endif
/* __YYSCLASS defines the scoping/storage class for global objects
* that are NOT renamed by the -p option. By default these names
* are going to be 'static' so that multi-definition errors
* will not occur with multiple parsers.
* If you want (unsupported) access to internal names you need
* to define this to be null so it implies 'extern' scope.
* This should not be used in conjunction with -p.
*/
#ifndef __YYSCLASS
# define __YYSCLASS static
#endif
YYSTYPE yylval;
__YYSCLASS YYSTYPE yyval;
typedef int yytabelem;
# define YYERRCODE 256
# line 845 "gram.y"
yyerror(s) char *s;
{
twmrc_error_prefix();
fprintf (stderr, "error in input file: %s\n", s ? s : "");
ParseError = 1;
}
RemoveDQuote(str)
char *str;
{
register char *i, *o;
register n;
register count;
for (i=str+1, o=str; *i && *i != '\"'; o++)
{
if (*i == '\\')
{
switch (*++i)
{
case 'n':
*o = '\n';
i++;
break;
case 'b':
*o = '\b';
i++;
break;
case 'r':
*o = '\r';
i++;
break;
case 't':
*o = '\t';
i++;
break;
case 'f':
*o = '\f';
i++;
break;
case '0':
if (*++i == 'x')
goto hex;
else
--i;
case '1': case '2': case '3':
case '4': case '5': case '6': case '7':
n = 0;
count = 0;
while (*i >= '0' && *i <= '7' && count < 3)
{
n = (n<<3) + (*i++ - '0');
count++;
}
*o = n;
break;
hex:
case 'x':
n = 0;
count = 0;
while (i++, count++ < 2)
{
if (*i >= '0' && *i <= '9')
n = (n<<4) + (*i - '0');
else if (*i >= 'a' && *i <= 'f')
n = (n<<4) + (*i - 'a') + 10;
else if (*i >= 'A' && *i <= 'F')
n = (n<<4) + (*i - 'A') + 10;
else
break;
}
*o = n;
break;
case '\n':
i++; /* punt */
o--; /* to account for o++ at end of loop */
break;
case '\"':
case '\'':
case '\\':
default:
*o = *i++;
break;
}
}
else
*o = *i++;
}
*o = '\0';
}
static MenuRoot *GetRoot(name, fore, back)
char *name;
char *fore, *back;
{
MenuRoot *tmp;
tmp = FindMenuRoot(name);
if (tmp == NULL)
tmp = NewMenuRoot(name);
if (fore)
{
int save;
save = Scr->FirstTime;
Scr->FirstTime = TRUE;
GetColor(COLOR, &tmp->highlight.fore, fore);
GetColor(COLOR, &tmp->highlight.back, back);
Scr->FirstTime = save;
}
return tmp;
}
static void GotButton (butt, func)
int butt, func;
{
int i;
MenuRoot *menu;
MenuItem *item;
for (i = 0; i < NUM_CONTEXTS; i++) {
if ((cont & (1 << i)) == 0) continue;
if (func == F_MENU) {
pull->prev = NULL;
AddFuncButton (butt, i, mods, func, pull, (MenuItem*) 0);
}
else {
root = GetRoot (TWM_ROOT, NULLSTR, NULLSTR);
item = AddToMenu (root, "x", Action, NULLSTR, func, NULLSTR, NULLSTR);
AddFuncButton (butt, i, mods, func, (MenuRoot*) 0, item);
}
}
Action = "";
pull = NULL;
cont = 0;
mods_used |= mods;
mods = 0;
}
static void GotKey(key, func)
char *key;
int func;
{
int i;
for (i = 0; i < NUM_CONTEXTS; i++)
{
if ((cont & (1 << i)) == 0)
continue;
if (func == F_MENU) {
pull->prev = NULL;
if (!AddFuncKey (key, i, mods, func, pull, Name, Action)) break;
}
else
if (!AddFuncKey(key, i, mods, func, (MenuRoot*) 0, Name, Action))
break;
}
Action = "";
pull = NULL;
cont = 0;
mods_used |= mods;
mods = 0;
}
static void GotTitleButton (bitmapname, func, rightside)
char *bitmapname;
int func;
Bool rightside;
{
if (!CreateTitleButton (bitmapname, func, Action, pull, rightside, True)) {
twmrc_error_prefix();
fprintf (stderr,
"unable to create %s titlebutton \"%s\"\n",
rightside ? "right" : "left", bitmapname);
}
Action = "";
pull = NULL;
}
static Bool CheckWarpScreenArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, WARPSCREEN_NEXT) == 0 ||
strcmp (s, WARPSCREEN_PREV) == 0 ||
strcmp (s, WARPSCREEN_BACK) == 0)
return True;
for (; *s && isascii(*s) && isdigit(*s); s++) ; /* SUPPRESS 530 */
return (*s ? False : True);
}
static Bool CheckWarpRingArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, WARPSCREEN_NEXT) == 0 ||
strcmp (s, WARPSCREEN_PREV) == 0)
return True;
return False;
}
static Bool CheckColormapArg (s)
register char *s;
{
XmuCopyISOLatin1Lowered (s, s);
if (strcmp (s, COLORMAP_NEXT) == 0 ||
strcmp (s, COLORMAP_PREV) == 0 ||
strcmp (s, COLORMAP_DEFAULT) == 0)
return True;
return False;
}
twmrc_error_prefix ()
{
fprintf (stderr, "%s: line %d: ", ProgramName, yylineno);
}
__YYSCLASS yytabelem yyexca[] ={
-1, 1,
0, -1,
-2, 0,
-1, 2,
0, 1,
-2, 0,
-1, 17,
257, 24,
-2, 26,
-1, 18,
257, 27,
-2, 29,
-1, 19,
257, 30,
-2, 32,
-1, 20,
257, 33,
-2, 35,
-1, 21,
257, 36,
-2, 38,
-1, 30,
257, 57,
-2, 59,
-1, 33,
257, 64,
-2, 66,
-1, 34,
257, 67,
-2, 69,
-1, 35,
257, 70,
-2, 72,
-1, 37,
257, 75,
-2, 77,
-1, 38,
257, 78,
-2, 80,
-1, 41,
257, 85,
-2, 87,
-1, 53,
257, 107,
-2, 109,
-1, 54,
257, 110,
-2, 112,
-1, 58,
257, 200,
-2, 199,
-1, 59,
257, 203,
-2, 202,
-1, 248,
257, 216,
-2, 215,
-1, 273,
257, 10,
-2, 9,
-1, 328,
257, 187,
-2, 186,
};
# define YYNPROD 276
# define YYLAST 548
__YYSCLASS yytabelem yyact[]={
25, 81, 214, 312, 313, 341, 61, 330, 85, 349,
62, 63, 64, 310, 68, 177, 122, 83, 84, 353,
354, 139, 68, 78, 79, 80, 83, 84, 311, 387,
383, 375, 305, 306, 307, 308, 309, 303, 391, 137,
249, 372, 61, 104, 105, 87, 180, 380, 336, 61,
110, 111, 112, 113, 114, 347, 257, 117, 289, 357,
334, 356, 332, 60, 163, 215, 368, 363, 342, 68,
83, 84, 67, 132, 4, 198, 322, 267, 252, 61,
42, 60, 48, 321, 276, 141, 274, 16, 15, 44,
45, 46, 47, 43, 32, 182, 49, 14, 31, 10,
30, 39, 17, 26, 36, 37, 38, 41, 34, 9,
324, 253, 24, 271, 61, 61, 61, 260, 254, 246,
239, 58, 59, 40, 33, 61, 61, 178, 340, 179,
118, 22, 23, 121, 55, 57, 123, 124, 270, 197,
56, 200, 217, 54, 53, 61, 35, 61, 27, 11,
28, 29, 12, 13, 18, 19, 20, 21, 50, 51,
52, 61, 61, 225, 213, 168, 223, 199, 61, 61,
175, 61, 83, 84, 169, 171, 167, 152, 149, 224,
226, 263, 146, 227, 128, 126, 228, 229, 230, 231,
232, 233, 234, 235, 236, 237, 238, 241, 61, 72,
70, 258, 61, 61, 61, 61, 325, 259, 142, 261,
218, 248, 251, 256, 384, 131, 201, 378, 376, 262,
360, 269, 272, 362, 344, 275, 343, 277, 316, 278,
279, 280, 281, 282, 283, 284, 285, 286, 287, 288,
250, 266, 265, 211, 240, 196, 314, 373, 61, 359,
222, 61, 339, 317, 318, 301, 302, 319, 320, 323,
315, 326, 247, 327, 210, 299, 328, 329, 255, 212,
120, 221, 119, 388, 208, 172, 333, 244, 335, 381,
300, 268, 220, 367, 294, 295, 296, 297, 298, 292,
133, 134, 135, 136, 337, 273, 143, 208, 204, 205,
206, 207, 350, 264, 144, 338, 147, 209, 150, 219,
153, 154, 155, 156, 157, 158, 159, 160, 161, 162,
346, 204, 205, 206, 207, 348, 184, 130, 181, 129,
202, 173, 174, 290, 242, 304, 176, 293, 358, 203,
245, 243, 116, 115, 109, 170, 108, 183, 107, 361,
366, 193, 189, 166, 106, 291, 216, 165, 164, 365,
374, 377, 103, 102, 101, 100, 188, 99, 379, 98,
97, 96, 95, 94, 151, 382, 93, 92, 148, 385,
91, 386, 389, 390, 90, 145, 186, 187, 89, 185,
392, 393, 345, 394, 395, 88, 140, 190, 191, 192,
194, 195, 138, 352, 77, 76, 75, 74, 73, 71,
69, 127, 66, 125, 65, 331, 8, 7, 6, 364,
5, 3, 2, 1, 369, 86, 370, 371, 82, 351,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 355 };
__YYSCLASS yytabelem yypact[]={
-3000, -3000, -182, -3000, -3000, -3000, -3000, -3000, -3000, -337,
-337, -337, -3000, -3000, -293, -57, -58, -3000, -3000, -3000,
-3000, -3000, -337, -337, -294, -257, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -337, -337, -3000, -3000, -3000, -3000, -303, -303,
-303, -303, -303, -3000, -3000, -3000, -337, -293, -3000, -3000,
-293, -3000, -307, -293, -293, -72, -73, -3000, -3000, -3000,
-3000, -3000, -3000, -184, -184, -184, -184, -184, -263, -281,
-3000, -3000, -3000, -3000, -337, -3000, -3000, -3000, -184, -75,
-184, -79, -184, -80, -184, -184, -184, -184, -184, -184,
-184, -184, -184, -184, -195, -3000, -81, -83, -82, -83,
-3000, -3000, -3000, -3000, -3000, -184, -184, -3000, -3000, -87,
-184, -3000, -308, -3000, -3000, -3000, -337, -3000, -337, -212,
89, -3000, -3000, -3000, -3000, -3000, -3000, -303, -90, -303,
-90, -3000, 29, 6, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -337, -192, -115, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -293, -92, -95,
-3000, -3000, -337, -3000, -3000, -337, -337, -337, -337, -337,
-337, -337, -337, -337, -337, -337, -138, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -293, -3000, -3000, -3000, -3000, -3000,
-139, -218, -140, -245, -3000, -3000, -3000, -3000, -141, -77,
-181, -145, -293, -3000, -172, -3000, -174, -3000, -337, -337,
-337, -337, -337, -337, -337, -337, -337, -337, -337, -3000,
-3000, -3000, -200, -12, -3000, -264, -3000, -3000, -3000, -3000,
-3000, -3000, -337, -337, -3000, -3000, -337, -337, -175, -148,
-3000, -3000, -337, -3000, -3000, -337, -337, -3000, -3000, -3000,
-3000, -3000, -317, -3000, -3000, -196, -3000, -198, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -253, -303, -3000, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -303, -3000, -3000, -3000, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -3000, -129, -189, -3000, -3000, -301,
-205, -3000, -3000, -250, -3000, -3000, -3000, -3000, -3000, -3000,
-246, -184, -3000, -197, -3000, -199, -303, -3000, -3000, -3000,
-3000, -3000, -3000, -189, -190, -3000, -293, -3000, -3000, -337,
-191, -293, -3000, -293, -293, -3000, -3000, -3000, -3000, -217,
-227, -3000, -3000, -3000, -3000, -192, -254, -3000, -3000, -3000,
-3000, -3000, -3000, -3000, -337, -3000, -3000, -3000, -228, -3000,
-337, -229, -337, -3000, -3000, -3000, -222, -3000, -3000, -337,
-337, -303, -3000, -337, -3000, -3000 };
__YYSCLASS yytabelem yypgo[]={
0, 0, 1, 112, 72, 429, 428, 425, 423, 422,
421, 420, 418, 417, 416, 415, 215, 414, 413, 412,
411, 410, 409, 408, 407, 406, 405, 404, 402, 75,
396, 395, 388, 385, 384, 380, 378, 377, 376, 374,
373, 372, 371, 370, 369, 367, 365, 364, 363, 362,
359, 2, 358, 357, 356, 354, 353, 348, 165, 346,
345, 344, 343, 342, 208, 341, 340, 339, 337, 335,
334, 333, 329, 328, 327, 326, 309, 303, 302, 283,
282, 281, 279, 273, 272, 271, 270, 269, 268, 264,
262, 260, 252, 249, 247, 245, 244, 243, 240, 228,
5, 226, 224, 223, 220, 218, 217, 214, 210, 209,
207, 206, 201, 76 };
__YYSCLASS yytabelem yyr1[]={
0, 8, 9, 9, 10, 10, 10, 10, 10, 10,
15, 10, 10, 10, 10, 10, 17, 10, 19, 10,
10, 10, 10, 10, 23, 10, 10, 24, 10, 10,
25, 10, 10, 26, 10, 10, 27, 10, 10, 10,
10, 28, 10, 30, 10, 10, 10, 10, 10, 31,
10, 32, 10, 34, 10, 35, 10, 37, 10, 10,
38, 10, 40, 10, 41, 10, 10, 42, 10, 10,
43, 10, 10, 44, 10, 45, 10, 10, 46, 10,
10, 47, 10, 48, 10, 49, 10, 10, 50, 10,
52, 10, 53, 10, 55, 10, 57, 10, 59, 10,
61, 10, 10, 10, 10, 10, 10, 62, 10, 10,
63, 10, 10, 11, 12, 12, 13, 6, 7, 64,
64, 67, 67, 67, 67, 67, 67, 65, 65, 68,
68, 68, 68, 68, 68, 68, 68, 68, 66, 66,
69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
29, 70, 70, 71, 21, 72, 72, 73, 22, 74,
74, 75, 75, 75, 75, 75, 75, 75, 75, 75,
75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
75, 75, 75, 58, 76, 76, 77, 78, 77, 77,
60, 80, 80, 81, 81, 79, 82, 82, 83, 14,
84, 14, 14, 86, 14, 85, 85, 39, 87, 87,
88, 88, 33, 89, 89, 90, 91, 90, 92, 93,
93, 94, 94, 94, 94, 94, 18, 18, 18, 18,
20, 20, 20, 20, 16, 95, 95, 96, 36, 97,
97, 99, 98, 101, 98, 102, 98, 100, 104, 104,
105, 103, 106, 106, 107, 56, 108, 108, 109, 54,
110, 110, 111, 51, 112, 112, 113, 113, 2, 2,
5, 5, 5, 3, 1, 4 };
__YYSCLASS yytabelem yyr2[]={
0, 2, 0, 4, 2, 2, 2, 2, 2, 13,
1, 16, 7, 5, 7, 5, 1, 6, 1, 6,
5, 3, 5, 5, 1, 6, 3, 1, 6, 3,
1, 6, 3, 1, 6, 3, 1, 6, 3, 9,
9, 1, 8, 1, 8, 5, 5, 5, 5, 1,
6, 1, 6, 1, 6, 1, 6, 1, 6, 3,
1, 6, 1, 6, 1, 6, 3, 1, 6, 3,
1, 6, 3, 1, 6, 1, 6, 3, 1, 6,
3, 1, 6, 1, 6, 1, 6, 3, 1, 19,
1, 9, 1, 8, 1, 6, 1, 6, 1, 6,
1, 6, 5, 5, 5, 5, 5, 1, 6, 3,
1, 6, 3, 3, 5, 3, 5, 13, 13, 0,
4, 3, 3, 3, 3, 5, 3, 0, 4, 3,
3, 3, 3, 3, 3, 3, 3, 3, 0, 4,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
6, 0, 4, 7, 7, 0, 4, 5, 7, 0,
4, 7, 5, 7, 5, 7, 5, 7, 5, 7,
5, 7, 5, 7, 5, 7, 5, 7, 5, 7,
5, 7, 5, 7, 0, 4, 5, 1, 8, 5,
7, 0, 4, 3, 3, 7, 0, 4, 5, 3,
1, 10, 3, 1, 6, 0, 11, 7, 0, 4,
7, 9, 7, 0, 4, 3, 1, 6, 7, 0,
4, 3, 5, 7, 9, 11, 7, 9, 11, 13,
7, 9, 11, 13, 7, 0, 4, 3, 7, 0,
4, 1, 6, 1, 8, 1, 8, 7, 0, 4,
3, 7, 0, 4, 3, 7, 0, 4, 5, 7,
0, 4, 3, 7, 0, 4, 5, 15, 3, 5,
3, 5, 5, 5, 3, 3 };
__YYSCLASS yytabelem yychk[]={
-3000, -8, -9, -10, 256, -11, -12, -13, -14, 291,
281, 331, 334, 335, 279, 270, 269, 284, 336, 337,
338, 339, 313, 314, -3, -1, 285, 330, 332, 333,
282, 280, 276, 306, 290, 328, 286, 287, 288, 283,
305, 289, 262, 275, 271, 272, 273, 274, 264, 278,
340, 341, 342, 326, 325, 316, 322, 317, 303, 304,
263, 343, -1, -1, -1, -17, -19, -4, 315, -21,
257, -22, 257, -23, -24, -25, -26, -27, -1, -1,
-1, -2, -6, 320, 321, 302, -7, 302, -31, -32,
-34, -35, -37, -38, -40, -41, -42, -43, -44, -45,
-46, -47, -48, -49, -1, -1, -55, -57, -59, -61,
-2, -2, -2, -2, -2, -62, -63, -1, -4, -84,
-86, -4, 323, -4, -4, -18, 257, -20, 257, -72,
-74, -16, 257, -16, -16, -16, -16, 302, -28, 302,
-30, -1, -64, -64, -16, -33, 257, -16, -36, 257,
-16, -39, 257, -16, -16, -16, -16, -16, -16, -16,
-16, -16, -16, 259, -52, -53, -56, 257, -58, 257,
-60, 257, -58, -16, -16, 257, -16, 323, -1, -1,
258, -73, 307, 258, -75, 300, 297, 298, 277, 263,
308, 309, 310, 262, 311, 312, -95, -2, -29, 257,
-2, -29, 301, -67, 292, 293, 294, 295, 268, 301,
-89, -97, -87, -1, -51, 257, -54, 257, -108, -76,
-80, -85, -4, 258, -1, 258, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 258,
-96, -1, -70, -65, -4, -66, 258, -90, -1, 258,
-98, -1, 296, 329, 258, -88, -1, 301, -112, -110,
258, -109, -1, 258, -77, 319, 318, 258, -81, -1,
319, 258, -1, -4, 258, -1, 258, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 258,
-71, -3, 301, -68, 296, 297, 298, 299, 300, 277,
292, 267, 268, 301, -69, 296, 297, 298, 299, 300,
277, 292, 267, 268, -1, -91, -99, -1, -1, -1,
-1, 258, -113, -1, 258, -111, -2, -1, -1, -1,
324, -15, 258, -1, 258, -1, 301, -2, -2, -92,
257, -100, 257, -101, -102, -4, -1, 260, -2, 259,
-78, -5, -4, 265, 266, -16, 258, 258, -2, -93,
-104, -100, -103, 257, -4, -50, -1, -79, 257, -4,
-4, -4, 258, -94, -1, 258, -105, -1, -106, -51,
301, -82, -1, 258, -107, -1, -1, 258, -83, -1,
-1, 260, -1, -1, -2, -1 };
__YYSCLASS yytabelem yydef[]={
2, -2, -2, 3, 4, 5, 6, 7, 8, 0,
0, 0, 16, 18, 21, 0, 0, -2, -2, -2,
-2, -2, 0, 0, 0, 0, 49, 51, 53, 55,
-2, 60, 62, -2, -2, -2, 73, -2, -2, 81,
83, -2, 0, 0, 94, 96, 98, 100, 0, 0,
0, 0, 0, -2, -2, 113, 115, 0, -2, -2,
0, 274, 0, 13, 15, 0, 0, 20, 275, 22,
155, 23, 159, 0, 0, 0, 0, 0, 41, 43,
45, 46, 48, 268, 0, 119, 47, 119, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 90, 92, 0, 0, 0, 0,
102, 103, 104, 105, 106, 0, 0, 114, 116, 0,
0, 273, 0, 12, 14, 17, 0, 19, 0, 0,
0, 25, 235, 28, 31, 34, 37, 0, 0, 0,
0, 269, 0, 0, 50, 52, 213, 54, 56, 239,
58, 61, 208, 63, 65, 68, 71, 74, 76, 79,
82, 84, 86, 0, 0, 0, 95, 256, 97, 184,
99, 191, 101, 108, 111, 205, 204, 0, 0, 0,
154, 156, 0, 158, 160, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 39, 42, 151,
40, 44, 127, 120, 121, 122, 123, 124, 126, 138,
0, 0, 0, 0, 91, 264, 93, 260, 0, 0,
0, 0, 0, 226, 0, 230, 0, 157, 162, 164,
166, 168, 170, 172, 174, 176, 178, 180, 182, 234,
236, 237, 0, 0, 125, 0, 212, 214, -2, 238,
240, 241, 0, 0, 207, 209, 0, 0, 0, 0,
255, 257, 0, 183, 185, 0, 0, 190, 192, 193,
194, 201, 0, -2, 227, 0, 231, 0, 161, 163,
165, 167, 169, 171, 173, 175, 177, 179, 181, 150,
152, 0, 0, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 0, 139, 140, 141, 142, 143, 144,
145, 146, 147, 148, 149, 0, 0, 243, 245, 0,
0, 263, 265, 0, 259, 261, 262, 258, -2, 189,
0, 0, 228, 0, 232, 0, 0, 117, 118, 217,
219, 242, 248, 0, 0, 210, 0, 88, 266, 0,
0, 0, 270, 0, 0, 11, 229, 233, 153, 0,
0, 244, 246, 252, 211, 0, 0, 188, 196, 206,
271, 272, 218, 220, 221, 247, 249, 250, 0, 89,
0, 0, 222, 251, 253, 254, 0, 195, 197, 0,
223, 0, 198, 224, 267, 225 };
typedef struct { char *t_name; int t_val; } yytoktype;
#ifndef YYDEBUG
# define YYDEBUG 0 /* don't allow debugging */
#endif
#if YYDEBUG
__YYSCLASS yytoktype yytoks[] =
{
"LB", 257,
"RB", 258,
"LP", 259,
"RP", 260,
"MENUS", 261,
"MENU", 262,
"BUTTON", 263,
"DEFAULT_FUNCTION", 264,
"PLUS", 265,
"MINUS", 266,
"ALL", 267,
"OR", 268,
"CURSORS", 269,
"PIXMAPS", 270,
"ICONS", 271,
"COLOR", 272,
"SAVECOLOR", 273,
"MONOCHROME", 274,
"FUNCTION", 275,
"ICONMGR_SHOW", 276,
"ICONMGR", 277,
"WINDOW_FUNCTION", 278,
"ZOOM", 279,
"ICONMGRS", 280,
"ICONMGR_GEOMETRY", 281,
"ICONMGR_NOSHOW", 282,
"MAKE_TITLE", 283,
"ICONIFY_BY_UNMAPPING", 284,
"DONT_ICONIFY_BY_UNMAPPING", 285,
"NO_BORDER", 286,
"NO_ICON_TITLE", 287,
"NO_TITLE", 288,
"AUTO_RAISE", 289,
"NO_HILITE", 290,
"ICON_REGION", 291,
"META", 292,
"SHIFT", 293,
"LOCK", 294,
"CONTROL", 295,
"WINDOW", 296,
"TITLE", 297,
"ICON", 298,
"ROOT", 299,
"FRAME", 300,
"COLON", 301,
"EQUALS", 302,
"SQUEEZE_TITLE", 303,
"DONT_SQUEEZE_TITLE", 304,
"START_ICONIFIED", 305,
"NO_TITLE_HILITE", 306,
"TITLE_HILITE", 307,
"MOVE", 308,
"RESIZE", 309,
"WAITC", 310,
"SELECT", 311,
"KILL", 312,
"LEFT_TITLEBUTTON", 313,
"RIGHT_TITLEBUTTON", 314,
"NUMBER", 315,
"KEYWORD", 316,
"NKEYWORD", 317,
"CKEYWORD", 318,
"CLKEYWORD", 319,
"FKEYWORD", 320,
"FSKEYWORD", 321,
"SKEYWORD", 322,
"DKEYWORD", 323,
"JKEYWORD", 324,
"WINDOW_RING", 325,
"WARP_CURSOR", 326,
"ERRORTOKEN", 327,
"NO_STACKMODE", 328,
"WORKSPACE", 329,
"WORKSPACES", 330,
"WORKSPCMGR_GEOMETRY", 331,
"OCCUPYALL", 332,
"OCCUPYLIST", 333,
"MAPWINDOWCURRENTWORKSPACE", 334,
"MAPWINDOWDEFAULTWORKSPACE", 335,
"OPAQUEMOVE", 336,
"NOOPAQUEMOVE", 337,
"OPAQUERESIZE", 338,
"NOOPAQUERESIZE", 339,
"CHANGE_WORKSPACE_FUNCTION", 340,
"DEICONIFY_FUNCTION", 341,
"ICONIFY_FUNCTION", 342,
"STRING", 343,
"-unknown-", -1 /* ends search */
};
__YYSCLASS char * yyreds[] =
{
"-no such reduction-",
"twmrc : stmts",
"stmts : /* empty */",
"stmts : stmts stmt",
"stmt : error",
"stmt : noarg",
"stmt : sarg",
"stmt : narg",
"stmt : squeeze",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number",
"stmt : ICON_REGION string DKEYWORD DKEYWORD number number win_list",
"stmt : ICONMGR_GEOMETRY string number",
"stmt : ICONMGR_GEOMETRY string",
"stmt : WORKSPCMGR_GEOMETRY string number",
"stmt : WORKSPCMGR_GEOMETRY string",
"stmt : MAPWINDOWCURRENTWORKSPACE",
"stmt : MAPWINDOWCURRENTWORKSPACE curwork",
"stmt : MAPWINDOWDEFAULTWORKSPACE",
"stmt : MAPWINDOWDEFAULTWORKSPACE defwork",
"stmt : ZOOM number",
"stmt : ZOOM",
"stmt : PIXMAPS pixmap_list",
"stmt : CURSORS cursor_list",
"stmt : ICONIFY_BY_UNMAPPING",
"stmt : ICONIFY_BY_UNMAPPING win_list",
"stmt : ICONIFY_BY_UNMAPPING",
"stmt : OPAQUEMOVE",
"stmt : OPAQUEMOVE win_list",
"stmt : OPAQUEMOVE",
"stmt : NOOPAQUEMOVE",
"stmt : NOOPAQUEMOVE win_list",
"stmt : NOOPAQUEMOVE",
"stmt : OPAQUERESIZE",
"stmt : OPAQUERESIZE win_list",
"stmt : OPAQUERESIZE",
"stmt : NOOPAQUERESIZE",
"stmt : NOOPAQUERESIZE win_list",
"stmt : NOOPAQUERESIZE",
"stmt : LEFT_TITLEBUTTON string EQUALS action",
"stmt : RIGHT_TITLEBUTTON string EQUALS action",
"stmt : LEFT_TITLEBUTTON string",
"stmt : LEFT_TITLEBUTTON string binding_list",
"stmt : RIGHT_TITLEBUTTON string",
"stmt : RIGHT_TITLEBUTTON string binding_list",
"stmt : button string",
"stmt : button action",
"stmt : string fullkey",
"stmt : button full",
"stmt : DONT_ICONIFY_BY_UNMAPPING",
"stmt : DONT_ICONIFY_BY_UNMAPPING win_list",
"stmt : WORKSPACES",
"stmt : WORKSPACES workspc_list",
"stmt : OCCUPYALL",
"stmt : OCCUPYALL win_list",
"stmt : OCCUPYLIST",
"stmt : OCCUPYLIST occupy_list",
"stmt : ICONMGR_NOSHOW",
"stmt : ICONMGR_NOSHOW win_list",
"stmt : ICONMGR_NOSHOW",
"stmt : ICONMGRS",
"stmt : ICONMGRS iconm_list",
"stmt : ICONMGR_SHOW",
"stmt : ICONMGR_SHOW win_list",
"stmt : NO_TITLE_HILITE",
"stmt : NO_TITLE_HILITE win_list",
"stmt : NO_TITLE_HILITE",
"stmt : NO_HILITE",
"stmt : NO_HILITE win_list",
"stmt : NO_HILITE",
"stmt : NO_STACKMODE",
"stmt : NO_STACKMODE win_list",
"stmt : NO_STACKMODE",
"stmt : NO_BORDER",
"stmt : NO_BORDER win_list",
"stmt : NO_ICON_TITLE",
"stmt : NO_ICON_TITLE win_list",
"stmt : NO_ICON_TITLE",
"stmt : NO_TITLE",
"stmt : NO_TITLE win_list",
"stmt : NO_TITLE",
"stmt : MAKE_TITLE",
"stmt : MAKE_TITLE win_list",
"stmt : START_ICONIFIED",
"stmt : START_ICONIFIED win_list",
"stmt : AUTO_RAISE",
"stmt : AUTO_RAISE win_list",
"stmt : AUTO_RAISE",
"stmt : MENU string LP string COLON string RP",
"stmt : MENU string LP string COLON string RP menu",
"stmt : MENU string",
"stmt : MENU string menu",
"stmt : FUNCTION string",
"stmt : FUNCTION string function",
"stmt : ICONS",
"stmt : ICONS icon_list",
"stmt : COLOR",
"stmt : COLOR color_list",
"stmt : SAVECOLOR",
"stmt : SAVECOLOR save_color_list",
"stmt : MONOCHROME",
"stmt : MONOCHROME color_list",
"stmt : DEFAULT_FUNCTION action",
"stmt : WINDOW_FUNCTION action",
"stmt : CHANGE_WORKSPACE_FUNCTION action",
"stmt : DEICONIFY_FUNCTION action",
"stmt : ICONIFY_FUNCTION action",
"stmt : WARP_CURSOR",
"stmt : WARP_CURSOR win_list",
"stmt : WARP_CURSOR",
"stmt : WINDOW_RING",
"stmt : WINDOW_RING win_list",
"stmt : WINDOW_RING",
"noarg : KEYWORD",
"sarg : SKEYWORD string",
"sarg : SKEYWORD",
"narg : NKEYWORD number",
"full : EQUALS keys COLON contexts COLON action",
"fullkey : EQUALS keys COLON contextkeys COLON action",
"keys : /* empty */",
"keys : keys key",
"key : META",
"key : SHIFT",
"key : LOCK",
"key : CONTROL",
"key : META number",
"key : OR",
"contexts : /* empty */",
"contexts : contexts context",
"context : WINDOW",
"context : TITLE",
"context : ICON",
"context : ROOT",
"context : FRAME",
"context : ICONMGR",
"context : META",
"context : ALL",
"context : OR",
"contextkeys : /* empty */",
"contextkeys : contextkeys contextkey",
"contextkey : WINDOW",
"contextkey : TITLE",
"contextkey : ICON",
"contextkey : ROOT",
"contextkey : FRAME",
"contextkey : ICONMGR",
"contextkey : META",
"contextkey : ALL",
"contextkey : OR",
"contextkey : string",
"binding_list : LB binding_entries RB",
"binding_entries : /* empty */",
"binding_entries : binding_entries binding_entry",
"binding_entry : button COLON action",
"pixmap_list : LB pixmap_entries RB",
"pixmap_entries : /* empty */",
"pixmap_entries : pixmap_entries pixmap_entry",
"pixmap_entry : TITLE_HILITE string",
"cursor_list : LB cursor_entries RB",
"cursor_entries : /* empty */",
"cursor_entries : cursor_entries cursor_entry",
"cursor_entry : FRAME string string",
"cursor_entry : FRAME string",
"cursor_entry : TITLE string string",
"cursor_entry : TITLE string",
"cursor_entry : ICON string string",
"cursor_entry : ICON string",
"cursor_entry : ICONMGR string string",
"cursor_entry : ICONMGR string",
"cursor_entry : BUTTON string string",
"cursor_entry : BUTTON string",
"cursor_entry : MOVE string string",
"cursor_entry : MOVE string",
"cursor_entry : RESIZE string string",
"cursor_entry : RESIZE string",
"cursor_entry : WAITC string string",
"cursor_entry : WAITC string",
"cursor_entry : MENU string string",
"cursor_entry : MENU string",
"cursor_entry : SELECT string string",
"cursor_entry : SELECT string",
"cursor_entry : KILL string string",
"cursor_entry : KILL string",
"color_list : LB color_entries RB",
"color_entries : /* empty */",
"color_entries : color_entries color_entry",
"color_entry : CLKEYWORD string",
"color_entry : CLKEYWORD string",
"color_entry : CLKEYWORD string win_color_list",
"color_entry : CKEYWORD string",
"save_color_list : LB s_color_entries RB",
"s_color_entries : /* empty */",
"s_color_entries : s_color_entries s_color_entry",
"s_color_entry : string",
"s_color_entry : CLKEYWORD",
"win_color_list : LB win_color_entries RB",
"win_color_entries : /* empty */",
"win_color_entries : win_color_entries win_color_entry",
"win_color_entry : string string",
"squeeze : SQUEEZE_TITLE",
"squeeze : SQUEEZE_TITLE",
"squeeze : SQUEEZE_TITLE LB win_sqz_entries RB",
"squeeze : DONT_SQUEEZE_TITLE",
"squeeze : DONT_SQUEEZE_TITLE",
"squeeze : DONT_SQUEEZE_TITLE win_list",
"win_sqz_entries : /* empty */",
"win_sqz_entries : win_sqz_entries string JKEYWORD signed_number number",
"iconm_list : LB iconm_entries RB",
"iconm_entries : /* empty */",
"iconm_entries : iconm_entries iconm_entry",
"iconm_entry : string string number",
"iconm_entry : string string string number",
"workspc_list : LB workspc_entries RB",
"workspc_entries : /* empty */",
"workspc_entries : workspc_entries workspc_entry",
"workspc_entry : string",
"workspc_entry : string",
"workspc_entry : string workapp_list",
"workapp_list : LB workapp_entries RB",
"workapp_entries : /* empty */",
"workapp_entries : workapp_entries workapp_entry",
"workapp_entry : string",
"workapp_entry : string string",
"workapp_entry : string string string",
"workapp_entry : string string string string",
"workapp_entry : string string string string string",
"curwork : LB string RB",
"curwork : LB string string RB",
"curwork : LB string string string RB",
"curwork : LB string string string string RB",
"defwork : LB string RB",
"defwork : LB string string RB",
"defwork : LB string string string RB",
"defwork : LB string string string string RB",
"win_list : LB win_entries RB",
"win_entries : /* empty */",
"win_entries : win_entries win_entry",
"win_entry : string",
"occupy_list : LB occupy_entries RB",
"occupy_entries : /* empty */",
"occupy_entries : occupy_entries occupy_entry",
"occupy_entry : string",
"occupy_entry : string occupy_workspc_list",
"occupy_entry : WINDOW string",
"occupy_entry : WINDOW string occupy_workspc_list",
"occupy_entry : WORKSPACE string",
"occupy_entry : WORKSPACE string occupy_window_list",
"occupy_workspc_list : LB occupy_workspc_entries RB",
"occupy_workspc_entries : /* empty */",
"occupy_workspc_entries : occupy_workspc_entries occupy_workspc_entry",
"occupy_workspc_entry : string",
"occupy_window_list : LB occupy_window_entries RB",
"occupy_window_entries : /* empty */",
"occupy_window_entries : occupy_window_entries occupy_window_entry",
"occupy_window_entry : string",
"icon_list : LB icon_entries RB",
"icon_entries : /* empty */",
"icon_entries : icon_entries icon_entry",
"icon_entry : string string",
"function : LB function_entries RB",
"function_entries : /* empty */",
"function_entries : function_entries function_entry",
"function_entry : action",
"menu : LB menu_entries RB",
"menu_entries : /* empty */",
"menu_entries : menu_entries menu_entry",
"menu_entry : string action",
"menu_entry : string LP string COLON string RP action",
"action : FKEYWORD",
"action : FSKEYWORD string",
"signed_number : number",
"signed_number : PLUS number",
"signed_number : MINUS number",
"button : BUTTON number",
"string : STRING",
"number : NUMBER",
};
#endif /* YYDEBUG */
#define YYFLAG (-3000)
/* @(#) $Revision: 1.2 $ */
/*
** Skeleton parser driver for yacc output
*/
#if defined(NLS) && !defined(NL_SETN)
#include <msgbuf.h>
#endif
#ifndef nl_msg
#define nl_msg(i,s) (s)
#endif
/*
** yacc user known macros and defines
*/
#define YYERROR goto yyerrlab
#ifndef __RUNTIME_YYMAXDEPTH
#define YYACCEPT return(0)
#define YYABORT return(1)
#else
#define YYACCEPT {free_stacks(); return(0);}
#define YYABORT {free_stacks(); return(1);}
#endif
#define YYBACKUP( newtoken, newvalue )\
{\
if ( yychar >= 0 || ( yyr2[ yytmp ] >> 1 ) != 1 )\
{\
yyerror( (nl_msg(30001,"syntax error - cannot backup")) );\
goto yyerrlab;\
}\
yychar = newtoken;\
yystate = *yyps;\
yylval = newvalue;\
goto yynewstate;\
}
#define YYRECOVERING() (!!yyerrflag)
#ifndef YYDEBUG
# define YYDEBUG 1 /* make debugging available */
#endif
/*
** user known globals
*/
int yydebug; /* set to 1 to get debugging */
/*
** driver internal defines
*/
/* define for YYFLAG now generated by yacc program. */
/*#define YYFLAG (FLAGVAL)*/
/*
** global variables used by the parser
*/
# ifndef __RUNTIME_YYMAXDEPTH
__YYSCLASS YYSTYPE yyv[ YYMAXDEPTH ]; /* value stack */
__YYSCLASS int yys[ YYMAXDEPTH ]; /* state stack */
# else
__YYSCLASS YYSTYPE *yyv; /* pointer to malloc'ed value stack */
__YYSCLASS int *yys; /* pointer to malloc'ed stack stack */
#if defined(__STDC__) || defined (__cplusplus)
#include <stdlib.h>
#else
extern char *malloc();
extern char *realloc();
extern void free();
#endif /* __STDC__ or __cplusplus */
static int allocate_stacks();
static void free_stacks();
# ifndef YYINCREMENT
# define YYINCREMENT (YYMAXDEPTH/2) + 10
# endif
# endif /* __RUNTIME_YYMAXDEPTH */
long yymaxdepth = YYMAXDEPTH;
__YYSCLASS YYSTYPE *yypv; /* top of value stack */
__YYSCLASS int *yyps; /* top of state stack */
__YYSCLASS int yystate; /* current state */
__YYSCLASS int yytmp; /* extra var (lasts between blocks) */
int yynerrs; /* number of errors */
__YYSCLASS int yyerrflag; /* error recovery flag */
int yychar; /* current input token number */
/*
** yyparse - return 0 if worked, 1 if syntax error not recovered from
*/
int
yyparse()
{
register YYSTYPE *yypvt; /* top of value stack for $vars */
/*
** Initialize externals - yyparse may be called more than once
*/
# ifdef __RUNTIME_YYMAXDEPTH
if (allocate_stacks()) YYABORT;
# endif
yypv = &yyv[-1];
yyps = &yys[-1];
yystate = 0;
yytmp = 0;
yynerrs = 0;
yyerrflag = 0;
yychar = -1;
goto yystack;
{
register YYSTYPE *yy_pv; /* top of value stack */
register int *yy_ps; /* top of state stack */
register int yy_state; /* current state */
register int yy_n; /* internal state number info */
/*
** get globals into registers.
** branch to here only if YYBACKUP was called.
*/
yynewstate:
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
goto yy_newstate;
/*
** get globals into registers.
** either we just started, or we just finished a reduction
*/
yystack:
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
/*
** top of for (;;) loop while no reductions done
*/
yy_stack:
/*
** put a state and value onto the stacks
*/
#if YYDEBUG
/*
** if debugging, look up token value in list of value vs.
** name pairs. 0 and negative (-1) are special values.
** Note: linear search is used since time is not a real
** consideration while debugging.
*/
if ( yydebug )
{
register int yy_i;
printf( "State %d, token ", yy_state );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val == yychar )
break;
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( ++yy_ps >= &yys[ yymaxdepth ] ) /* room on stack? */
{
# ifndef __RUNTIME_YYMAXDEPTH
yyerror( (nl_msg(30002,"yacc stack overflow")) );
YYABORT;
# else
/* save old stack bases to recalculate pointers */
YYSTYPE * yyv_old = yyv;
int * yys_old = yys;
yymaxdepth += YYINCREMENT;
yys = (int *) realloc(yys, yymaxdepth * sizeof(int));
yyv = (YYSTYPE *) realloc(yyv, yymaxdepth * sizeof(YYSTYPE));
if (yys==0 || yyv==0) {
yyerror( (nl_msg(30002,"yacc stack overflow")) );
YYABORT;
}
/* Reset pointers into stack */
yy_ps = (yy_ps - yys_old) + yys;
yyps = (yyps - yys_old) + yys;
yy_pv = (yy_pv - yyv_old) + yyv;
yypv = (yypv - yyv_old) + yyv;
# endif
}
*yy_ps = yy_state;
*++yy_pv = yyval;
/*
** we have a new state - find out what to do
*/
yy_newstate:
if ( ( yy_n = yypact[ yy_state ] ) <= YYFLAG )
goto yydefault; /* simple state */
#if YYDEBUG
/*
** if debugging, need to mark whether new token grabbed
*/
yytmp = yychar < 0;
#endif
if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
yychar = 0; /* reached EOF */
#if YYDEBUG
if ( yydebug && yytmp )
{
register int yy_i;
printf( "Received token " );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0; yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val == yychar )
break;
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( ( ( yy_n += yychar ) < 0 ) || ( yy_n >= YYLAST ) )
goto yydefault;
if ( yychk[ yy_n = yyact[ yy_n ] ] == yychar ) /*valid shift*/
{
yychar = -1;
yyval = yylval;
yy_state = yy_n;
if ( yyerrflag > 0 )
yyerrflag--;
goto yy_stack;
}
yydefault:
if ( ( yy_n = yydef[ yy_state ] ) == -2 )
{
#if YYDEBUG
yytmp = yychar < 0;
#endif
if ( ( yychar < 0 ) && ( ( yychar = yylex() ) < 0 ) )
yychar = 0; /* reached EOF */
#if YYDEBUG
if ( yydebug && yytmp )
{
register int yy_i;
printf( "Received token " );
if ( yychar == 0 )
printf( "end-of-file\n" );
else if ( yychar < 0 )
printf( "-none-\n" );
else
{
for ( yy_i = 0;
yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val
== yychar )
{
break;
}
}
printf( "%s\n", yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
/*
** look through exception table
*/
{
register int *yyxi = yyexca;
while ( ( *yyxi != -1 ) ||
( yyxi[1] != yy_state ) )
{
yyxi += 2;
}
while ( ( *(yyxi += 2) >= 0 ) &&
( *yyxi != yychar ) )
;
if ( ( yy_n = yyxi[1] ) < 0 )
YYACCEPT;
}
}
/*
** check for syntax error
*/
if ( yy_n == 0 ) /* have an error */
{
/* no worry about speed here! */
switch ( yyerrflag )
{
case 0: /* new error */
yyerror( (nl_msg(30003,"syntax error")) );
yynerrs++;
goto skip_init;
yyerrlab:
/*
** get globals into registers.
** we have a user generated syntax type error
*/
yy_pv = yypv;
yy_ps = yyps;
yy_state = yystate;
yynerrs++;
skip_init:
case 1:
case 2: /* incompletely recovered error */
/* try again... */
yyerrflag = 3;
/*
** find state where "error" is a legal
** shift action
*/
while ( yy_ps >= yys )
{
yy_n = yypact[ *yy_ps ] + YYERRCODE;
if ( yy_n >= 0 && yy_n < YYLAST &&
yychk[yyact[yy_n]] == YYERRCODE) {
/*
** simulate shift of "error"
*/
yy_state = yyact[ yy_n ];
goto yy_stack;
}
/*
** current state has no shift on
** "error", pop stack
*/
#if YYDEBUG
# define _POP_ "Error recovery pops state %d, uncovers state %d\n"
if ( yydebug )
printf( _POP_, *yy_ps,
yy_ps[-1] );
# undef _POP_
#endif
yy_ps--;
yy_pv--;
}
/*
** there is no state on stack with "error" as
** a valid shift. give up.
*/
YYABORT;
case 3: /* no shift yet; eat a token */
#if YYDEBUG
/*
** if debugging, look up token in list of
** pairs. 0 and negative shouldn't occur,
** but since timing doesn't matter when
** debugging, it doesn't hurt to leave the
** tests here.
*/
if ( yydebug )
{
register int yy_i;
printf( "Error recovery discards " );
if ( yychar == 0 )
printf( "token end-of-file\n" );
else if ( yychar < 0 )
printf( "token -none-\n" );
else
{
for ( yy_i = 0;
yytoks[yy_i].t_val >= 0;
yy_i++ )
{
if ( yytoks[yy_i].t_val
== yychar )
{
break;
}
}
printf( "token %s\n",
yytoks[yy_i].t_name );
}
}
#endif /* YYDEBUG */
if ( yychar == 0 ) /* reached EOF. quit */
YYABORT;
yychar = -1;
goto yy_newstate;
}
}/* end if ( yy_n == 0 ) */
/*
** reduction by production yy_n
** put stack tops, etc. so things right after switch
*/
#if YYDEBUG
/*
** if debugging, print the string that is the user's
** specification of the reduction which is just about
** to be done.
*/
if ( yydebug )
printf( "Reduce by (%d) \"%s\"\n",
yy_n, yyreds[ yy_n ] );
#endif
yytmp = yy_n; /* value to switch over */
yypvt = yy_pv; /* $vars top of value stack */
/*
** Look in goto table for next state
** Sorry about using yy_state here as temporary
** register variable, but why not, if it works...
** If yyr2[ yy_n ] doesn't have the low order bit
** set, then there is no action to be done for
** this reduction. So, no saving & unsaving of
** registers done. The only difference between the
** code just after the if and the body of the if is
** the goto yy_stack in the body. This way the test
** can be made before the choice of what to do is needed.
*/
{
/* length of production doubled with extra bit */
register int yy_len = yyr2[ yy_n ];
if ( !( yy_len & 01 ) )
{
yy_len >>= 1;
yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */
yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
*( yy_ps -= yy_len ) + 1;
if ( yy_state >= YYLAST ||
yychk[ yy_state =
yyact[ yy_state ] ] != -yy_n )
{
yy_state = yyact[ yypgo[ yy_n ] ];
}
goto yy_stack;
}
yy_len >>= 1;
yyval = ( yy_pv -= yy_len )[1]; /* $$ = $1 */
yy_state = yypgo[ yy_n = yyr1[ yy_n ] ] +
*( yy_ps -= yy_len ) + 1;
if ( yy_state >= YYLAST ||
yychk[ yy_state = yyact[ yy_state ] ] != -yy_n )
{
yy_state = yyact[ yypgo[ yy_n ] ];
}
}
/* save until reenter driver code */
yystate = yy_state;
yyps = yy_ps;
yypv = yy_pv;
}
/*
** code supplied by user is placed in this switch
*/
switch( yytmp )
{
case 9:
# line 123 "gram.y"
{
(void) AddIconRegion(yypvt[-4].ptr, yypvt[-3].num, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
} break;
case 10:
# line 126 "gram.y"
{
list = AddIconRegion(yypvt[-4].ptr, yypvt[-3].num, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
} break;
case 12:
# line 130 "gram.y"
{ if (Scr->FirstTime)
{
Scr->iconmgr->geometry= yypvt[-1].ptr;
Scr->iconmgr->columns=yypvt[-0].num;
}
} break;
case 13:
# line 136 "gram.y"
{ if (Scr->FirstTime)
Scr->iconmgr->geometry = yypvt[-0].ptr;
} break;
case 14:
# line 139 "gram.y"
{ if (Scr->FirstTime)
{
Scr->workSpaceMgr.workspaceWindow.geometry= yypvt[-1].ptr;
Scr->workSpaceMgr.workspaceWindow.columns=yypvt[-0].num;
}
} break;
case 15:
# line 145 "gram.y"
{ if (Scr->FirstTime)
Scr->workSpaceMgr.workspaceWindow.geometry = yypvt[-0].ptr;
} break;
case 16:
# line 148 "gram.y"
{} break;
case 18:
# line 151 "gram.y"
{} break;
case 20:
# line 154 "gram.y"
{ if (Scr->FirstTime)
{
Scr->DoZoom = TRUE;
Scr->ZoomCount = yypvt[-0].num;
}
} break;
case 21:
# line 160 "gram.y"
{ if (Scr->FirstTime)
Scr->DoZoom = TRUE; } break;
case 22:
# line 162 "gram.y"
{} break;
case 23:
# line 163 "gram.y"
{} break;
case 24:
# line 164 "gram.y"
{ list = &Scr->IconifyByUn; } break;
case 26:
# line 166 "gram.y"
{ if (Scr->FirstTime)
Scr->IconifyByUnmapping = TRUE; } break;
case 27:
# line 169 "gram.y"
{ list = &Scr->OpaqueMoveList; } break;
case 29:
# line 171 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueMove = TRUE; } break;
case 30:
# line 172 "gram.y"
{ list = &Scr->NoOpaqueMoveList; } break;
case 32:
# line 174 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueMove = FALSE; } break;
case 33:
# line 175 "gram.y"
{ list = &Scr->OpaqueMoveList; } break;
case 35:
# line 177 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueResize = TRUE; } break;
case 36:
# line 178 "gram.y"
{ list = &Scr->NoOpaqueResizeList; } break;
case 38:
# line 180 "gram.y"
{ if (Scr->FirstTime) Scr->DoOpaqueResize = FALSE; } break;
case 39:
# line 182 "gram.y"
{
GotTitleButton (yypvt[-2].ptr, yypvt[-0].num, False);
} break;
case 40:
# line 185 "gram.y"
{
GotTitleButton (yypvt[-2].ptr, yypvt[-0].num, True);
} break;
case 41:
# line 188 "gram.y"
{ CreateTitleButton(yypvt[-0].ptr, 0, NULL, NULL, FALSE, TRUE); } break;
case 43:
# line 190 "gram.y"
{ CreateTitleButton(yypvt[-0].ptr, 0, NULL, NULL, TRUE, TRUE); } break;
case 45:
# line 192 "gram.y"
{
root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR);
AddFuncButton (yypvt[-1].num, C_ROOT, 0, F_MENU, root, (MenuItem*) 0);
} break;
case 46:
# line 196 "gram.y"
{
if (yypvt[-0].num == F_MENU) {
pull->prev = NULL;
AddFuncButton (yypvt[-1].num, C_ROOT, 0, yypvt[-0].num, pull, (MenuItem*) 0);
}
else {
MenuItem *item;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
item = AddToMenu (root, "x", Action,
NULLSTR, yypvt[-0].num, NULLSTR, NULLSTR);
AddFuncButton (yypvt[-1].num, C_ROOT, 0, yypvt[-0].num, (MenuRoot*) 0, item);
}
Action = "";
pull = NULL;
} break;
case 47:
# line 212 "gram.y"
{ GotKey(yypvt[-1].ptr, yypvt[-0].num); } break;
case 48:
# line 213 "gram.y"
{ GotButton(yypvt[-1].num, yypvt[-0].num); } break;
case 49:
# line 215 "gram.y"
{ list = &Scr->DontIconify; } break;
case 51:
# line 217 "gram.y"
{} break;
case 53:
# line 219 "gram.y"
{ list = &Scr->OccupyAll; } break;
case 55:
# line 221 "gram.y"
{} break;
case 57:
# line 223 "gram.y"
{ list = &Scr->IconMgrNoShow; } break;
case 59:
# line 225 "gram.y"
{ Scr->IconManagerDontShow = TRUE; } break;
case 60:
# line 226 "gram.y"
{ list = &Scr->IconMgrs; } break;
case 62:
# line 228 "gram.y"
{ list = &Scr->IconMgrShow; } break;
case 64:
# line 230 "gram.y"
{ list = &Scr->NoTitleHighlight; } break;
case 66:
# line 232 "gram.y"
{ if (Scr->FirstTime)
Scr->TitleHighlight = FALSE; } break;
case 67:
# line 234 "gram.y"
{ list = &Scr->NoHighlight; } break;
case 69:
# line 236 "gram.y"
{ if (Scr->FirstTime)
Scr->Highlight = FALSE; } break;
case 70:
# line 238 "gram.y"
{ list = &Scr->NoStackModeL; } break;
case 72:
# line 240 "gram.y"
{ if (Scr->FirstTime)
Scr->StackMode = FALSE; } break;
case 73:
# line 242 "gram.y"
{ list = &Scr->NoBorder; } break;
case 75:
# line 244 "gram.y"
{ list = &Scr->NoIconTitle; } break;
case 77:
# line 246 "gram.y"
{ if (Scr->FirstTime)
Scr->NoIconTitlebar = TRUE; } break;
case 78:
# line 248 "gram.y"
{ list = &Scr->NoTitle; } break;
case 80:
# line 250 "gram.y"
{ if (Scr->FirstTime)
Scr->NoTitlebar = TRUE; } break;
case 81:
# line 252 "gram.y"
{ list = &Scr->MakeTitle; } break;
case 83:
# line 254 "gram.y"
{ list = &Scr->StartIconified; } break;
case 85:
# line 256 "gram.y"
{ list = &Scr->AutoRaise; } break;
case 87:
# line 258 "gram.y"
{ Scr->AutoRaiseDefault = TRUE; } break;
case 88:
# line 259 "gram.y"
{
root = GetRoot(yypvt[-5].ptr, yypvt[-3].ptr, yypvt[-1].ptr); } break;
case 89:
# line 261 "gram.y"
{ root->real_menu = TRUE;} break;
case 90:
# line 262 "gram.y"
{ root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR); } break;
case 91:
# line 263 "gram.y"
{ root->real_menu = TRUE; } break;
case 92:
# line 264 "gram.y"
{ root = GetRoot(yypvt[-0].ptr, NULLSTR, NULLSTR); } break;
case 94:
# line 266 "gram.y"
{ list = &Scr->IconNames; } break;
case 96:
# line 268 "gram.y"
{ color = COLOR; } break;
case 98:
# line 270 "gram.y"
{} break;
case 100:
# line 272 "gram.y"
{ color = MONOCHROME; } break;
case 102:
# line 274 "gram.y"
{ Scr->DefaultFunction.func = yypvt[-0].num;
if (yypvt[-0].num == F_MENU)
{
pull->prev = NULL;
Scr->DefaultFunction.menu = pull;
}
else
{
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->DefaultFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
}
Action = "";
pull = NULL;
} break;
case 103:
# line 290 "gram.y"
{ Scr->WindowFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->WindowFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 104:
# line 298 "gram.y"
{ Scr->ChangeWorkspaceFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->ChangeWorkspaceFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 105:
# line 306 "gram.y"
{ Scr->DeIconifyFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->DeIconifyFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 106:
# line 314 "gram.y"
{ Scr->IconifyFunction.func = yypvt[-0].num;
root = GetRoot(TWM_ROOT,NULLSTR,NULLSTR);
Scr->IconifyFunction.item =
AddToMenu(root,"x",Action,
NULLSTR,yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
} break;
case 107:
# line 322 "gram.y"
{ list = &Scr->WarpCursorL; } break;
case 109:
# line 324 "gram.y"
{ if (Scr->FirstTime)
Scr->WarpCursor = TRUE; } break;
case 110:
# line 326 "gram.y"
{ list = &Scr->WindowRingL; } break;
case 112:
# line 328 "gram.y"
{ Scr->WindowRingAll = TRUE; } break;
case 113:
# line 331 "gram.y"
{ if (!do_single_keyword (yypvt[-0].num)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown singleton keyword %d\n",
yypvt[-0].num);
ParseError = 1;
}
} break;
case 114:
# line 341 "gram.y"
{ if (!do_string_keyword (yypvt[-1].num, yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown string keyword %d (value \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 115:
# line 349 "gram.y"
{ if (!do_string_keyword (yypvt[-0].num, defstring)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown string keyword %d (no value)\n",
yypvt[-0].num);
ParseError = 1;
}
} break;
case 116:
# line 359 "gram.y"
{ if (!do_number_keyword (yypvt[-1].num, yypvt[-0].num)) {
twmrc_error_prefix();
fprintf (stderr,
"unknown numeric keyword %d (value %d)\n",
yypvt[-1].num, yypvt[-0].num);
ParseError = 1;
}
} break;
case 117:
# line 371 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 118:
# line 374 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 121:
# line 381 "gram.y"
{ mods |= Mod1Mask; } break;
case 122:
# line 382 "gram.y"
{ mods |= ShiftMask; } break;
case 123:
# line 383 "gram.y"
{ mods |= LockMask; } break;
case 124:
# line 384 "gram.y"
{ mods |= ControlMask; } break;
case 125:
# line 385 "gram.y"
{ if (yypvt[-0].num < 1 || yypvt[-0].num > 5) {
twmrc_error_prefix();
fprintf (stderr,
"bad modifier number (%d), must be 1-5\n",
yypvt[-0].num);
ParseError = 1;
} else {
mods |= (Mod1Mask << (yypvt[-0].num - 1));
}
} break;
case 126:
# line 395 "gram.y"
{ } break;
case 129:
# line 402 "gram.y"
{ cont |= C_WINDOW_BIT; } break;
case 130:
# line 403 "gram.y"
{ cont |= C_TITLE_BIT; } break;
case 131:
# line 404 "gram.y"
{ cont |= C_ICON_BIT; } break;
case 132:
# line 405 "gram.y"
{ cont |= C_ROOT_BIT; } break;
case 133:
# line 406 "gram.y"
{ cont |= C_FRAME_BIT; } break;
case 134:
# line 407 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 135:
# line 408 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 136:
# line 409 "gram.y"
{ cont |= C_ALL_BITS; } break;
case 137:
# line 410 "gram.y"
{ } break;
case 140:
# line 417 "gram.y"
{ cont |= C_WINDOW_BIT; } break;
case 141:
# line 418 "gram.y"
{ cont |= C_TITLE_BIT; } break;
case 142:
# line 419 "gram.y"
{ cont |= C_ICON_BIT; } break;
case 143:
# line 420 "gram.y"
{ cont |= C_ROOT_BIT; } break;
case 144:
# line 421 "gram.y"
{ cont |= C_FRAME_BIT; } break;
case 145:
# line 422 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 146:
# line 423 "gram.y"
{ cont |= C_ICONMGR_BIT; } break;
case 147:
# line 424 "gram.y"
{ cont |= C_ALL_BITS; } break;
case 148:
# line 425 "gram.y"
{ } break;
case 149:
# line 426 "gram.y"
{ Name = yypvt[-0].ptr; cont |= C_NAME_BIT; } break;
case 153:
# line 437 "gram.y"
{ ModifyCurrentTB(yypvt[-2].num, yypvt[-0].num, Action, pull);} break;
case 154:
# line 441 "gram.y"
{} break;
case 157:
# line 448 "gram.y"
{ SetHighlightPixmap (yypvt[-0].ptr); } break;
case 158:
# line 452 "gram.y"
{} break;
case 161:
# line 459 "gram.y"
{
NewBitmapCursor(&Scr->FrameCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 162:
# line 461 "gram.y"
{
NewFontCursor(&Scr->FrameCursor, yypvt[-0].ptr); } break;
case 163:
# line 463 "gram.y"
{
NewBitmapCursor(&Scr->TitleCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 164:
# line 465 "gram.y"
{
NewFontCursor(&Scr->TitleCursor, yypvt[-0].ptr); } break;
case 165:
# line 467 "gram.y"
{
NewBitmapCursor(&Scr->IconCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 166:
# line 469 "gram.y"
{
NewFontCursor(&Scr->IconCursor, yypvt[-0].ptr); } break;
case 167:
# line 471 "gram.y"
{
NewBitmapCursor(&Scr->IconMgrCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 168:
# line 473 "gram.y"
{
NewFontCursor(&Scr->IconMgrCursor, yypvt[-0].ptr); } break;
case 169:
# line 475 "gram.y"
{
NewBitmapCursor(&Scr->ButtonCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 170:
# line 477 "gram.y"
{
NewFontCursor(&Scr->ButtonCursor, yypvt[-0].ptr); } break;
case 171:
# line 479 "gram.y"
{
NewBitmapCursor(&Scr->MoveCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 172:
# line 481 "gram.y"
{
NewFontCursor(&Scr->MoveCursor, yypvt[-0].ptr); } break;
case 173:
# line 483 "gram.y"
{
NewBitmapCursor(&Scr->ResizeCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 174:
# line 485 "gram.y"
{
NewFontCursor(&Scr->ResizeCursor, yypvt[-0].ptr); } break;
case 175:
# line 487 "gram.y"
{
NewBitmapCursor(&Scr->WaitCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 176:
# line 489 "gram.y"
{
NewFontCursor(&Scr->WaitCursor, yypvt[-0].ptr); } break;
case 177:
# line 491 "gram.y"
{
NewBitmapCursor(&Scr->MenuCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 178:
# line 493 "gram.y"
{
NewFontCursor(&Scr->MenuCursor, yypvt[-0].ptr); } break;
case 179:
# line 495 "gram.y"
{
NewBitmapCursor(&Scr->SelectCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 180:
# line 497 "gram.y"
{
NewFontCursor(&Scr->SelectCursor, yypvt[-0].ptr); } break;
case 181:
# line 499 "gram.y"
{
NewBitmapCursor(&Scr->DestroyCursor, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 182:
# line 501 "gram.y"
{
NewFontCursor(&Scr->DestroyCursor, yypvt[-0].ptr); } break;
case 183:
# line 505 "gram.y"
{} break;
case 186:
# line 513 "gram.y"
{ if (!do_colorlist_keyword (yypvt[-1].num, color,
yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled list color keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 187:
# line 522 "gram.y"
{ list = do_colorlist_keyword(yypvt[-1].num,color,
yypvt[-0].ptr);
if (!list) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled color list keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 189:
# line 533 "gram.y"
{ if (!do_color_keyword (yypvt[-1].num, color,
yypvt[-0].ptr)) {
twmrc_error_prefix();
fprintf (stderr,
"unhandled color keyword %d (string \"%s\")\n",
yypvt[-1].num, yypvt[-0].ptr);
ParseError = 1;
}
} break;
case 190:
# line 544 "gram.y"
{} break;
case 193:
# line 551 "gram.y"
{ do_string_savecolor(color, yypvt[-0].ptr); } break;
case 194:
# line 552 "gram.y"
{ do_var_savecolor(yypvt[-0].num); } break;
case 195:
# line 555 "gram.y"
{} break;
case 198:
# line 562 "gram.y"
{ if (Scr->FirstTime &&
color == Scr->Monochrome)
AddToList(list, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 199:
# line 567 "gram.y"
{
if (HasShape) Scr->SqueezeTitle = TRUE;
} break;
case 200:
# line 570 "gram.y"
{ list = &Scr->SqueezeTitleL;
if (HasShape && Scr->SqueezeTitle == -1)
Scr->SqueezeTitle = TRUE;
} break;
case 202:
# line 575 "gram.y"
{ Scr->SqueezeTitle = FALSE; } break;
case 203:
# line 576 "gram.y"
{ list = &Scr->DontSqueezeTitleL; } break;
case 206:
# line 581 "gram.y"
{
if (Scr->FirstTime) {
do_squeeze_entry (list, yypvt[-3].ptr, yypvt[-2].num, yypvt[-1].num, yypvt[-0].num);
}
} break;
case 207:
# line 589 "gram.y"
{} break;
case 210:
# line 596 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-2].ptr, (char *)
AllocateIconManager(yypvt[-2].ptr, NULLSTR,
yypvt[-1].ptr,yypvt[-0].num));
} break;
case 211:
# line 602 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-3].ptr, (char *)
AllocateIconManager(yypvt[-3].ptr,yypvt[-2].ptr,
yypvt[-1].ptr, yypvt[-0].num));
} break;
case 212:
# line 609 "gram.y"
{} break;
case 215:
# line 616 "gram.y"
{
AddWorkSpace (yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR, NULLSTR, NULLSTR);
} break;
case 216:
# line 619 "gram.y"
{
curWorkSpc = yypvt[-0].ptr;
} break;
case 218:
# line 625 "gram.y"
{} break;
case 221:
# line 632 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR, NULLSTR);
} break;
case 222:
# line 635 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR, NULLSTR, NULLSTR);
} break;
case 223:
# line 638 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR, NULLSTR);
} break;
case 224:
# line 641 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr, NULLSTR);
} break;
case 225:
# line 644 "gram.y"
{
AddWorkSpace (curWorkSpc, yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, yypvt[-0].ptr);
} break;
case 226:
# line 649 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-1].ptr, NULL, NULL, NULL);
} break;
case 227:
# line 652 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-2].ptr, yypvt[-1].ptr, NULL, NULL);
} break;
case 228:
# line 655 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, NULL);
} break;
case 229:
# line 658 "gram.y"
{
WMapCreateCurrentBackGround (yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr);
} break;
case 230:
# line 663 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-1].ptr, NULL, NULL, NULL);
} break;
case 231:
# line 666 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-2].ptr, yypvt[-1].ptr, NULL, NULL);
} break;
case 232:
# line 669 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr, NULL);
} break;
case 233:
# line 672 "gram.y"
{
WMapCreateDefaultBackGround (yypvt[-4].ptr, yypvt[-3].ptr, yypvt[-2].ptr, yypvt[-1].ptr);
} break;
case 234:
# line 677 "gram.y"
{} break;
case 237:
# line 684 "gram.y"
{ if (Scr->FirstTime)
AddToList(list, yypvt[-0].ptr, 0);
} break;
case 238:
# line 689 "gram.y"
{} break;
case 241:
# line 696 "gram.y"
{client = yypvt[-0].ptr;} break;
case 243:
# line 698 "gram.y"
{client = yypvt[-0].ptr;} break;
case 245:
# line 700 "gram.y"
{workspace = yypvt[-0].ptr;} break;
case 247:
# line 704 "gram.y"
{} break;
case 250:
# line 711 "gram.y"
{
AddToClientsList (yypvt[-0].ptr, client);
} break;
case 251:
# line 715 "gram.y"
{} break;
case 254:
# line 722 "gram.y"
{
AddToClientsList (workspace, yypvt[-0].ptr);
} break;
case 255:
# line 726 "gram.y"
{} break;
case 258:
# line 733 "gram.y"
{ if (Scr->FirstTime) AddToList(list, yypvt[-1].ptr, yypvt[-0].ptr); } break;
case 259:
# line 736 "gram.y"
{} break;
case 262:
# line 743 "gram.y"
{ AddToMenu(root, "", Action, NULLSTR, yypvt[-0].num,
NULLSTR, NULLSTR);
Action = "";
} break;
case 263:
# line 749 "gram.y"
{lastmenuitem = (MenuItem*) 0;} break;
case 266:
# line 756 "gram.y"
{
if (yypvt[-0].num == F_SEPARATOR) {
if (lastmenuitem) lastmenuitem->separated = 1;
}
else {
lastmenuitem = AddToMenu(root, yypvt[-1].ptr, Action, pull, yypvt[-0].num, NULLSTR, NULLSTR);
Action = "";
pull = NULL;
}
} break;
case 267:
# line 766 "gram.y"
{
if (yypvt[-0].num == F_SEPARATOR) {
if (lastmenuitem) lastmenuitem->separated = 1;
}
else {
lastmenuitem = AddToMenu(root, yypvt[-6].ptr, Action, pull, yypvt[-0].num, yypvt[-4].ptr, yypvt[-2].ptr);
Action = "";
pull = NULL;
}
} break;
case 268:
# line 778 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 269:
# line 779 "gram.y"
{
yyval.num = yypvt[-1].num;
Action = yypvt[-0].ptr;
switch (yypvt[-1].num) {
case F_MENU:
pull = GetRoot (yypvt[-0].ptr, NULLSTR,NULLSTR);
pull->prev = root;
break;
case F_WARPRING:
if (!CheckWarpRingArg (Action)) {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.warptoring argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
case F_WARPTOSCREEN:
if (!CheckWarpScreenArg (Action)) {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.warptoscreen argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
break;
case F_COLORMAP:
if (CheckColormapArg (Action)) {
yyval.num = F_COLORMAP;
} else {
twmrc_error_prefix();
fprintf (stderr,
"ignoring invalid f.colormap argument \"%s\"\n",
Action);
yyval.num = F_NOP;
}
break;
} /* end switch */
} break;
case 270:
# line 820 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 271:
# line 821 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
case 272:
# line 822 "gram.y"
{ yyval.num = -(yypvt[-0].num); } break;
case 273:
# line 825 "gram.y"
{ yyval.num = yypvt[-0].num;
if (yypvt[-0].num == 0)
yyerror("bad button 0");
if (yypvt[-0].num > MAX_BUTTONS)
{
yyval.num = 0;
yyerror("button number too large");
}
} break;
case 274:
# line 837 "gram.y"
{ ptr = (char *)malloc(strlen(yypvt[-0].ptr)+1);
strcpy(ptr, yypvt[-0].ptr);
RemoveDQuote(ptr);
yyval.ptr = ptr;
} break;
case 275:
# line 842 "gram.y"
{ yyval.num = yypvt[-0].num; } break;
}
goto yystack; /* reset registers in driver code */
}
# ifdef __RUNTIME_YYMAXDEPTH
static int allocate_stacks() {
/* allocate the yys and yyv stacks */
yys = (int *) malloc(yymaxdepth * sizeof(int));
yyv = (YYSTYPE *) malloc(yymaxdepth * sizeof(YYSTYPE));
if (yys==0 || yyv==0) {
yyerror( (nl_msg(30004,"unable to allocate space for yacc stacks")) );
return(1);
}
else return(0);
}
static void free_stacks() {
if (yys!=0) free((char *) yys);
if (yyv!=0) free((char *) yyv);
}
# endif /* defined(__RUNTIME_YYMAXDEPTH) */
|