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
|
2008-04-06 cheusov <vle@gmx.net>
* NEWS, configure.in:
version -> 1.10.11
NEWS: Release notes
* libmaa/Makefile.in: fixed: DESTDIR support
2008-02-17 cheusov <vle@gmx.net>
* configure.in, daemon.c, dictdplugin_judy.c, dictfmt.c, index.c, iswalnum.c, iswspace.c, lev.h, plugin.c, plugins_common.c, strategy.c, strategy.h:
fixed: lot of warning messages produced by icc-10 (Intel C Compiler)
2008-02-09 cheusov <vle@gmx.net>
* dictd.c:
timestamp message in log marker (log_option "timestamp")
is changed to :t: from :T:
because :T: begins client's full command (log_option "command")
2008-02-08 cheusov <vle@gmx.net>
* colorit.in: bashism fixed: echo -en -> more portable printf
2008-01-31 cheusov <vle@gmx.net>
* dict.c:
ADDED: -F|--flush option for flushing stdout after each definition/match.
It is useful in combination with -f
'XXX definitions found' is printed with -f (revert previous changes)
* dict.c, dictzip.c: copyright
* dictfmt.c:
FIXED: maximum length of headwords are limited to hardcoded constant
just by cutting the end of headword.
Now internal arrays are realloced automatically.
* INSTALL: spelling error fixed
* Makefile.in: -I. before -I${srcdir}
2008-01-27 cheusov <vle@gmx.net>
* index.c:
FIXED: while processing MATCH command unicity of only first column of
.index is checked, but fourth column (if present) should also be
checked.
2008-01-22 cheusov <vle@gmx.net>
* libmaa/Makefile.in:
arggram2c shoul be removed in target "distclean", not in "clean"
* libmaa/obstack.c:
fixed: gcc compilation warning (missed #include for abort(3))
2008-01-21 cheusov <vle@gmx.net>
* dictP.h, dictd.c:
FIXED: failure on Linux if --disable-plugin option is specified.
Now USE_PLUGIN macros is checks correctly.
2008-01-20 cheusov <vle@gmx.net>
* wcrtomb.c: fixed: warning generated by NetBSD/Alpha/GCC
2008-01-19 cheusov <vle@gmx.net>
* configure.in, Makefile.in:
CXX is detected using autoconf
detection of AR/RANLIB is removed, they are not used directly
libtool is run with --tag=CC and --tag=CXX for compiling C and C++ code
C++ compiler cpp preprocessor are now detected using autoconf
presence of fileno function is detected using autoconf
removed: checking for command ar, not used directly
* dict.c: removed: c99/c++ style comment markers
* dictfmt.c, index.c, index.h, lev.h, wcrtomb.c:
removed: c99/c++ style of comment markers
* libmaa/Makefile.in, libmaa/configure.in:
removed: AC_PROG_RANLIB. It is not used directly
libtool is run with --tag=CC when C code is compiled
(Now dict is compiled with c89 under NetBSD)
* libmaa/maaP.h:
removed: declaration of fileno and srandom
They are not used
removed: declaration of bcopy
2008-01-17 cheusov <vle@gmx.net>
* strategy.c: fixed: gcc warning
2008-01-12 cheusov <vle@gmx.net>
* Makefile.in:
'gmake install' now works fine even if dictd was configure from
the external "object"(any!!!) directory. Some other autobloat-based
projects can do the same.
* Makefile.in:
FIX: now dictd can be fully built from external "object" (any!) directory
just like many other autobloat-based projects can
That is, the following works fine now
cd obj-dir
/dir/to/dictd --with-libmaa
gmake
gmake install
* configure.in: date ---> touch
2008-01-11 cheusov <vle@gmx.net>
* libmaa/Makefile.in:
fixed: "install" target fails when configure and make are run from outside
source directory
2007-12-29 cheusov <vle@gmx.net>
* clientscan.l, servscan.l:
__FUNCTION__ -> __func__
Now dictd is fully ready to compiled with pcc, tested under NetBSD
* daemon.c: fix for pcc
* dictd.c: fixed: pcc warning
* daemon3.c, data.c, dict.c, dictd.c, dictzip.c, index.c, lev.h, libmaa/arg.c, libmaa/base26.c, libmaa/base64.c, libmaa/bit.c, libmaa/debug.c, libmaa/flags.c, libmaa/hash.c, libmaa/list.c, libmaa/log.c, libmaa/memory.c, libmaa/pr.c, libmaa/rnd.c, libmaa/set.c, libmaa/sl.c, libmaa/source.c, libmaa/string.c, libmaa/timer.c, libmaa/xmalloc.c, net.c, parse.c, plugin.c, snprintf.c, vsnprintf.c:
Not standard __FUNCTION__ macros is changed to __func__
All these changed sources can now be compiled with PCC (under NetBSD)
PCC - Portable C Compiler
* configure.in: inttypes.h header is checked
* dictfmt.c: fixed: pcc warnings, __FUNCTION__ -> __func__
* daemon.c: fixed: pcc warning
* dictP.h: a few comments added
2007-12-26 cheusov <vle@gmx.net>
* dictdplugin_popen.cpp:
fixed: missed header file, seen with gcc-4.3.
thanks to Martin Michlmayr for report
2007-11-10 cheusov <vle@gmx.net>
* Makefile.conf: no autoreconf
* NEWS: notes about release 1.10.10
* libmaa/acconfig.h: what is this for?
* configure.in:
FIXED: ooooooold bug. configure script was run twice for libmaa
version bumped to 1.10.10
* dictl.in: fix for NetBSD where locale -k shows nothing
2007-10-10 cheusov <vle@gmx.net>
* Makefile.in: minor fix in "clean" target
2007-09-29 cheusov <vle@gmx.net>
* clientparse.y, clientscan.l, colorit.in, dict.1.in, dict.c, dict.h, dictl.1.in, dictl.in:
DICT, DICTL and COLORIT programs DO NOT support option --pager|-P
anymore. The code supporting this is removed.
'-P -' is still allowed to not break the scripts.
"Pager" functionality should be easily be implemented by users.
See the following shell function.
mydict () { dict "$@" 2>&1 | colorit | less; }
Add it to you .profile (or whatever).
I appologize for breaking backward compatibilities.
* Makefile.in: minor fix in *clean targets
* libmaa/Makefile.in: minor fix in distclean target
2007-08-04 cheusov <vle@gmx.net>
* libmaa/configure.in: fix for autoheader
* dictfmt.c: copyright
2007-07-27 cheusov <vle@gmx.net>
* iswalnum.c:
fix for utf-8 symbols other than BMP
2007-06-18 cheusov <vle@gmx.net>
* test/dictd_test.in: fixed: dictfmt is not found
2007-05-29 cheusov <vle@gmx.net>
* dictfmt_index2suffix: mawk sucks
* test/testdb.cyrillic_1.conf, test/testdb.cyrillic_2.conf, test/testdb.cyrillic_4.conf, test/testdb.defstrat_1.conf, test/testdb.defstrat_2.conf, test/testdb.hello_1.conf, test/testdb.hello_2.conf, test/testdb.hello_3.conf, test/testdb.hello_4.conf, test/testdb.hello_5.conf, test/testdb.indexdata_1.conf, test/testdb.limits_1.conf, test/testdb.mixedcase_1.conf, test/testdb.smiley_1.conf, test/testdb.smiley_2.conf, test/testdb.smiley_3.conf, test/testdb.smiley_4.conf, test/testdb.smiley_5.conf:
no limits in most tests
* dictdplugin_dbi.c, dictdplugin_judy.c: compilation fixes
* NEWS, configure.in: 1.10.9 release
* daemon.c, dictd.8.in: limit_queries=0 means no limit
* NEWS: notes about fix with getopt_long argument
* NEWS: minor fixes
* NEWS: notes about "limit_childs" keyword
* defs.h, dictd.8.in, dictd.c, dictd.h, servparse.y, servscan.l:
option/variable/macro renamings: limit -> limit_childs
* NEWS, daemon.c, defs.h, dictd.8.in, dictd.c, dictd.h, servparse.y, servscan.l:
ADDED: new keyword 'limit_queries' for limiting a number of queries
that client may send to the server. It defaults to 2000.
minor fixes in NEWS
* dictfmt.c: better checking for required argument
* NEWS: note about 1.10.9 release
* dictfmt.1.in: minor fixes
* dict.1.in: new words about -f
* dict.1.in: minor fix
* daemon.c, defs.h, dictd.8.in, dictd.c, dictd.h, servparse.y, servscan.l:
ADDED: 'limit_time' option to 'global' dictd.conf section
See dictd.8 for the more information.
minor clean-ups: dict_daemon and dict_inetd function use global variable
client_delay
2007-05-28 cheusov <vle@gmx.net>
* test/dictd_cyrillic_3_res.expected.txt: forgot to commit it
* test/dictd_test.in, test/input.cyrillic_3.txt, test/testdb.cyrillic_2.conf, test/testdb.cyrillic_4.conf, configure.in:
new self tests
minor clean-ups
* dictd.8.in, index.c, strategy.c, strategy.h:
ADDED: Two new search strategies, 'first' and 'last'.
See dictd.8 for the information.
* dictd.c:
I like empty lines to better separate code into sections ;-)
* dictfmt_index2suffix, dictfmt_index2word:
rewritten. Now they use dictfmt -i/-I for sorting
fixes
clean-ups
* dictfmt.c:
fix with -i and -I
* dict.c:
-f sends error messages like 'No matches...', 'No definitions...',
'Invalid strategy...' etc. to stderr, not to the pager.
2007-05-27 cheusov <vle@gmx.net>
* test/dictd_test.in, test/testdb.cyrillic_2.conf:
commented test for dictfmt_index2word
* dictfmt_index2word: fixes
* dictfmt.c: -i and -I options fully support 4-column input
* index.c: removed: unnecessary code for --test-xxx
2007-05-24 cheusov <vle@gmx.net>
* dictfmt_index2word:
almost completely rewriten
* dictfmt.1.in, dictfmt.c:
-i and -I have the following format:
dictfmt -i|-I [options]
* dictfmt.1.in, dictfmt.c:
-i and -I twins are now fully implemented and documented.
See dictfmt(1) form documentation
* test/dictd_test.in: clean-ups
* test/dictd_test.in: nothing
* test/dictd_cyrillic_1_res.expected.txt, test/dictd_defstrat_2_res.expected.txt, test/dictd_hello_1_res.expected.txt, test/dictd_hello_2_res.expected.txt, test/dictd_hello_3_res.expected.txt, test/dictd_hello_4_res.expected.txt, test/dictd_hello_5_res.expected.txt, test/dictd_smiley_2_res.expected.txt, test/dictd_smiley_4_res.expected.txt, test/dictd_smiley_5_res.expected.txt, test/dictd_test.in:
fixed: <CR> symbol at the end of line...
* test/dictd_defstrat_2_res.expected.txt, test/dictd_test.in, test/input.defstrat_2.txt, test/testdb.defstrat_2.conf:
another tiny test for default_strategy
* test/dictd_defstrat_1_res.expected.txt, test/dictd_test.in, test/input.defstrat_1.txt, test/testdb.defstrat_1.conf:
test for dictd/dictfmt --default-strategy
* test/dictd_limits_1_res.expected.txt, test/dictd_test.in, test/input.limits_1.txt, test/testdb.limits_1.conf:
small test for limi_matches
* dictfmt.c, dictunformat.in:
00-database-dictfmt-X.Y.Z headword is generated
instead of 00-database-dictfmt
2007-05-23 cheusov <vle@gmx.net>
* dictd.h, index.c, servparse.y, servscan.l, defs.h, dictd.8.in, dictd.c:
ADDED: new keywords in "global" section. limit_matches and limit_defintions
See dictd.8 for information
* dictd.8.in: removed: docs about --test-* options
* index.c:
code clean-ups, added: dict_add_word_to_list function
* dict.c, dictd.c, dictzip.c: I don't like $ in the code
* dictd.c: copyright
* dictd.c:
The following option are removed:
-t --test <word>
--test-file <file>
--ftest <file>
--test-strategy <strategy>
--test-db <database>
--test-match
--test-nooutput
--test-idle
--test-show-info <database>
All these options were created for testing and debugging.
Actually -i and newly created --stdin2stdout is anough
(and better) for this.
* dictd.8.in: minor improvement
2007-05-22 cheusov <vle@gmx.net>
* daemon.c, dictd.8.in, dictd.c, dictd.h, servparse.y, servscan.l:
ADDED: site_no_banner, site_no_uptime, site_no_dblist keyword to
the configuration file ("global" options section).
See dictd.8 for more information.
* daemon.c, defs.h, dictd.8.in, dictd.c, dictd.h, examples/dictd4.conf, servparse.y:
'site' keyword has ben moved to 'global' ection of configuration file
'site' section is deprecated now, but is still supported,
error messages is logged if it used. Documentation and examples/ are
up-to-date
2007-05-19 cheusov <vle@gmx.net>
* dict.1.in: documentation for an option -f
* dict.c:
-m support -f too.
Matches have the following format <host><TAB><port><TAB><db><TAB><match>
-D, -S, -I, -H, -i and similar also support -f (formatted output)
2007-05-13 cheusov <vle@gmx.net>
* dict.c: new option -f partially implemented
2007-05-12 cheusov <vle@gmx.net>
* dictunformat.in:
Recently 4-column .index entries were introduced.
Now dictunformat is ready for this kind of dictionaries
and produces correct output.
* test/dictd_test.in, dictfmt.1.in, dictfmt.c, dictunformat.in:
added: dictfmt --without-ver option.
See dictfmt.1 for more information
* dictfmt.1.in:
some docs for 00-database-mime-header entry
minor fixes and changes
* dictfmt.1.in: documentation for --case-sensitive option
* dictfmt.1.in: documentation for --index-data-separator option
* test/db.expect.indexdata_1.index, test/dictd_test.in, test/testdb.indexdata.txt:
more complex test
* dictfmt.c, test/db.expect.indexdata_1.dict, test/db.expect.indexdata_1.index, test/dictd_indexdata_1_res.expected.txt, test/dictd_test.in, test/input.indexdata_1.txt, test/testdb.indexdata.txt, test/testdb.indexdata_1.conf:
added: tests --index-data-separator and --index-keep-orig dictfmt options
and appropriate dictd search
* dictfmt.c:
ADDED: --dictfmt --index-data-separator option that allows
to set index and data parts of the headword in .index file
(first and fourth columns respectively) completely independantly.
That is, the first column in .index file can now be treated
as an index and an optional fourth columns - as a data, all this for
MATCH protocol command.
* codes.h, daemon.c, data.c, data.h, defs.h, dict.c, dict.h, dictP.h, dictd.c, dictdplugin_dbi.c, dictdplugin_judy.c, dictzip.c, heap.c, heap.h, index.c, index.h, lev.h, md5.c, net.c, net.h, parse.c, parse.h, plugin.c, plugin.h, plugins_common.c, plugins_common.h, servparse.y, servscan.l, str.c, str.h, strategy.c, strategy.h, clientparse.y, clientscan.l:
removed: $Id$, I don't like it
* dictfmt.c: no $Id$
* dictfmt.c: code clean-ups
* dictunformat.in:
00-database-case-sensitive headword is also not output
* defs.h, dictd.c, dictfmt.c, index.c, index.h, str.c, str.h, test/db.expect.mixedcase_1.dict, test/db.expect.mixedcase_1.index, test/dictd_mixedcase_1_res.expected.txt, test/dictd_test.in, test/input.mixedcase_1.txt, test/testdb.mixedcase.txt, test/testdb.mixedcase_1.conf:
ADDED: support for case sensitive search.
For this, database should be created using dictfmt --case-sensitive.
In this case 00-database-case-sensitive headword is created which is
checked by dictd
2007-05-06 cheusov <vle@gmx.net>
* data.c, index.c, net.c: fixed: gcc4/NetBSD warning messages
2007-03-10 cheusov <vle@gmx.net>
* Makefile.in: fix: tab should begin the first line of action, not spaces
2006-12-13 cheusov <vle@gmx.net>
* NEWS: release notes for dictd-1.10.8
* dictd.8.in: added: info about --stdin2stdout
* configure.in: br
* configure.in: no messages about flex/bison and GNU archive site
* test/dictd_test, test/dictd_test.in, configure.in, dictunformat, dictunformat.in:
fixes for Solaris:
- awk version defaults to that detected by ./configure
- fix for idiotic Solaris shell
* libmaa/configure.in: 0.990 -> 1.0
* Makefile.in, configure.in: libmaa: 0.990 -> 1.0; dict: 1.10.7 -> 1.10.8
2006-12-12 cheusov <vle@gmx.net>
* dictd.c: added fcntl.h for open(2)
* dictd.c: only 012 descriptors are closed and reopened while daemon(3)-izing
2006-12-11 cheusov <vle@gmx.net>
* libmaa/Makefile.in: cp/install -> $(INSTALL)/$(INSTALL_DATA)
2006-12-10 cheusov <vle@gmx.net>
* Makefile.in: fixes in install/uninstall targets
* dictvd: del
* Makefile.in, configure.in: fixes related to libtools and building xxxxFLAGS
* Makefile.in: added: -lz
* Makefile.in: libtool needs .lo, not .o
* configure.in: no local zlib/regex/dmalloc anymore
* configure.in: only CFLAGS, CPPFLAGS and LDFLAGS...
* Makefile.in, configure.in:
removed: WCFLAGS SCFLAGS XTRACFLAGS WLDFLAGS XTRALDFLAGS XTRAHEADERS
Use CPPFLAGS, CFLAGS and LDFLAGS only!
* index.c:
altcompare removed
malloc_count_while_searching -= 1
* Makefile.in:
-static removed from libtool arguments Makefile.in
plugins are linked with LIBOBJS
* libmaa/configure.in:
removed: XTRALDFLAGS XTRACFLAGS WLDFLAGS WCFLAGS LDSHARED.
Only CPPFLAGS, CFLAGS and LDFLAGS are used.
removed: knowledge about how shared libraries are created on different
platforms
* Makefile.in:
libtool-ization
* configure.in:
fixed: lex/yacc presense checking (non-portable "which /path/to/exe
local_libmaa=0 by default
2006-12-09 cheusov <vle@gmx.net>
* libmaa/Makefile.in:
removed: ALLFLAGS, CFLAGS and LDFLAGS should be separate
* libmaa/Makefile.in: fixed: making prtest and memtest execs
* libmaa/Makefile.in:
removed: @RANLIB@, @WCFLAGS@, @XTRACFLAGS@, @WLDFLAGS@ @XTRALDFLAGS@
@LDSHARED@, @XTRAHEADERS@
libtool is used for creating shared library instead of dirty hacks
2006-11-28 cheusov <vle@gmx.net>
* colorit.in: gensub(,...1) -> gsub()
2006-11-25 cheusov <vle@gmx.net>
* index.c: fix for match nprefix/match exact/define
* test/dictd_cyrillic_1_res.expected.txt, test/dictd_hello_1_res.expected.txt, test/dictd_hello_2_res.expected.txt, test/dictd_hello_3_res.expected.txt, test/dictd_hello_4_res.expected.txt, test/dictd_hello_5_res.expected.txt, test/dictd_smiley_2_res.expected.txt, test/dictd_smiley_4_res.expected.txt, test/dictd_smiley_5_res.expected.txt, test/dictd_test:
to make a debug easier command itself is also logged
* test/dictd_test: new temporary file
* daemon.c, dictd.c, dictd.h:
added: --stdin2stdout option for debugging purposes (in addition to -i)
2006-11-19 cheusov <vle@gmx.net>
* dictd.8.in:
Unknowledges section removed because neyther regex/ nor zlib/ are a part
dictd distribution anymore
Other minor clean-ups
2006-11-10 cheusov <vle@gmx.net>
* test/dictd_test: better message is output in case of test failure
2006-09-19 cheusov <vle@gmx.net>
* index.c:
alcompare() function is implemented.
Side effect: sf.net bug #1554437 is fixed.
Side effect: for some sort of .index files MATCH command
should work faster.
TODO: remove malloc/free from altcompare.
2006-07-16 cheusov <vle@gmx.net>
* NEWS, configure.in:
updates for dictd-1.10.7
a few fixed typos in NEWS
2006-07-14 cheusov <vle@gmx.net>
* dictd.c:
FIXED: nmap utility of just a client that aborts connection for any reason
can cause dictd server to exit with error on NetBSD and probably
other OSes. This is because accept(2) returns ECONNABORTED which
is treated as a uncritical error on Linux-only and
as a critical error on all other OSes.
Affected versions: 1.4.9-1.10.6
2006-07-13 cheusov <vle@gmx.net>
* dictd.c:
fixed: `cat /var/run/dictd.pid` != pidof (dictd).
Writing pid should happen after daemon(3)
2006-07-03 cheusov <vle@gmx.net>
* libmaa/configure.in: 0.99 ---> 1.990
* NEWS: additions to 1.10.6 release
* configure.in:
removed: code that does not work with BSD 'which'
1.10.5 ---> 1.10.6
* dictd.c: removed: unnecessary code
2006-06-23 cheusov <vle@gmx.net>
* test/dictd_test: nothing
* test/dictd_cyrillic_1_res.expected.txt, test/dictd_test:
Not only 'exact' search strategy is tested now.
* index.c:
fixed: 'word' strategy works incorrectly on OpenBSD and probably others
because of incorrect isspacepuncttab array initizlization.
* test/dictd_cyrillic_1_res.expected.txt, test/dictd_test:
all search strategies are tested
* test/dictd_cyrillic_1_res.expected.txt, test/dictd_hello_1_res.expected.txt, test/dictd_hello_2_res.expected.txt, test/dictd_hello_3_res.expected.txt, test/dictd_hello_4_res.expected.txt, test/dictd_hello_5_res.expected.txt, test/dictd_smiley_2_res.expected.txt, test/dictd_smiley_4_res.expected.txt, test/dictd_smiley_5_res.expected.txt, test/dictd_test:
minor fixes
2006-06-22 cheusov <vle@gmx.net>
* test/db.expect.cyrillic_1.dict, test/db.expect.cyrillic_1.index, test/dictd_cyrillic_1_res.expected.txt, test/dictd_hello_1_res.expected.txt, test/dictd_hello_2_res.expected.txt, test/dictd_hello_3_res.expected.txt, test/dictd_hello_4_res.expected.txt, test/dictd_hello_5_res.expected.txt, test/dictd_smiley_2_res.expected.txt, test/dictd_smiley_4_res.expected.txt, test/dictd_smiley_5_res.expected.txt, test/dictd_test, test/testdb.cyrillic.txt, test/testdb.cyrillic_1.conf:
a few new tests, fixes, improvements
* test/dictd_smiley_1_res.expected.txt, test/dictd_smiley_3_res.expected.txt, test/dictd_test:
removed: too big files from testing
2006-05-27 cheusov <vle@gmx.net>
* dictd.c, dictfmt.1.in, dictfmt.c, dictunformat, index.c, libmaa/base64.c, libmaa/maa.h:
added: b64_decode_buf function to libmaa library
index.c:dict_word_create: minor speed-ups, avoided use of malloc()
dictfmt --index-keep-orig create (if necessary) fourth column
in .index file that keeps original headword which is returned
by MATCH command. See dictfmt.1 for details.
dictd: If opening a pid file of log file failed, error messages are printed
to stderr.
2006-05-26 cheusov <vle@gmx.net>
* libmaa/hash.c:
FIXED: sf.net bug #1463396
* Makefile.in: make --> $(MAKE)
* NEWS, configure.in: version --> 1.10.5
2006-05-19 cheusov <vle@gmx.net>
* daemon3.c: new #includes added
2006-05-13 cheusov <vle@gmx.net>
* daemon.c:
FIXED: In case database_exit directive is used in dictd.conf
SHOW DB command returns incorrect number of databases available.
Afected versions: 1.10.2 -- 1.10.4
2006-05-06 cheusov <vle@gmx.net>
* configure.in, daemon3.c, dictP.h, dictd.c, net.c:
When available, system-wide daemon(3) function
is used for becoming a daemon.
2006-04-15 cheusov <vle@gmx.net>
* dictd.c:
In dictd-1.9.14 dictd creates log file being root and than releases
root priviledges. This was bad idea because log file may have % sign
and may be used as a pattern for log files.
Now older behaviour is restored, i.e.
log file is created after releasing root priviledges.
If you want to create log file under /var/log directory, create
/var/log/dictd with appropriate permissions and create log files there.
I apologize for inconvenience and breaking backward compatibility.
* NEWS: typo fixed
2006-04-09 cheusov <vle@gmx.net>
* libmaa/maaP.h, dictP.h: removed obsolete code
2006-04-08 cheusov <vle@gmx.net>
* libmaa/Makefile.in, libmaa/decl.h, libmaa/maaP.h, libmaa/memtest.c, decl.h, deps, dictP.h, dictunformat:
decl.h files seem obsolete to me. They cause problrems, do not help.
2005-12-12 cheusov <vle@gmx.net>
* NEWS:
new notes
* NEWS:
typo fixed
* NEWS, configure.in, dictd.c, net.c:
FIX: pid file was created with 0666 permissions
* dictd.c:
minor fixes by Kirk Hilliard
2005-12-08 cheusov <vle@gmx.net>
* NEWS:
Notes about regex/ and zlib/
* configure.in, dictd.conf, examples/dictd1.conf:
Version: 1.10.2 ---> 1.10.3
Another example config file has been moved to examples/
* NEWS:
Notes about 1.10.3 release
* libmaa/config.guess, libmaa/config.sub: updated
* config.guess, config.sub:
updated
2005-12-06 cheusov <vle@gmx.net>
* examples/dictd_complex.conf:
fixes for m4 shipped with *BSD and Solaris that expands "index" to -1
even if it is used without arguments.
* examples/dictd4.conf, examples/dictd_virtual.conf: minor fixes
2005-12-05 cheusov <vle@gmx.net>
* dict.c:
fixed: compilation bugs (conformance to ANSI C)
* dictP.h, libmaa/maaP.h:
fixed: compilation bugs because of alloca
2005-12-03 cheusov <vle@gmx.net>
* dictd.8.in, example.conf, example.dictrc, example.site, example2.conf, example3.conf, example_complex.conf, example_mime.conf, example_plugin_dbi.conf, example_popen.conf, example_virtual.conf, examples/dictd4.conf:
Example files have been moved to examples/ directory
A few references to these files from dictd.8
* INSTALL, dictd.8.in, examples/dict1.conf, examples/dictd2.conf, examples/dictd3.conf, examples/dictd4.conf, examples/dictd_complex.conf, examples/dictd_mime.conf, examples/dictd_plugin_dbi.conf, examples/dictd_popen.conf, examples/dictd_site.txt, examples/dictd_virtual.conf:
Example configuration files for 'dictd' and 'dict'
have been moved to example/ directory
* dictd.8.in:
fixed: missing .RE
* colorit.1.in, dict.1.in, dictd.8.in:
minor changes in FILES section of man pages
* Makefile.in, dictd.8.in, dictfmt_plugin, dictfmt_virtual, dictfmt_virtual.1:
Files and directories in .1 and .8 are set according to ./configure options
removed: dictfmt_virtual, dictfmt_plugin utilities.
Configure plugin or virtual databases using dictd.conf file
* colorit.1.in, configure.in, dict.1.in, dictd.8, dictd.8.in:
File names (and optionally directories) in manual pages
are specified according to ./configure options
* dict.c:
fixed (assert(3)):
dict -M -S
dict -M -D
dict -M <query>
2005-11-30 cheusov <vle@gmx.net>
* colorit.1, colorit.1.in, configure.in, dict.1, dict.1.in, dictfmt.1, dictfmt.1.in, dictfmt_index2suffix.1, dictfmt_index2suffix.1.in, dictfmt_index2word.1, dictfmt_index2word.1.in, dictl.1, dictl.1.in, dictunformat.1, dictunformat.1.in, dictzip.1, dictzip.1.in:
renamed:
dict.1 ---> dict.1.in
dictd.8 ---> dictd.8.in
...
in order to make absolute paths in man pages
dependant on ./configure options
* NEWS, dictd.8: minor fixes
2005-11-21 cheusov <vle@gmx.net>
* libmaa/log.c:
FIXED: buffer overflow (segfault) in log_{error,info} functions.
This may happen when dictd is run with -L option
and it definitely crashes on condition that:
- -dinit option is enabled;
- Japanese of Chinese dictionary created by dictfmt-1.9.14 (or later)
is in dictd.conf
- -L
This is due to too long 00-database-alphabet "definition"
2005-11-20 cheusov <vle@gmx.net>
* libmaa/log.c:
fixed: strange segfault in log_info function under Interix 3.5
(4096-byte array on stack + va_XXX calls)
* dictd.c: noise exit after fatal error
* Makefile.in: install -m 755 ====> mkdir -p
* example.conf: fixed: missing space
2005-11-19 cheusov <vle@gmx.net>
* dictd.8, index.c, index.h, strategy.c, strategy.h:
ADDED: `nprefix' search strategy. See dictd.8 for more information.
No plugin support yet.
2005-11-15 cheusov <vle@gmx.net>
* test/testdb.hello_1.conf, test/testdb.hello_2.conf, test/testdb.hello_3.conf, test/testdb.hello_4.conf, test/testdb.hello_5.conf, test/testdb.smiley_1.conf, test/testdb.smiley_2.conf, test/testdb.smiley_3.conf, test/testdb.smiley_4.conf, test/testdb.smiley_5.conf:
fixed: Some m4 shipped with Solaris/MacOS-/... translate index to -1
when no arguments are specified. Solution: index ===> `index'
* test/dictd_test: fix for Solaris-9: $PWD ===> `pwd`
2005-11-13 cheusov <vle@gmx.net>
* dictP.h: fixed: defining __FUNCTION__
* dictd.8: minor fix
2005-10-30 cheusov <vle@gmx.net>
* test/dictd_smiley_2_res.expected.txt, test/dictd_smiley_3_res.expected.txt, test/dictd_smiley_4_res.expected.txt, test/dictd_smiley_5_res.expected.txt, test/dictd_hello_1_res.expected.txt, test/dictd_hello_2_res.expected.txt, test/dictd_hello_3_res.expected.txt, test/dictd_hello_4_res.expected.txt, test/dictd_hello_5_res.expected.txt, test/dictd_smiley_1_res.expected.txt, test/dictd_test, test/testdb.hello_1.conf, test/testdb.hello_2.conf, test/testdb.hello_3.conf, test/testdb.hello_4.conf, test/testdb.hello_5.conf, test/testdb.smiley_1.conf, test/testdb.smiley_2.conf, test/testdb.smiley_3.conf, test/testdb.smiley_4.conf, test/testdb.smiley_5.conf:
lots of new tests for 'dictd'
fixes, code clean-ups and improvements of tests for 'dictfmt'
* daemon.c: fixes for inetd (daemonS_out ---> 1)
2005-10-15 cheusov <vle@gmx.net>
* dict.c:
minor fixes with pager, patches by Kirk Hilliard
* dictfmt.1, dictl.1:
fixed: sf.net bug #1227624, patches by micha137
* dictl.in:
fixed: sf.net bug #1223489, patches by micha137
* test/dictd_test: minor fixes in printf
2005-09-22 cheusov <vle@gmx.net>
* libmaa/Makefile.in: -fPIC is always enabled for libmaa
2005-09-21 cheusov <vle@gmx.net>
* libmaa/maaP.h: fixed: compilation bug (alloca)
* decl.h:
fixed: compilation bug undet Solaris
* configure.in, setenv.c:
'setenv' function implementation (Solaris is affected)
2005-09-06 cheusov <vle@gmx.net>
* NEWS: updated
* NEWS: release time
* NEWS, configure.in, dictd.8:
documentation updated
version: 1.10.1 --> 1.10.2
* dictd.8:
added: short description for a list of special headwords in .index file
* NEWS: updates for 1.10.2
* dictfmt.1:
added: documentation for --utf8 option
* NEWS: updated for 1.10.2
2005-09-05 cheusov <vle@gmx.net>
* dictP.h, libmaa/maaP.h:
fixed: compiler warnings on FreeBSD5
* NEWS: *** empty log message ***
2005-09-02 cheusov <vle@gmx.net>
* dictfmt.c, str.c:
fixes for FreeBSD-4
2005-08-26 cheusov <vle@gmx.net>
* colorit.in:
new command implemented: gensub
2005-08-25 cheusov <vle@gmx.net>
* Makefile.in:
fixes in 'distclean' target
* test/dictd_test:
minor changes
* dictfmt.c, test/db.expect.smiley_1.index:
FIXED: dictfmt MUST produce the same output on all platforms.
- -k 1,3 is used instead of -k 1,1, so all columns are used in sorting.
- LC_ALL environment variable is ALWAYS set to C for 'sort' utility,
otherwise sorting order depends on locale (LANG and LC_xxx variables).
2005-08-18 cheusov <vle@gmx.net>
* test/db.expect.hello_1.dict, test/db.expect.hello_1.index, test/db.expect.hello_2.dict, test/db.expect.hello_2.index, test/db.expect.hello_3.dict, test/db.expect.hello_3.index, test/db.expect.hello_4.dict, test/db.expect.hello_4.index, test/db.expect.hello_5.dict, test/db.expect.hello_5.index, test/dictd_test, test/testdb.hello.txt:
added: new tests for dictfmt
2005-08-17 cheusov <vle@gmx.net>
* test/db.expect.smiley_1.dict, test/db.expect.smiley_1.index, test/db.expect.smiley_2.dict, test/db.expect.smiley_2.index, test/db.expect.smiley_3.dict, test/db.expect.smiley_3.index, test/db.expect.smiley_4.index, test/db.expect.smiley_5.dict, test/db.expect.smiley_5.index, test/dictd_test, test/testdb.smiley.txt, Makefile.in:
more tests
fixes, code-clean-ups
* test/db.expect.dict, test/db.expect.index, test/db.expect.smiley_1.dict, test/db.expect.smiley_1.index, test/db.expect.smiley_2.dict, test/db.expect.smiley_2.index, test/db.expect.smiley_3.dict, test/db.expect.smiley_3.index, test/db.expect.smiley_4.dict, test/db.expect.smiley_4.index, test/dictd_test, test/testdb.c5.txt, test/testdb.e.txt, test/testdb.f.txt, test/testdb.h.txt, test/testdb.h.txt.dict, test/testdb.h.txt.index, test/testdb.j.txt, test/testdb.p.txt, test/testdb.smiley.txt:
added: files for automatic testing, and testing script itself
2005-08-15 cheusov <vle@gmx.net>
* NEWS, dictfmt.1:
minor fixes
2005-08-14 cheusov <vle@gmx.net>
* index.c:
printf(...) --> PRINTF (DBG_SEARCH, (...))
* dictfmt.c:
fixed: 'dictfmt --allchars' run 'sort' utility with no C locale, while
dictd requires this type of sorting.
Affected versions: all dictfmt version providing --allchars option.
It is strongly recommended to recreate dictionary
which was built with --allchars option.
2005-08-13 cheusov <vle@gmx.net>
* dictfmt.c:
added: -i option
2005-07-26 cheusov <vle@gmx.net>
* daemon.c:
FIXED: 'SHOW DB' command shows the special entry '--exit--'
as a normal database which cannot be used used for searching.
This contradicts rfc-2229.
Use 'SHOW SERVER' command to see where the default search stops.
* dictfmt.c:
FIXED: all these years dictfmt worked incorrectly
because not only index part of .index was used in the sorting.
A a result .index file could look like
gawk:sample programs CXyl ON
gawk:scalar constants +sR RS
gawk:scanning an array BfKx k7
! gawk Se I3e
gawk:simple sed Cpm/ xZ
gawk:single character fields pQy So
gawk:special caveats 7nN Z2
Pay attention to the line preceded by !.
It leads to the word 'gawk' was never found.
Now the external utility 'sort' is run with additional options:
-t <TAB> -k 1,1
Affected versions of dictfmt: 1.6.1 - 1.10.1
2005-07-20 cheusov <vle@gmx.net>
* dictfmt.c:
fixed: typo in error message
2005-07-17 cheusov <vle@gmx.net>
* index.c:
fixed: sometimes the regexp strategy may incorrectly
because of optimization code and strange binary search.
Thanks to Slava Kravchenko for bug report.
Affected version: 1.4.9 - 1.10.1
2005-06-09 cheusov <vle@gmx.net>
* NEWS: NEWS file update
* NEWS, configure.in:
news updated
version --> 1.10.1
2005-06-08 cheusov <vle@gmx.net>
* dictfmt.c:
minor fix
* libmaa/decl.h:
fixed: compilation bug on smarc64/xxxBSD.
Thanks to micha137 for bu report and patch.
2005-05-28 cheusov <vle@gmx.net>
* index.c:
By default 'dictd' is run in UTF-8 mode unless you ./configure it
with --with-system-utf8-funcs option
* dictfmt.c:
added: --utf8 option. Use it to create utf-8 dictionaries.
Use of '--locale ru_RU.UTF-8' is deprecated unless you
./configure dict packages with --with-system-utf8-funcs
* dictP.h:
MB_CUR_MAX__: 7 --> 6
* dict.1:
fixed: typo. Thanks to A Costa for reporting the bug report.
2005-04-14 cheusov <vle@gmx.net>
* dictd.8, dictd.c, dictd.h, servparse.y, servscan.l:
By default dictd, when running as daemon, writes a PID
to /var/run/dictd.pid file. This can be overriden by
'pid_file' keyword in dictd.conf (See dictd.8) of command line
option '--pid-file'
Thanks to Josef Novak for sudgestion and patch.
2005-04-13 cheusov <vle@gmx.net>
* dictd.8:
fixed: dictd.8 says that 'lev' strategy doesn't work
with utf-8 dictionaries, but it does since release 1.9.13
* configure.in, dictP.h, dictd.c, dictfmt.c, index.c, lev.h, mbrlen.c, mbrtowc.c, mbstowcs.c, mbtowc.c, str.c, wcrtomb.c, wctomb.c:
unless 'dictd' is configured using './configure --with-system-utf8-funcs'
'dictd' and 'dictfmt' use built-in UTF-8/UCS functions, i.e.
there is no need for --locale xx_YY.UTF-8. As a result
'dictd' can be compiled and run on platforms
which doesn't have UTF-8 locale.
2005-04-12 cheusov <vle@gmx.net>
* configure.in, NEWS:
NEWS update (1.10.0 release)
version: 1.9.15 ---> 1.10.0
* example.conf:
added: section containing global option
* example_mime.conf:
added: Yet another example demonstrating `database_mime' keyword
* configure.in, dictP.h:
fixed: compilation bugs on OpenBSD-3.4 which doesn't provide
CODESET macro in <langinfo.h>
* NEWS: nothing
* dict.1, dictfmt.1:
Documentation update
2005-04-09 cheusov <vle@gmx.net>
* plugin.c, servparse.y:
fixed: `default_strategy' keyword is not implemented
for `database_plugin' section
2005-04-01 cheusov <vle@gmx.net>
* daemon.c:
fixed: database_mime + invisible
* dictfmt.c:
fix
2005-03-31 cheusov <vle@gmx.net>
* INSTALL:
minor changes
* dictd.8:
Documentation for `database_mime' section
* dictfmt.c:
The special headword 00-database-mime-header is never wrapped
* example_plugin_dbi.conf:
better explanation
2005-03-30 cheusov <vle@gmx.net>
* index.c:
indentation
* servparse.y:
nothing
* dict.c:
added: -M option to `dict' for sending OPTION MIME command to DICT server
2005-03-29 cheusov <vle@gmx.net>
* dictunformat, servparse.y, dictfmt.c, defs.h, dictd.c, daemon.c:
dictfmt, dictd:
added new option --mime-header to `dictfmt'. If
applied, `dictfmt' creates the special headword
00-database-mime-header, `dictd' read it while initializing the
database and prepend definitions with it (if OPTION MIME command was
sent by client). Ability to set the MIME header for the database is
useful in combination with `database_mime' keyword in dictd.conf,
See dictd.8 for more information.
`dictunformat' skips 00-database-mime-header headword
* index.c: nothing
* defs.h, dictd.c, index.c, index.h, servparse.y, servscan.l, daemon.c:
added: database_mime, dbname_nomime and dbname_mime keywords
in dictd configuration file
Example:
database cool_db___nomime {...}
database cool_db___mime {...}
# The following section adds new database cool_db
# When client acceses it and DOES send OPTION MIME command
# to dictd it actually accesses the database `cool_db___mime'
# otherwise (no MIME OPTION command was set)
# the database `cool_db___nomime' is used.
# This allows server to provide databases with support
# of both plain text and formatted definitions
# with appropriate MIME header (roff, html etc...)
database_mime cool_db {
dbname_mime "cool_db___mime"
dbname_nomime "cool_db___nomime"
}
2005-03-28 cheusov <vle@gmx.net>
* NEWS, dictd.8, dictd.c, dictd.h, servparse.y, servscan.l:
ADDED: Global Setting section in dictd.conf
Now configuration files can include all required option
(command line option are no required anymore)
dictd.conf may look like this
global {
port 2628
delay 600
depth 10
limit 100
timestamp 0
log_option "found"
log_option "notfound"
log_option "stats"
log_option "client"
debug_option "init"
locale ru_RU.UTF-8
add_strategy "phonetic" "Phonetic search"
add_strategy "reverse" "Full text search in definitions"
# listen_to 127.0.0.1
# syslog
# syslog_facility daemon
log_file "/var/log/dictd.log"
# fast_start
# without_mmap
}
2004-12-23 cheusov <vle@gmx.net>
* NEWS: updates in NEWS
* libmaa/Makefile.in, libmaa/arggram2c, libmaa/arggram2c.in, libmaa/configure.in, configure.in:
changes necessary for Solaris which loves old awk
1.9.14 --> 1.9.15
2004-12-13 cheusov <vle@gmx.net>
* Makefile.in: man plugin removed
2004-11-25 cheusov <vle@gmx.net>
* NEWS:
added information about 1.9.15 release
2004-11-19 cheusov <vle@gmx.net>
* dictd.8, dictfmt.c, dictunformat, index.c, defs.h:
For 8-bit databases (non-ASCII and non-UTF8), `dictfmt' generates
special headword 00-database-8bit-new
(earlier versions generated 00-database-8bit)
When `dictd' encounter `00-database-8bit' headword in .index file,
it logs error message and exits
* example2.conf:
demonstration of new keyword `default_strategy'
* dictfmt.c, index.c:
Because of sorting order of 'sort -df' and `index.c:compare_alnumspace'
differ, 8-bit (non-ASCII and non-UTF-8) databases are built
using `sort' utility whithout options and with LC_ALL=C
index.c is changed appropriately.
NOTE!
This makes `dictd' incompatible
with 8-bit databases built using dictfmt older than 1.9.15!!!
2004-11-17 cheusov <vle@gmx.net>
* libmaa/arg.c:
removed: C++ style comments
* libmaa/hash.c, libmaa/sl.c, libmaa/string.c, libmaa/arg.c, lev.h, plugins_common.c, plugins_common.h, strategy.c, strategy.h, dict.c, dictdplugin_judy.c, dictzip.c, index.c, daemon.c:
fixed: a few warning messages produced by gcc
2004-11-07 cheusov <vle@gmx.net>
* libmaa/log.c:
code clean-ups
* dictd.c, index.c:
better logging
2004-10-12 cheusov <vle@gmx.net>
* Makefile.in, defs.h, dictd.8, dictd.c, index.c, plugin.c, servparse.y, servscan.l:
ADDED: `default_strategy' key word in configuration file.
This allows to set default search strategy (`.') per database.
See dictd.8 for more info
Documentation update
* daemon.c, dictd.c:
FIXED: `dictd' dies when client tries to obtain information
about virtual database (SHOW INFO <virt_db>).
lots of `const' modifier in daemon.c
added: --test-show-info option to `dictd'
* daemon.c, data.c, dictd.c, index.c, plugin.c:
DICT_EXACT --> DICT_STRAT_EXACT, etc.
* dictfmt.1, dictfmt.c:
added: --default-strategy option.
Sets the default search strategy for the database.
It will be used instead of strategy '.'.
Special entry 00-database-default-strategy is created for this purpose.
This option may be useful, for example,
for dictionaries containing mainly phrases but the single words.
In any case, use this option
if you are absolutely sure what you are doing.
dictfmt.1 update
* strategy.c, strategy.h:
added: functions `get_strategy', `lookup_strategy_ex'
DICT_EXACT --> DICT_STRAT_EXACT, DICT_PREFIX --> DICT_STRAT_PREFIX etc.
adde: new define DICT_STRAT_DOT for strategy `.'
* libmaa/log.c:
`log_syslog (NULL)' closes syslog
`log_file (NULL, NULL)' closes file for logging
`log_stream (NULL, NULL)' closes FILE* stream for logging
* libmaa/maa.h:
debugging information switched on using -d option of dictd
is logged to syslog/file/FILE_stream, but printf'ed to stdout.
2004-10-08 cheusov <vle@gmx.net>
* index.c:
fixed: The function `dict_search_bmh' works incorrectly in utf-8 mode
on non-glibc systems, e.g. FreeBSD.
As a result `suffix', `substring' and `word' work incorrectly
with UTF-8 databases.
* libmaa/Makefile.in:
./ --> awk -f
2004-10-06 cheusov <vle@gmx.net>
* configure.in, dictP.h, dictd.c, iswalnum.c, iswspace.c, towlower.c:
`_ALL_SOURCE' macros is define on Microsoft Interix in dictP.h file
added: `iswalnum.c', `iswspace.c', `towlower.c' files to always
support UTF-8 on platforms which do not provide mentioned functions
(FreeBSD4.X / MS Interix)
`wait3' is replaced for `waitpid' if it is unavailable (Interix)
checks for the function `initgroups' which is unavailable on Interix
`echo -en' is replaced for `printf' in configure.in
`AC_FUNC_MMAP' is replaced for `AC_CHECK_FUNC(mmap)'
because `mmap' work perfectly on Windows (Cygwin and Interix).
`AC_FUNC_MMAP' implements too strict tests
As a result `mmap' will be used in `dictd' if
it is built on the latest versions of Cygwin or Interix
`dictd' has been slightly tested on Interix (SFU-3.0).
It seems it works perfectly both as Interix daemon and Windows service
with ASCII databases in the following configurations:
w2k workst/server + GNU make-3.76/3.80 + gcc-2.7.2.3/egcs-20000731 +
yacc/bison
NOTE: GNU make is needed for building `dictd'
* getopt.c:
fixed: compilation bug on Microsoft Interix.
_ALL_SOURCE macro is defined if __INTERIX or __OPENNT are defined
* net.c:
`ioctl(fd, TIOCNOTTY, 0);' is not called on MS Interix/Cygwin/HP-UX
if there is no macro `TIOCNOTTY'.
As a result net.c can be compiled successfully on Interix
2004-10-05 cheusov <vle@gmx.net>
* libmaa/xmalloc.c:
compiler warning message fixed
2004-10-04 cheusov <vle@gmx.net>
* dictd.c:
fix: logging is directed to stderr, when -i option applied
2004-09-21 cheusov <vle@gmx.net>
* dictd.8:
typos fixed
* configure.in:
nothing serious
2004-07-08 cheusov <vle@gmx.net>
* dictdplugin_dbi.c:
'utf8' flag is set TRUE by default
'all_chars' flag is set to FALSE by default, unless 00-database-allchars
is present in database
added new options: "all_char" and "utf8"
* dictunformat, dictunformat.1:
documentation update
2004-06-15 cheusov <vle@gmx.net>
* configure.in:
fixed: because of '-lc -lc' passed to linker executables
cannot be built on latest cygwin
2004-06-06 cheusov <vle@gmx.net>
* NEWS: corrections
* libmaa/configure.in: *** empty log message ***
* libmaa/configure.in:
libmaa version ==> 0.99
* Makefile.in, configure.in:
version ==> 1.9.14
* NEWS:
updated to 1.9.14
* NEWS:
fixed a typo
2004-05-30 cheusov <vle@gmx.net>
* libmaa/timer.c:
a few checks for NULL
* dictd.c:
exit status of child processes is logged with '--log server' option.
code clean-ups
* dictd.c, net.c:
detaching from terminal again
* libmaa/arggram2c: comments changed
2004-05-28 cheusov <vle@gmx.net>
* mbrlen.c, mbrtowc.c, mbstowcs.c:
fixed: on systems having no mbrlen(3) function (FreeBSD4),
dictfmt assert(3)s
if run with 8-bit --locale option and headword contains
0xFF or 0xFE symbols (for exsmple, KOI8-R and CP1251 character sets).
2004-05-25 cheusov <vle@gmx.net>
* dictd.8: dosumentation update
2004-05-24 cheusov <vle@gmx.net>
* dictfmt.c:
"The original data was distributed..." message is wrapped to 72 (default)
columns even if '--columns 0' was specified.
* dictfmt.c:
Special 00-database-XXX headwords do not affect 00-database-alphabet,
i.e. only characters from "real" headwords
are added to alphabet.
This makes LEV search strategy a little faster,
especially search in dictionaries
containing non-Latin symbols like Cyrillic.
* dict.1, dict.c:
If a connection to DICT server faild, dict exits with exit status 41
documentation update
2004-05-21 cheusov <vle@gmx.net>
* dictd.8, dictd.c, net.c, net.h:
dictd: added --listen-to option for binding socket to the specified address
documentation update
2004-05-16 cheusov <vle@gmx.net>
* libmaa/configure.in, libmaa/log.c:
Where vsyslog function is determined by autoconf
but the platform-dependant #defines
* libmaa/log.c:
code clean-ups: duplicated code is separated into a function
* dictd.c, net.c:
'dictd' opens a log file (-L option) before releasing root priviledges.
As a result log file can be created under /var/log directory
log file and syslog is opened once.
The error messages of sanity checks are written to log file (or syslog)
"close everything" section has been removed from net.c:net_detach
This is necessary because we open log file
before detaching from a terminal
* dictfmt.c:
-t option implies '--columns 0' to preserve original formatting
2004-05-15 cheusov <vle@gmx.net>
* daemon.c:
fixed: SHOW INFO command sends incorrect data to the client if
the information about database is set using 'info' keyword.
Affected versions: 1.9.12-1.9.13
2004-05-14 cheusov <vle@gmx.net>
* libmaa/Makefile.in, libmaa/arg.c, libmaa/arggram.txt, libmaa/arggram2c, libmaa/argtest.c, libmaa/argtest.in, libmaa/argtest.out:
fixed: arg_argify parses string incorrectly, for example,
for the input 1''2''3''4 it produces single token 1'''.
As a result 'dictd' may parse TCP commands incorrectly.
arg_argify is fully reimplemented and now uses Mealy machine
similar to that used by lex and flex.
argtest.c is reimplemented
more tests for arg_argify function have been added
* dictdplugin_dbi.c: fixed: warning message produced by compiler
* NEWS: fixed misspell
2004-04-26 cheusov <vle@gmx.net>
* codes.h:
added: missing response code
* dict.1, dict.c:
exit status again: fixes, improvements, documentation update
2004-04-23 cheusov <vle@gmx.net>
* dict.c:
In case of an error, non-zero exit status returned by 'dict'
* daemon.c:
more information status message printed by dictd
2004-04-05 cheusov <vle@gmx.net>
* dictd.8, dictd.c:
SIGUSR1 causes dictd to unload databases. Then dictd returns 420 status
(instead of 220). To load databases again, send SIGHUP signal. Because
database files are mmap'ed(2) , it is impossible to update them while
dictd is running. So, if you need to update database files and reread
configuration file, first, send SIGUSR1 signal to dictd to unload
databases, update files, and then send SUGHUP signal to load them again.
2004-03-24 cheusov <vle@gmx.net>
* example_plugin_dbi.conf: revert --> reverse
* example_plugin_dbi.conf, NEWS, configure.in:
version ==> 1.9.13
another sample strategy for DBI plugin
NEWS file update
* dictd.c, dictdplugin_dbi.c:
code clean-ups
* plugin.c:
log plugin failure to stderr
2004-03-23 cheusov <vle@gmx.net>
* dictd.c, dictdplugin_dbi.c:
fixes for call dictdb_free
2004-03-22 cheusov <vle@gmx.net>
* index.c:
fixed: if database has no 00-database-alphabet headword,
"global" alphabet is built incorrectly. As a result
dictd may work (FreeBSD - affected) incorrectly with LEV strategy.
Affected versions: 1.9.12
2004-03-21 cheusov <vle@gmx.net>
* Makefile.in, configure.in, dictdplugin_dbi.c, example_plugin_dbi.conf:
ADDED: plugin using libdbi library for implementing DICT database using
SQL server. It is possible to specify custom search strategies
by specifying SQL query.
The following option are currently supported:
driverdir - path to DBI drivers
drivername - DBI driver name
option_host - host to connect to
option_port - port to connect to
option_dbname - database name
option_username - user name for authorizing to SQL server
option_password - user password for authorizing to SQL server
query_define - SQL query for implementing DEFINE command
query_<SEARCHSTRATEGY> - SQL query for implementing
SEARCHSTRATEGY (MATCH command).
SEARCHSTRATEGY is not limited to the "standard" strategies.
See the file example_plugin_dbi.conf for sample of how
this plugin can be configured.
SQL queries should return 1-column result by using SELECT command.
%q sequence inside SQL query is expanded to user's query.
%% is expanded to single % sign.
This plugin obviously gives a simplest way to implement editable
dictionaries, not by DICT protocol, but, for example, with a help
of WEB interface.
Hack! To resolv DBI driver's symbols, dictd is currently linked with
libdbi. Later, this will be fixed.
2004-03-19 cheusov <vle@gmx.net>
* dictd.c, dictdplugin_judy.c, lev.h, plugin.c:
code clean-ups
debugging code 'fprintf (stderr' code has been removed
2004-03-18 cheusov <vle@gmx.net>
* dictdplugin_judy.c, heap.h, plugins_common.c, plugins_common.h:
functions, common to plugins have been moved to plugins_common.{h,c}
* heap.c:
HEAP_MAGIC number is cheched by every heap_XXX function. (assert(3))
* dictd.c, libmaa/maa.c:
maa_shutdown function is not called automatically
when application terminates. Run it explicitly.
2004-03-11 cheusov <vle@gmx.net>
* Makefile.in, NEWS, configure.in:
If lex and yacc are missing, ./configure shows an error message and exits
2004-03-10 cheusov <vle@gmx.net>
* configure.in, libmaa/configure.in:
dictd / libmaa version has been changed to 1.9.12 / 0.97
* Makefile.in:
'make dist' generates C code for lexers and parsers using flex and bison.
So, lex/flex and yacc/bison are not necessary for building 'dictd'
from tarball.
* NEWS:
update to 1.9.12
2004-03-06 cheusov <vle@gmx.net>
* daemon.c:
fixed: 'daemon_crlf' works incorrectly
if argument 's' doesn't end with '\n' and 'dot' != 0
(broken .dict file)
* daemon.c:
fixed: 'daemon_printf' function overflows buffer
when a printed string is "\n".
2004-02-24 cheusov <vle@gmx.net>
* nl_langinfo.c, dictP.h, dictd.c, dictfmt.c, configure.in:
nl_langinfo function is used to detect
whether dictd/dictfmt uses 8bit, utf-8, or C locale.
2004-02-23 cheusov <vle@gmx.net>
* dictdplugin_judy.c:
fixed: if a requested headword has more than one definition,
DEFINE command always returns the first one
2004-02-07 cheusov <vle@gmx.net>
* dictl.in:
fixed: incorrect charset determination.
Thanks to Roland Rosenfeld for report and patch.
2004-01-28 kirk <kirk@chen.chizhovka.net>
* dictfmt.1, dictfmt.c:
Added --break-headwords option for use with --headword-separator, so
each headword is written on its own line of the .dict file.
2004-01-27 Bob Hilliard <hilliard@debian.org>
* dictfmt.1, dictfmt.c:
Patched dictfmt.c to corrrect formatting of database-info with the -f
option.
Corrected typo in dictfmt.1
2004-01-25 cheusov <vle@gmx.net>
* dictl.in, dictl.1:
dictl analyses PAGER variable to set a pager.
* dictl.1, dictl.in:
dictl checks whether recode/iconv/konwert/locale commands are available
2004-01-24 Bob Hilliard <hilliard@debian.org>
* dictl.in, dictl.1:
Modified dictl script to test for the presence of /usr/bin/recode,
and default to using iconv if recode is not present.
Update dictl.1 to mention this.
2004-01-16 cheusov <vle@gmx.net>
* deps, dictdplugin.h, dictdplugin_judy.c, index.c, index.h, plugin.c:
dictdplugin_judy implements the correct LEV search strategy
for utf-8 dictionaries.
Global 8-bit and ASCII alphabets (a list of alphanumeric and space characters)
are passed to plugins (plugin.h)
2004-01-13 cheusov <vle@gmx.net>
* dictfmt.c:
00-database-short is added to .dict file because
older dictd versions need it.
2004-01-08 Bob Hilliard <hilliard@debian.org>
* dictfmt.1:
Clarified what goes into the 00-database-info and what is considered
the first headword
2004-01-08 cheusov <vle@gmx.net>
* dictd.c:
'dictd --test|--test-file' notifies about invalid database name
* mbrtowc.c:
utf8_to_ucs4 acceps result == NULL
* plugin.c:
more verbose logging
* str.c, str.h:
function for copying utf-8 string represented
as a sequence of MB_CUR_MAX+1 bytes
* daemon.c, dictdplugin_judy.c, index.c, lev.h:
code related to LEV strategy has been moved to lev.h
* libmaa/doc/Makefile.in:
Documentation is not extracted from parse.c because
it is no longer available.
* plugin.c:
code cleanups
2004-01-07 cheusov <vle@gmx.net>
* daemon.c, dictd.8, example_complex.conf:
'{match,define} {*,!}' ignore invisible dictionaries.
Now there is no reason to separate visible and invisible dictionaries
by database_exit command, as a result
this simplifies a configuration file.
* dictfmt.c:
special headwords are not copied to .dict file
* index.c:
insertions at the end of word for LEV strategy (utf-8)
* index.c:
lev strategy again
* configure.in:
fixed: typo
* libmaa/flags.c:
fixed: the following program should not end with exit code 0
#include "maa.h"
int main (int argc, char **argv)
{
flg_register(1, "flag1" );
flg_set ("none");
flg_set ("flag1");
printf ("flag=%d\n", flg_test (1));
flg_set ("*flag1");
printf ("flag=%d\n", flg_test (1));
return 0;
}
* dictd.c:
LC_CTYPE and LC_COLLATE are set.
As a result date and time are printed to log using "C" locale.
2004-01-06 cheusov <vle@gmx.net>
* dictfmt.1, dictfmt.c:
added: --columns options to 'dictfmt' which sets a number of columns for
wrapping text. See dictfmt.1. By default this value is 72.
* dictP.h:
#define for wcwidth(3) if it is not implemented
* configure.in:
added: test for presense of 'wcwidth' function
* Makefile.in:
'make distclean' removes autom4te.cache directories
* dictfmt.c:
'mbswidth_' also counts non-printable symbols (+1)
* dictfmt.c:
dictfmt correctly wraps utf-8 strings at pos 79
2004-01-05 Bob Hilliard <hilliard@debian.org>
* dictfmt.c: Fix formatting problems
2004-01-05 cheusov <vle@gmx.net>
* dictfmt.c:
'dictfmt -f' uses default FMT_MAXPOS
'dictfmt -f' removes leading space character from definitions
* dictl.in:
fixed missing double quotes
* defs.h, dictd.c, index.c:
dictd's LEV search strategy works correctly with utf-8 dictionaries.
You should rebuild your databases for this to work.
dictfmt 1.9.12 or later is required.
Special headword 00-database-alphabet is used.
2004-01-04 cheusov <vle@gmx.net>
* dictfmt.c:
special headwords are not copied to .dict file
2003-12-30 cheusov <vle@gmx.net>
* dictunformat:
00-database-alphabet is skipped
* dictfmt.c: *** empty log message ***
* libmaa/maa.h, libmaa/string.c:
added: new functions and defines
'str_pool_init_position', 'str_pool_next_position',
'str_pool_get_position', 'str_pool_readonly', 'str_pool_iterate',
'str_pool_iterate_arg', 'STR_ITERATE' and 'STR_ITERATE_END'
to iterate over strings in the string pool.
* dictfmt.c:
fixes
* dictfmt.c:
new special headword 00-database-alphabet is created which will be used
for implementing LEV strategy for utf-8 dictionaries.
Its definition consists of all characters present in the headwords.
2003-12-24 cheusov <vle@gmx.net>
* index.c:
When utf-8 locale is set,
'toupper' function is called for ascii characters only.
* daemon.c:
fixed: SHOW SERVER cuts off long database names
* Makefile.in:
fixed: 'make dist'.
dictd-1.9.11 tarball was made without ChangeLog file.
Now it is in its usual place.
2003-12-18 cheusov <vle@gmx.net>
* Makefile.in:
fix for 'make ChangeLog'
2003-12-08 cheusov <vle@gmx.net>
* NEWS: *** empty log message ***
* NEWS, configure.in, libmaa/configure.in:
version ==> 1.9.11
libmaa version ==> 0.97
NEWS update
* dictfmt.c:
added: --license|--version options
some tricks about indentation
* dictd.c, dictzip.c, dict.c:
changed --license|--help|--version message
2003-12-05 Bob Hilliard <hilliard@debian.org>
* dictfmt.1:
Clarified and extended test regarding database headers in dictfmt.1
* dict.c, dictd.8, dictd.c, dictfmt.c:
Added Usage: line to help message in dict.c, dictd.c, and dicfmt.c
Clarified --locale requirements in dictd.8
2003-11-30 cheusov <vle@gmx.net>
* NEWS:
NEWS file becomes a part of dictd distribution
2003-11-26 cheusov <vle@gmx.net>
* example_complex.conf:
'lev' strategy is also disabled for standard databases
* index.c:
"'locale '%s' can not be used ..." error message is put to log file
2003-11-05 cheusov <vle@gmx.net>
* Makefile.in:
'make distclean' removes 'dictl' and 'colorit' executables
* INSTALL, example_complex.conf:
documentation update
2003-11-03 cheusov <vle@gmx.net>
* Makefile.in, configure.in, defs.h, dictdplugin-config.in, dictdplugin.c, dictdplugin.h, plugin.c, strategy.h:
constants for search strategies and function names
are no longer in dictdplugin.h.
removed a lindictdplugin.a
colorit script and man page is installed and uninstalled by
make install/make uninstall/make and install.colorit/make uninstall.colorit
commands
* colorit.1, colorit.in:
'colorit' sets the define HOME for a preprocessor
using -D command line argument.
Documentation update for 'colorit'
2003-10-31 cheusov <vle@gmx.net>
* configure.in:
CFLAGS is changed when we know exactly the plugins supported
* configure.in:
tests for presence of libJudy and Judy.h
'configure' disables a plugin support automatically
instead of showing an error message.
'configure' shows some details about configuration before exiting
* Makefile.in, configure.in:
checks for libJudy and Judy.h
* daemon.c, data.c, dictP.h, dictd.h, net.c, plugin.c, strategy.c:
a bit of magic of #include's order. The result is that
dictd* can be built on Solaris-9
fixed: yet another warning message
2003-10-30 cheusov <vle@gmx.net>
* configure.in:
better checking for presence of functions which are not in libc
2003-10-28 cheusov <vle@gmx.net>
* colorit.in:
added: --pp, -h and -V aoptions
Optional [files...] arguments are handled correctly
* colorit.1:
initial version od colorit.1
* colorit.in:
spaces are allowed inside regexps and inserted strings. In this case
script becomes gawk-spesific (3.1?)
m4 is used as a preprocessor by default
2003-10-27 cheusov <vle@gmx.net>
* configure.in, dictP.h, dictfmt.c, getopt.c, getopt_long.c, setenv.c:
'getopt_long' again
'setenv' implementation for Solaris-9
2003-10-26 cheusov <vle@gmx.net>
* dictl.in:
~ replaced for $HOME for shells that disalike it
* libmaa/Makefile.in, libmaa/configure.in, libmaa/maaP.h:
checking for presence of getopt(3) and SIZEOF_VOID_P define
* libmaa/text.c:
fixed: warning messages produced by latest gcc
* libmaa/list.c:
fixed : a warning message produced on 64-bit archs
* configure.in, dictP.h, getopt.c, getopt_long.c:
better checking for getopt_long. As a result dictd/dictfmt/dictzip/dict
can be built on platforms having no getopt_long(3) present in GLIBC
* dictzip.c, index.c:
fixed: a warning messages produced on 64-bit archs
* dictfmt.c:
fixed : a warning messages produced by latest gcc
* parse.c:
changes necessary to compiledictd on MacOS-X 10.1 (cc - gcc2.95.2)
2003-10-22 cheusov <vle@gmx.net>
* plugin.c:
fixes for invisible + virtual + plugin
strategies disabled by 'disable_strategy' keyword
are not passed to plugins
* example_complex.conf:
new comments
* index.c:
fixes for 'invisible' + 'plugins' + 'virtual dictionaries'
code cleanups
* dictdplugin_judy.c:
prefix strategy becomes simplier
removed: local 'disable_strat' option
* defs.h: *** empty log message ***
2003-10-20 cheusov <vle@gmx.net>
* dictd.c:
dictd correctly reloads configuration file when --pp is used
* index.c:
more verbose -dsearch
2003-10-14 cheusov <vle@gmx.net>
* strategy.c, strategy.h, dictd.8, dictd.c, example_complex.conf, plugin.c, plugin.h, daemon.c:
a few fixes
* dictd.8, dictd.c, example_complex.conf, parse.c, parse.h:
added: prs_file_pp function to parse.c
added: dictd -pp <prog> sets a preprocessor for configuration files
See dictd.8 and example_complex.conf.
2003-10-13 cheusov <vle@gmx.net>
* configure.in:
libnsl is really optional
* dictdplugin_judy.c:
word, soundex, re, regexp, suffix and substring strategies are removed
from judy plugin because iterattion over keys is extremely slow.
* example_complex.conf: *** empty log message ***
2003-10-11 cheusov <vle@gmx.net>
* dictl.in:
filename is doublequoted
* index.c:
fix for the previous fix ;-)
* Makefile.in, configure.in:
plugin support on FreeBSD-4.8
* Makefile.in, clientparse.y, clientscan.l, configure.in, index.c, servparse.y, servscan.l:
changes necessary to build dictd/dict/dictfmt/dictzip on FreeBSD4.8
2003-10-08 cheusov <vle@gmx.net>
* libmaa/configure.in, libmaa/maaP.h:
better checking for getopt(3)
* ChangeLog:
ChangeLog is removed from CVS repository.
There is no need to it there because it can be built using
'make ChangeLog'.
* dictl.in:
additional checks
* colorit.in, configure.in:
added: initial version of 'colorit', a simple script that can color your
dict's output.
* dictl.1, dictl.in:
added: initial version of dictl
2003-10-02 cheusov <vle@gmx.net>
* libmaa/config.h.in:
removed: libmaa/config.h.in
* dictd.8:
documentation update
* daemon.c, dictd.c, index.c:
info/name keywords in 'database_virtual' section can handle
entry name beginning with @ symbol in a similar way
as 'database' and 'database_plugin'
2003-10-01 cheusov <vle@gmx.net>
* dictd.c: *** empty log message ***
* defs.h, dictd.c, example_complex.conf, dictd.8, dictd.h, index.c, servparse.y, servscan.l:
added: ability to disable stategy for a particular database
using a keyword "disable_strategy".
See dictd.8 and example_complex.conf
* libmaa/string.c:
fix
* dictfmt.c:
changes for making databases compatible with older dictd
* config.guess, config.sub, libmaa/config.guess, libmaa/config.sub:
updated config.{sub,guess} files
2003-09-30 cheusov <vle@gmx.net>
* dictd.c, dictfmt.c:
fixed: --headword-separator doesn't work with -f, -p and -v formats
* dictfmt.c:
fixed: dictfmt -f doesn't work correctly if the first two lines are empty
Affected versions of dictfmt: 1.6.1-1.9.10
2003-09-28 faith <faith@dict.org>
* dictfmt.c: Changes for updated VERA and FOLDOC databases
2003-09-19 cheusov <vle@gmx.net>
* dictdplugin-config.in:
fixed: typo
* index.c, libmaa/source.c, libmaa/string.c, parse.c:
a few strlcpy have been replaced with strncpy and memcpy
2003-09-05 cheusov <vle@gmx.net>
* Makefile.in:
'all' target is above 'samples' one
2003-09-04 cheusov <vle@gmx.net>
* dictP.h:
added: missing declaration of strlcat
* configure.in, Makefile.in:
removed: DICT{,ZIP,FMT,D}_LDFLAGS configure variables
avoided: use of :: in makefile
others changes
2003-09-01 cheusov <vle@gmx.net>
* dictdplugin_judy.c:
Judy plugin supports the following options
(dictd(8): Plugin Specification, data section):
disable_strat=exact
disable_strat=prefix
...
disable_strat=word
This disables particular strategies.
* Makefile.in, deps:
fixed: missing -fPIC
2003-08-31 cheusov <vle@gmx.net>
* dictdplugin_judy.c:
judy-based plugin:
additional checks for 'utf-8' and 'allchars' flags
in plugin config and databases
double-quotes are removed from the database file names
2003-08-28 Bob Hilliard <hilliard@debian.org>
* clientparse.y, dict.1, dictd.8:
clientparse.y will accept "pager' as the pager
dict.1 mentions that --enable-dictorg is disabled by default
dictd.8 clarifies that dictd will fail to start in "C" locale if an
8-bit or utf-8 dictionary is listed in dictd.conf,
.
2003-08-27 cheusov <vle@gmx.net>
* dictvd:
initial version of dictvd
* dictdplugin_judy.c:
judy-based plugin uses default database directory
* daemon.c, dictd.c:
fixed: missing dictdb_free call
patch by Michael Bunk <bunk@imn.htwk-leipzig.de> fixing:
a typo giving the incomprehensible failure message,
a typo resulting in 'dict --server-info' showing
same compressed/uncompressed database sizes
a bug that prevented all authentication to succeed
* configure.in, strlcat.c:
strlcat
* config.h.in:
config.h.in has been removed from CVS repository
* dictdplugin.h, plugin.c:
a default directory for databases
is passed to plugins (DICT_PLUGIN_INITDATA_DEFDBDIR)
2003-08-18 cheusov <vle@gmx.net>
* Makefile.in:
'make cvsclean' and 'make dist' removes the temporary directory autom4te.cache
* dictd.c:
A multilined short name of the database is trancated.
2003-08-11 cheusov <vle@gmx.net>
* dictdplugin_judy.c, heap.c, heap.h:
code clean-ups
fixed: 'word' strategy
* Makefile.in, dictdplugin_judy.c, heap.c, heap.h:
all malloc/free calls in Judy plugin have been replaced to
calls of internal heap. Sometimes it works faster.
This feature is #ifdef'ed
2003-08-11 faith <faith@dict.org>
* README: Update instructions on how to join mailing lists
2003-08-10 cheusov <vle@gmx.net>
* dictdplugin_exit.c:
fixed: compiler warning message
* Makefile.in, dictdplugin_judy.c:
Judy-based plugin again
* Makefile.in, dictdplugin_judy.c:
memory leaks in Judy-based plugin fixed
2003-08-08 cheusov <vle@gmx.net>
* dictdplugin_judy.c:
buffer overflow in Judy-based plugin fixed
* dictdplugin_judy.c:
transposition section of 'lev' strategy doesn't produce
the same word twice (apple, P<->P)
added: 'word' strategy to Judy-based plugin
* dictdplugin_judy.c:
added: 'lev' strategy to Judy-based plugin
* index.c:
fixed: 'Substitutions' section inside 'dict_search_levenshtein' function
produces a lot of equal words
* dictdplugin_judy.c:
added: 'substring' strategy to Judy-based plugin
* dictdplugin_judy.c:
added: 're' and 'regexp' strategies to Judy-based plugin
* str.c, str.h, Makefile.in, dictd.c, dictdplugin_judy.c, dictfmt.c, index.c:
code clean-ups. Common string-related functions have been moved to str.c
* dictdplugin_judy.c:
added: suffix, prefix and soundex strategies to Judy-based plugin
* index.c:
fixed: 'suffix' strategy doesn't ignore characters other than
alphanumeric and spaces. Affected versions: 1.9.1-1.9.10
* libmaa/maa.h, libmaa/text.c:
txt_soundex2 - reenterable version of txt_soundex
* defs.h, plugin.c:
one dictdb_free call for one call of dictdb_search
2003-08-07 cheusov <vle@gmx.net>
* Makefile.in, dictdplugin_judy.c, libmaa/maaP.h, libmaa/strlcpy.c:
added: initial version of Judy-based plugin
* dictdplugin_popen.cpp:
fixed: gcc-3.3 warning message
2003-08-06 cheusov <vle@gmx.net>
* Makefile.in, config.h.in, configure.in, dictP.h, dictfmt.c, dictzip.c, index.c, libmaa/config.h.in, libmaa/configure.in, libmaa/maaP.h, libmaa/source.c, libmaa/string.c, libmaa/strlcpy.c, parse.c, plugin.c, strategy.c, strlcpy.c:
'strncpy' function is replaced with 'strlcpy' in both dict* and libmaa
* dictdplugin_popen.cpp: *** empty log message ***
* plugin.c:
code clean-ups
NULL/-1 is passed to plugin as DICT_PLUGIN_INITDATA_DICT
* dictd.c:
logging clean-ups
fixed: dictd doesn't call plugin's dictdb_free function
if --test-nooutput is applied (only commands for debugging are affected)
2003-08-01 cheusov <vle@gmx.net>
* plugin.c:
more informative -dinit loggin
* dictd.8:
Documentation update
* dictfmt.c:
code clean-ups
fixed: --without-headword
2003-07-22 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
* Makefile.in, configure.in, libmaa/configure.in:
Local libmaa is always used. This will be removed later.
DICTD version --> 1.9.10
LIBMAA version --> 0.96
2003-07-21 cheusov <vle@gmx.net>
* daemon.c, dictd.8, dictd.c:
'filter' option is implemented. Thanks to
Michael Bunk <bunk@imn.htwk-leipzig.de> for the patch.
2003-07-16 cheusov <vle@gmx.net>
* INSTALL, dictd.8:
Documentation update
2003-07-15 cheusov <vle@gmx.net>
* Makefile.in:
hide e-mails from ChangeLog
* index.c:
fixed: 'lev' strategy ('pple' query doesn't match 'apple' word)
Affected versions: 1.4.9 - 1.9.9
* index.c:
insignificant speed-up of 'lev' strategy
2003-07-10 cheusov <vle@gmx.net>
* Makefile.in, configure.in:
DICT_LDFLAGS, DICTD_LDFLAGS, DICTZIP_LDFLAGS and DICTFMT_LDFLAGS
variables can be used while configure for specifying
specific LDFLAGS for a particular executable.
If you want to build dictd with TRE regex engine, for example, run
DICTD_LDFLAGS='-L/usr/local/lib -ltre' CPPFLAGS='-I/usr/local/include' \
./configure
2003-07-09 cheusov <vle@gmx.net>
* dictfmt.c:
fix
2003-07-07 cheusov <vle@gmx.net>
* Makefile.in: *** empty log message ***
* Makefile.in, configure.in, dict.c, dictd.c, include_regex.h.in, index.c, parse.c, parse.h:
parse.{c,h} is a part of dictd.
fixed: AC_MSG_ERROR calls
By default system-wide regex engine is used is found.
You can also use your favourite regex engine by setting
LDFLAGS and/or CPPFLAGS variables and optionally
./configure --with-regex-include=FILE.
In order to build dictd with local regex enbgine,
run ./configure --with-local-regex.
upgrade to autoconf 2.53
fixed: incorrect detection of external libmaa (libmaa_init requires arguments)
* libmaa/Makefile.in, libmaa/maa.h, libmaa/parse.c:
parse.c has been removed from libmaa library. This is because it declares
'extern' symbols not defined in the library.
added: 'make uninstall'
* search_man:
'search_man' example outputs plain text
* index.c:
dict_match function
* config.h.in:
upgrade to autoconf 2.53
* index.c:
fixed: RE and REGEXP strategies
(^apple|orange and ^apple\|orange doesn't match a word 'orange')
* libmaa/config.h.in:
upgrade to autoconf 2.53
* libmaa/configure.in:
fixed: libmaa/configure --enable-shared
upgrade to autoconf 2.53
2003-06-30 cheusov <vle@gmx.net>
* configure.in:
System functions wcXXX and mbXXX are used if present.
2003-06-23 cheusov <vle@gmx.net>
* dictfmt.c:
fixed: incorrect spaces trimming.
Thanks to Kuang-che Wu <kcwu@kcwu.homeip.net> for the bug report
2003-06-10 cheusov <vle@gmx.net>
* dictfmt.c, dictfmt.1:
added: -t option for 'dictfmt'
'dictfmt' documentation update
* dictd.8:
a few fixes
* dict.c, configure.in, Makefile.in:
By default the predefined DICT servers dict.org and alt0.dict.org
are disabled. If you want to use them, run
./configure --enable-dictorg
* dictfmt.c:
'dictfmt' doesn't append an empty line to definitions
* dictfmt.c:
00-database-{info,short,url} are processed in the same
way as 00database{info,short,url}
2003-05-30 Bob Hilliard <hilliard@debian.org>
* dictd.8: Added mention ot SIGHUP causing dictd to re-read the configuration
file, and removed BUG note saying this can't be done.
2003-05-23 cheusov <vle@gmx.net>
* dictd.8, dictfmt.1, dictfmt.c, dictunformat:
added: dictfmt --without-info
'dictfmt' and 'dictunformat' works better with each other. In particular
'dictunformat' outputs 00-database-{url,short,info} headwords
and 'dictfmt' copy 00-database-{url,short}
headwords to .dict file if -u and -s options
are not applied respectively.
For 00-database-info headword see --without-info option.
'dictfmt' documentation update
2003-04-30 cheusov <vle@gmx.net>
* Makefile.in:
fixed: some problems with 'make install'.
Thanks to Kurt Wall <kwall@kurtwerks.com> for remarks
2003-04-14 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
* INSTALL:
a few words about cygwin
* configure.in:
version ==> 1.9.9
* Makefile.in: better cygwin support
* libmaa/config.h.in, config.h.in: *** empty log message ***
* configure.in, Makefile.in:
better cygwin support
* dictd.c:
fixed: warning message produced by gcc under cygwin
* daemon.c:
file descriptors are explicitly initialized
2003-04-10 cheusov <vle@gmx.net>
* configure.in, defs.h, dictP.h, dictd.c, plugin.c, plugin.h, Makefile.in, config.h.in:
'libdl' is used instead of 'libltdl' on platforms where it is available
dictP.h cleaups
2003-04-09 cheusov <vle@gmx.net>
* dict.c:
nothing
* dict.c, snprintf.c, vsnprintf.c:
err_fatal(..."Buffer too small\n" ); have been moved to
snprintf.c and vsnprintf.c
all sprintf() in the dict.c have been replaced with snprintf()
* dictP.h, config.h.in, configure.in:
dictP.h and configure.in clean-ups
Thanks to Kimura Fuyuki <fuyuki@hadaly.org> for remarks
2003-04-09 Bob Hilliard <hilliard@debian.org>
* dict.c: Patched to prevent segfault/buffer overrun on excessively long
dict command lines
.
.
2003-04-07 cheusov <vle@gmx.net>
* configure.in:
fixed: 'dictd' can not be configured with ./configure --with-local-zlib
* index.h, dictd.c, index.c, dictd.8:
added: dictd --fast-start (implied by --inetd) improves dictd's performance
if it is run from inetd or on platforms without copy-on-write (CYGWIN).
* dictd.8:
documentation update
* dictd.h, dictd.c, daemon.c:
SHOW SERVER command doesn't show uptime/forks statistics,
if the dictd is run from inetd.
* index.c, dictd.h, dictd.c, dictd.8, daemon.c:
added: dictd inetd support (dictd --inetd)
Thanks to Joey Hess <joeyh@debian.org>
and Robert D. Hilliard <hilliard@debian.org> for the patch.
2003-03-27 cheusov <vle@gmx.net>
* dictP.h:
fixed: compilation error
2003-03-26 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
* configure.in:
version == 1.9.8
2003-03-24 cheusov <vle@gmx.net>
* data.c:
fixed: incorrect dzip format detection
fixed: possible crash while reading too long COMMENT or FNAME fields of
the dzip'ed file
2003-03-19 cheusov <vle@gmx.net>
* libmaa/maaP.h, strategy.c, strategy.h, vsnprintf.c, wcrtomb.c, wctomb.c, index.c, index.h, mbrlen.c, mbrtowc.c, mbstowcs.c, mbtowc.c, plugin.c, plugin.h, snprintf.c, dictdplugin.h, dictfmt.c, dictzip.c, dictd.h, dictd.c, dictP.h, defs.h, data.h, data.c, config.h.in, configure.in, daemon.c, Makefile.in:
Functions related to plugin have moved to plugin.c.
Several declarations have been moved to defs.h, index.h, data.h, plugin.h
It makes sources easier to understand (at least for me)
UTF-8 support is optional. It is disabled on platforms which don't
support 'iswalnum', 'iswspace' and 'towlower' functions.
As a result 'dictd' can be compiled on CYGWIN.
fixed: 'dictdb_free' function is not called
2003-03-09 cheusov <vle@gmx.net>
* ChangeLog: ChangeLog is up-to-date
* dictd.c: nothing serious
* index.c, dictd.c:
function related to plugin are #ifdef'ed
added: additional sanity check for disabling database_plugin keyword
if dictd is compiled without plugin support
* ChangeLog:
ChangeLog is up-to-date
* configure.in:
version ==> 1.9.7
2003-03-04 cheusov <vle@gmx.net>
* data.c:
fixed: error message
2003-03-03 cheusov <vle@gmx.net>
* Makefile.in:
fixed: bug in 'make samples'. It requires installed 'dictfmt'.
* Makefile.in:
'make dist' makes distribution tarball by CVS tag
* dictd.c, dictd.8:
Documentation update for 'dictd --add-strategy'
* strategy.h, strategy.c, index.c, dictd.c, dictd.h, daemon.c, Makefile.in:
All functions related to strategies have been moved to strategy.{h,c}
added: '--add-strategy' option for 'dictd' which allows
to implement (with a help of plugins)
new strategies not available in 'dictd'.
For example, 'revert' strategy may be implemented.
By using '--with-strategy' and '--add-strategy' options you
can create DICT server with the set of strategies you need.
* dictdplugin_popen.cpp:
fixed: initializing the array with zeros
2003-03-02 cheusov <vle@gmx.net>
* daemon.c, dictd.c, dictd.h:
fixed: DEFINE and MATCH commands return '0 definitions found' but the
550 exit code, if the invalid database name is specified.
* dictd.8, servscan.l:
'string' token in a configuration file supports \", \\, \n, \<NL>
escape sequences.
\<NL> (multilined strings) may be useful for specifying plugin data
or an information about database.
* index.c:
critical fix: dictd may crash on BMH search
(substring, suffix and word strategies) because
it accesses memory outside mmap'ed region.
Affected versions: 1.4.9-1.9.5 (All?)
* ChangeLog: ChangeLog is up-to-date
* configure.in:
version == 1.9.6
* index.c:
critical fix: dictd may crash on BMH search
(substring, suffix and word strategies) because it accesses memory
outside mmap'ed region.
2003-02-28 cheusov <vle@gmx.net>
* index.c, dictdplugin_popen.cpp:
fixed: dictWord structures are not initialized with zeros
* index.c: removed: something strange
2003-02-23 cheusov <vle@gmx.net>
* daemon.c, dictd.c, dictd.h:
fixed: if the 'name' keyword is used in database section, and
it doesn't begin with '@', dictd may crash on SIGHUP.
Affected versions: 1.9.1-1.9.4.
The upper visible virtual dictionary is returned by DEFINE and MATCH
commands if the actual definition/match is found in invisible dictionary.
* ChangeLog:
ChangeLog is up to date
* configure.in:
version ==> 1.9.5
* dictd.c:
fixed: if the 'name' keyword is used in database section, and
it doesn't begin with '@', dictd may crash on SIGHUP.
Affected versions: 1.9.1-1.9.4.
* data.c, dictd.8, dictd.c, index.c, daemon.c:
The only required keyword for the virtual database is database_list.
The '@' symbol in 'name' and 'info' keywords is treated especially.
* dictd.c:
plugin specified in the config file also uses default plugin directory
* daemon.c:
'info' keyword understand prefix '@' too
* dictd.c, index.c:
fixed: short name is initialized before plugin initializing
* dictd.h, index.c:
code cleanups
fixed: bug in passing database names to the plugin
* configure.in:
fixed: ./configure --with-nec-socks5
* daemon.c, dictd.8, dictd.c, dictd.h, dictdplugin.h, index.c, servparse.y, servscan.l:
added: ability to specify plugin in the configuration file
documentation update
added: additional sanity checks
* daemon.c:
dict_search_databases function has been simplified
* servscan.l, dictd.8, dictd.c, dictd.h, servparse.y, daemon.c:
added: ability to specify virtual dictionary in the configuration file.
'database_virtual', 'database_list' keywords are added.
documentation update
added: 'info' keyword for specifying information about the database
in the config file. @ prefix is supported.
added: additional sanity checks
* dictd.h, servparse.y, daemon.c, dictd.c:
explicit flag is used for database_exit but the NULL indexFilename
2003-02-21 cheusov <vle@gmx.net>
* daemon.c:
debugging command has been removed
* daemon.c:
SHOW SERVER command word correctly with invisible databases
* data.c, dictd.c, dictd.h, servparse.y, servscan.l, daemon.c:
The keyword 'invisible' may be used inside 'database' section of
the dictd configuration file.
This means that the specified dictionary will not be shown to the clients.
Currently DEFINE and MATCH command returns '*' as a dictionary name.
Later the name of topmost virtual dictionary will be returned.
There is no sense to make dictionary invisible if it is included to
'*' dictionary (i.e. not preceded by dictionary_exit command)
* dictfmt_plugin:
fixed: usage message
'dictfmt_plugin' fails if plugin filename is not specified
2003-02-20 cheusov <vle@gmx.net>
* servscan.l:
fixed: dictd.8 says that 'string' can be continued between lines
but it can not. Now backslash at the end of line (between two " symbols)
means new line character.
* configure.in:
added: ./configure --with-nec-socks5 for those who are behind socks server
This causes linking with socks5 library both 'dictd' and 'dict'.
2003-02-15 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
* configure.in:
version ==> 1.9.4
* dictd.8:
fixed: misprint in the documentation
2003-02-10 cheusov <vle@gmx.net>
* configure.in:
AC_REPLACE_FUNCS(towlower) -> AC_CHECK_FUNCS
* dictfmt_virtual.1, index.c, dictd.h, dictd.c, config.h.in:
added: 'dictfmt' adds 00-database-8bit entry to the 8-bit dictionaries.
'dictd' uses this entry (and 00-database-utf8)
and fails if "C" locale is specified
and 8-bit or utf-8 dictionaries are encountered.
Using "C" locale for 8-bit and utf-8 dictionaries is one of
the most common error made by dictd users.
* dictfmt_virtual:
nothing serious
* dictfmt.c, dictunformat:
'dictfmt' fails if --locale="C" (the default) is specified and 8-bit
head word is encountered.
2003-02-07 cheusov <vle@gmx.net>
* dictfmt_index2word:
'dictfmt_index2word' failes if it is run with the locale "C" and
index file contains 8-bit head words.
* dictfmt_index2suffix:
'dictfmt_index2suffix' failes if it is run with the locale "C" and
index file contains 8-bit head words.
* dictfmt.c:
'dictfmt' run with "C" locale cannot build dictionary containing 8-bit words
* dictfmt_index2suffix, dictfmt_index2word:
fixed: problems with filenames containing spaces
* Makefile.in:
new man pages are installed/uninstalled
* configure.in, dictfmt_index2suffix.1, dictfmt_index2word.1, dictfmt_virtual.1, dictunformat.1:
documentation update
* Makefile.in:
fixed: bug in 'samples' target
2003-02-06 Bob Hilliard <hilliard@debian.org>
* dictunformat.1, dictfmt_index2word.1, dictfmt_virtual.1, dictfmt_index2suffix.1:
Really added dictfmt_virtual.1, dictunformat.1, dictfmt_index2word.1,
and dictfmt_index2suffix
2003-02-02 Bob Hilliard <hilliard@debian.org>
* dict.c, dictd.8:
Fixed dict.c to accept --serverinfo option, minor changes to dictd.8
Added dictfmt_index2suffix.1, dictfmt_index2word.1, dictfmt_virtual.1,
and dictunformat.1
2003-01-21 cheusov <vle@gmx.net>
* dictfmt_index2word:
awk script inside conforms to posix
2003-01-19 cheusov <vle@gmx.net>
* vsnprintf.c, snprintf.c, dictfmt.c, dictzip.c, dictd.c, daemon.c, configure.in, config.h.in:
'dictd', 'dictfmt' and 'dictzip' use snprintf and vsnprintf functions
instead of sprintf and vsprintf on platforms where they are available.
* dictd.c:
added: --test-nooutput and --test-idle debugging options to 'dictd'
They allow to test search speed:
time_of(dictd --test-nooutput) - time_of (dictd --test-idle)
fixed: bug with a debugging option --test-match
Actually it made a DEFINE search
* dictfmt_virtual, dictfmt.c, dictfmt_plugin:
added: --silent, --quiet, -q options to 'dictfmt'
* dictd.h, index.c:
This significantly speeds up plugin-based search
* ChangeLog:
ChangeLog conforms dictd-1.9.3
* index.c:
more informative error message
* dictdplugin_popen.cpp: *** empty log message ***
* dictfmt_plugin:
'dictfmt_plugin' doesn't add header and url to the .dict file
* dictd.c:
added: additional check for empty database list
2003-01-17 cheusov <vle@gmx.net>
* configure.in:
version = 1.9.3
* dictd.c:
fixed: dictd may crash when access section of
the configuration file is empty
2003-01-16 Bob Hilliard <hilliard@debian.org>
* dictfmt_virtual, servparse.y:
Patched servparse.y to make dict -D give a nicer message for
database_exit.
Patched dictfmt_virtual-patch to prevent failing when optional
argument info_files is omitted
2003-01-16 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
2003-01-15 cheusov <vle@gmx.net>
* configure.in:
version=1.9.2
* dictunformat:
'dictunformat' can handle databases containing more than one headwords
for a single definition
added: --headword-separator argument to 'dictunformat' utility
2003-01-14 cheusov <vle@gmx.net>
* wcrtomb.c:
added: wcrtomb.c
* utf8_ucs4.c, utf8_ucs4.h, wctomb.c, mbtowc.c, mbstowcs.c, mbrtowc.c, mbrlen.c, configure.in, Makefile.in:
multibyte character oriented functions are implemented in mb*.c and wc*.c
files and they are used by default instead of standard ones.
It seems glibc-2.1.3 has broken wcrtomb.
2003-01-09 cheusov <vle@gmx.net>
* index.c, dictunformat:
mbstate_t
* Makefile.in:
install/uninstall makefile's targets use DESTDIR environment variables.
This simplifies building RPMs.
2003-01-08 Bob Hilliard <hilliard@debian.org>
* dictzip.c, index.c:
Patched dictzip.c to revent segfault on excessively long command lines
Patched index.c so dictd will startup without error if config file
includes the /dev/null database
2003-01-03 cheusov <vle@gmx.net>
* index.c:
mbstate_t is not used
* data.c, dictd.c, dictfmt.c, index.c, ChangeLog, Makefile.in, config.h.in, configure.in, daemon.c:
functions from utf8_ucs4.c have been replaced with the standard ones.
a few changes in configure.in
DEFINE command returns an error message (MATCH command stops the search)
for invalid utf-8 query (This is a trick!!!)
dictfmt is linked with libmaa
added: the following options to dictfmt:
--without-header
--without-url
--without-time
2002-12-25 cheusov <vle@gmx.net>
* Makefile.in:
'dictunformat' is installed and uninstalled like 'dictfmt'
* dictunformat, index.c:
fixed: typo
added: dictunformat which is able to extract dictionary
from .dict and .index files.
This may be used to recreate database from 8-bit character sets
to utf-8 or to another format
2002-12-17 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to-date
* libmaa/config.sub, libmaa/configure.in, ChangeLog, configure.in, dict.c, utf8_ucs4.c:
code cleanups
libmaa version set to 0.95
dictd version set 1.9.1
2002-12-15 Bob Hilliard <hilliard@debian.org>
* dict.c:
Modified client_print_listed() to make dict -D and dict -S print long
names sanely.
.
.
2002-12-10 cheusov <vle@gmx.net>
* dictd.h:
fixed: problems in building 'dictd' without plugin support
* configure.in:
fixed: Even if you run ./configure with --disable-plugin, ltdl.h is needed
* configure.in:
configure.in: version number 1.8.0 ==> 1.9.0
2002-12-05 cheusov <vle@gmx.net>
* search_man:
fixed: forgot to remove sending a debugging e-mail message
2002-12-04 cheusov <vle@gmx.net>
* example_virtual.conf:
fixed: typo
* ChangeLog:
ChangeLog is up to date
* index.c:
Plugin version == 1 is disabled. Version == 0 is allowed only.
* dictd.c, example_virtual.conf, index.c, servparse.y, servscan.l, daemon.c, data.c, dictd.8:
added: 'database_exit' directive to dictd.conf.
You can use 'virtual' dictionaries without plugin support.
See man dictd.8 and example_virtual.conf for details.
fixed: crash during debugging (-dsearch) output (80 chars limit)
2002-12-03 cheusov <vle@gmx.net>
* dictdplugin_popen.cpp, example_popen.conf, index.c, search_man, dictdplugin.h, dictdplugin_exit.c, INSTALL, Makefile.in, daemon.c, data.c, dictd.h, dictdplugin-config.in:
fixed: warning messages produced by gcc
added: example 'popen' plugin. FOR PLUGIN DEMONSTRATION ONLY.
added: popen plugin dictdplugin_popen.cpp. See INSTALL section 5.
added: plugins can operate with strategies.
See DICT_PLUGIN_INITDATA_STRATEGY constant,
dictPluginData_strategy structure from dictdplugin.h and
dictdplugin_popen.cpp for a sample of use
* dictd.c:
fixed: non-critical memory leaks again
* dictd.h, dictdplugin-config.in, dictfmt_plugin, index.c, Makefile.in, dictd.8, dictd.c:
By default (if not full filename name specified) plugins/dictionaries will be
searched in $datadir/$libexecdir directory. It is a compile time option.
See man dictd.
added: dictdplugin-config --dictdir and --plugindir options
2002-12-02 cheusov <vle@gmx.net>
* dictd.c:
fixed: not critical memory leak
* dictd.h, index.c: *** empty log message ***
* dictd.8:
documentation update
2002-11-28 cheusov <vle@gmx.net>
* INSTALL, TODO, dictd.8, dictfmt_plugin, example2.conf, example3.conf:
documentation update
2002-11-25 cheusov <vle@gmx.net>
* servparse.y:
servparse.y: fix by Dima Dorfman <d+dict@trit.org>
2002-11-19 cheusov <vle@gmx.net>
* daemon.c:
dictd can processes several conversions made by plugin.
Example: if the plugin converts 'found' word to 'find' and 'found',
all following dictionaries will be searched for both
'find' and 'found'
Example: if the plugin converts 'fruit' word to 'apple' and 'orange',
all following dictionaries will be searched for both 'apple'
and 'orange'
* libmaa/text.c:
fixed: possible crash in libmaa/text.c:txt_soundex
My previous commit did not fix it
2002-11-18 cheusov <vle@gmx.net>
* libmaa/text.c, utf8_ucs4.c, dictfmt.c, index.c:
fixed: problems with 'toupper/tolower/isXXXX (-1)
fixed: possible crash in libmaa/text.c:txt_soundex
* dictfmt.c:
fixed: invalid calculating the UTF-8 string length
while formatting the dictionary
2002-11-04 Bob Hilliard <hilliard@debian.org>
* config.sub, config.guess:
updated config.sub and config.guess to September 02 values
.
2002-10-29 cheusov <vle@gmx.net>
* utf8_ucs4.c:
fixed: utf8_ucs4.c:strlen_utf8
2002-10-28 cheusov <vle@gmx.net>
* ChangeLog, Makefile.in, configure.in, daemon.c, dictd.c, dictd.h, dictfmt_plugin, dictfmt_virtual:
added: 'dictfmt_virtual' utility for creating virtual dictionary
ADDED: Virtual dictionary capability for 'dictd'.
Run 'dictfmt-virtual --help' for a help
* configure.in, dictd.c, ChangeLog:
SIGHUP causes 'dictd' to reload configuration file
2002-10-18 Bob Hilliard <hilliard@debian.org>
* dictfmt.1, dictfmt.c, dictd.8:
Updated dictd.8 to include options added in 1.8.0.
Updated dictfmt.c to correct previous errors and omissions and include
options added in 1.8.0.
Patched dictfmt.c to correct help message for -c5 and to fix the bug
that caused the last headword read in to be duplicated in the index.
2002-10-17 cheusov <vle@gmx.net>
* daemon.c, dictd.c, dictd.h:
removed: --define-strategy option for 'dictd'
renamed: --match-strategy ==> --default-strategy
added: --disable-strategy option for 'dictd'
2002-10-16 cheusov <vle@gmx.net>
* dictfmt.c:
fixed: typo
2002-10-14 cheusov <vle@gmx.net>
* index.c: *** empty log message ***
* servparse.y, servscan.l, index.c, dictfmt_index2suffix, dictfmt_index2word, dictd.h, dictd.c, daemon.c, Makefile.in:
fixed: missing dependancy in Makefile.in
added: fast implementation (binary search) of the WORD strategy search.
This requires additional index file created by dictfmt_index2word
added: --test-match option to dictd executable
fixed: problems with suffix strategy using additional index file
* daemon.c, dictdplugin.h, index.c:
ADDED: new search strategy 'word'
fixed: uninitialized variable charcount from index.c:dict_table_init
2002-10-11 cheusov <vle@gmx.net>
* daemon.c, dictd.c, ChangeLog:
added: --match-strategy argument to dictd.
It sets the default strategy for 'match' queries
added: --define-strategy argument to dictd.
It sets the default strategy for 'define' queries
update ChangeLog
2002-09-27 cheusov <vle@gmx.net>
* libmaa/config.h.in, libmaa/configure.in, libmaa/error.c, ChangeLog, Makefile.in, config.h.in, configure.in, daemon.c, data.c, dictP.h, dictd.c, dictd.h, dictdplugin.c, dictdplugin.h, dictdplugin_exit.c, index.c:
added: possibility to disable plugin support
by running ./configure --disable-plugin
fixed: problems with make -j. patch by
Andrzej Dopierala <undefine@aramin.one.pl>
fixed: problems with make ChangeLog
added: possibility to build 'dictd' on platforms not supporting mmap()
added: a lot of 'const' modifyers
removed: 'goto' statement ;) from daemon.c
added: --test-file argument to 'dictd'
'--ftime' and '--test-file' are synonyms
'dictd --test-file' and 'dictd --test' now search in ALL databases
but the first one only.
added: --test-db to 'dictd'
It sets the database name for --test and --test-file.
plugin function dictdb_open can return version == 1.
In this case before each 'dictdb_search' call, 'dictdb_set'
should be called. Not fully implemented.
added: DICT_PLUGIN_INITDATA_DBNAME data id for initialising plugin
the databases names are passed to the plugins
by the call of 'dictdb_open'
This can be used to implement "virtual" databases such as
"English monolingual" containing Webster, FOLDOC, WordNet etc...
added: new plugin exit status DICT_PLUGIN_RESULT_EXIT
which allows to stop searching.
This is an easiest way to exclude some databases from '*' list.
Example:
1) Webster
2) Wordnet
3) ----- dictdplugin_exit.so plugin -----
4) man pages
5) RFC documents
6) HOWTOs
7) C++ functions
8) Perl functions
Using such database list, you will search
only Webster and Wordnet databases
by running 'dict apple'.
If you want to get RFC document e.g., specify database name explicitly.
Of course, plugin may exit with such exit status
not only unconditionally
added: dictdplugin_exit.so plugin
Stops searching unconditionally.
added: new plugin exit status DICT_PLUGIN_RESULT_PREPROCESSED
which allows to implement a preprocessor of the requested word.
Simple examples:
- Converting German umlauts to UE, OE etc.
- Converting Cyrillic YO character to YE
After plugin converts the requested word, all following databases
will be searched for converted one.
In order this to work, it is necessary to create .index files
without umlauts and Cyrillic YO characters.
Database list example:
1) ---- plugin converting German umlauts ------
2) ---- plugin converting Cyrillic YO to YE ---
3) German-English dictionary
4) Russian-English dictionary
fixed: bug in 'dict_search_plugin' function
2002-09-18 cheusov <vle@gmx.net>
* dictfmt.c:
dictfmt: --headword-separator doesn't imply --without-headword
2002-09-17 cheusov <vle@gmx.net>
* dictdplugin.c, dictdplugin.h:
constant strings definitions have been moved to dictdplugin.c
* index.c:
fixed: memory leak
2002-09-16 cheusov <vle@gmx.net>
* Makefile.conf, Makefile.in, config.h.in, configure.in, daemon.c, dictd.c, dictd.h, dictdplugin-config.in, dictdplugin.c, dictdplugin.h, doc/Makefile.in, index.c, libmaa/Makefile.in, libmaa/config.h.in, libmaa/configure.in, plugin.h, INSTALL:
fixed: bug in configure.in
./configure --sysconfdir was completely ignored
changed: The default "prefix" directory from /usr to /usr/local
just like most other packages do.
removed: --with-etcdir argument of configure script.
Use --sysconfdir instead.
Run "./configure --prefix /usr --sysconfdir /etc" to
get "configure" script behaviour
similar to older dictd "configure".
plugin improvements/changes:
- plugin.h renamed to dictdplugin.h
- In order to avoid confusing
several #defines have been renamed.
Now all #defines have DICT_ prefix.
- "all" Makefile target builds library libdictdplugin.a.
Link plugins with it.
- dictdplugin-config configuration tool. It is like gtk-config.
Error message is returned by dictd if the request is
not a valid UTF-8 string and remaining databases will not be checked.
fixed: warning messages produced by autoreconf
2002-09-13 faith <faith@dict.org>
* ChangeLog: Update ChangeLog
2002-09-12 cheusov <vle@gmx.net>
* configure.in, daemon.c, data.c, dictd.c, dictd.h, dictfmt_plugin, dictzip.c, index.c, plugin.h, utf8_ucs4.c, utf8_ucs4.h:
fixed: crash while debugging output (80 chars limit)
fixed: a lot of memory leaks. All they not critical because
they happened during server initialisation only but
I prefer to free memory explicitly.
added: --no-mmap argument to 'dictd'
ADDED: plug-in capability for DICTD.
Using it you can develop alternative database formats,
linguistic modules such as stemming/translator, "redirectors"
to another dictd or on-line dictionaries such as Britannica, or
even front-end to your favourite intra-net searchers such as
mnogosearch and ht://Dig. Almost everything you want.
See plugin.h and dictfmt_plugin for details
2002-09-11 cheusov <vle@gmx.net>
* ChangeLog:
ChangeLog is up-to date
2002-08-23 cheusov <vle@gmx.net>
* dictfmt.c:
added: --without-hw parameter to 'dictfmt'
* dictfmt.c:
added: --headword-separator parameters to 'dictfmt'.
allows several headwords to have the same definition.
Example: autumn%%%fall if dictfmt is run with --headword-separator %%%
* dictd.c, dictfmt.c:
added: locale verification both in 'dictfmt' and 'dictd'
2002-08-22 cheusov <vle@gmx.net>
* dictfmt.c:
'dictfmt' now removes ending spaces for the head words
2002-08-21 cheusov <vle@gmx.net>
* dict.c:
fixed: possible crash of 'dict' client
* dictfmt.c:
unnecessary /*LEAVE FIRST CHARACTER IN UPPER CASE BUT DOWNCASE THE REST*/
has been removed from dictfmt.c
* configure.in:
I removed local_zlib=1 line in configure.in
With this line
both --with[out]-local-zlib arguments supplied to 'configure' will
be ignored and local BUGGY zlib library will always be used.
Now external zlib library will be used by default.
2002-08-13 cheusov <vle@gmx.net>
* ChangeLog, Makefile.in:
changed: ChangeLog
* Makefile.in:
added: dictfmt_index2suffix in 'install' and 'uninstall' Makefile's targets
2002-08-12 cheusov <vle@gmx.net>
* dictfmt_index2suffix, utf8_ucs4.c, Makefile.in, dict.c, dictd.8, dictfmt.1, dictfmt.c:
added: dictfmt.1, dictfmt_index2suffix, patched version of dictfmt.c
several changes in dictd.8
fixed: typo in utf8_ucs4.c
added: uninstall target in Makefile.in
Now dictfmt is a part of dictd distribution
2002-08-05 cheusov <vle@gmx.net>
* ChangeLog: *** empty log message ***
* Makefile.in:
distclean - removes everything absent in tar.gz
cvsclean - removes everything absent in CVS repository
* index.c:
changed: substring search for UTF-8 dictionaries uses BMH but the RE.
* libmaa/list.c, dictd.c, dictd.h, index.c:
added: possibility to search using all characters
but the alphanumeric and space only.
00-database-allchars special entry in the index file is used.
* dictd.h, index.c:
changed: utf-8 search becomes faster
* index.c:
changed: UTF-8 "suffix" search uses BMH but the RE.
* dictd.c, dictd.h, index.c, servparse.y, servscan.l, utf8_ucs4.c, utf8_ucs4.h:
added: more efficient (probably) suffix search algorithm is implemented.
Uses additional index file consisting of anagrams.
* index.c:
fixed: bug causing a lot of unnecessary comparisons
* Makefile.in:
changed: distclean target in Makefile.in
* index.c:
fixed: bug in debugging output
* libmaa/Makefile.in, libmaa/log.c, libmaa/maa.h, Makefile.in, daemon.c, data.c, dictd.c, dictd.h, index.c, utf8_ucs4.c, utf8_ucs4.h:
added: utf-8 functions in utf8_ucs4.c
changed: 'distclean' target of Makefile.in
added: argument '--test-strategy'
it can be used for debugging.
fixed: crash at fclose(NULL)
fixed: crash of dictd with --ftest
fixed: "8bit" bug in compare:index.c
changed: comparions count in the debugging mode is calculated
without optStart array initialization
fixed: "8bit" bug in suffix/substring searching strategy
changed: PRINTF and FPRINTF macroses.
old variants cause problems with the nested if/else
added: UTF-8 support
2002-08-02 faith <faith@dict.org>
* libmaa/Makefile.in, libmaa/arg.c, libmaa/argtest.c, libmaa/base26.c, libmaa/base64.c, libmaa/basetest.c, libmaa/bit.c, libmaa/bittest.c, libmaa/configure.in, libmaa/debug.c, libmaa/debugtest.c, libmaa/decl.h, libmaa/error.c, libmaa/flags.c, libmaa/hash.c, libmaa/hashtest.c, libmaa/list.c, libmaa/listtest.c, libmaa/log.c, libmaa/maa.c, libmaa/maa.h, libmaa/maaP.h, libmaa/memory.c, libmaa/memtest.c, libmaa/mkrnd.c, libmaa/parse-concrete.c, libmaa/parse.c, libmaa/pr.c, libmaa/prime.c, libmaa/primetest.c, libmaa/prtest.c, libmaa/rnd.c, libmaa/set.c, libmaa/settest.c, libmaa/sl.c, libmaa/sltest.c, libmaa/source.c, libmaa/stack.c, libmaa/strdup.c, libmaa/string.c, libmaa/stringtest.c, libmaa/text.c, libmaa/timer.c, libmaa/xmalloc.c, servscan.l, ChangeLog, Makefile.in, clientparse.y, configure.in, daemon.c, data.c, dict.c, dictd.c, dictzip.c, index.c, net.c:
Update with 1.7.1 release
2002-05-03 faith <faith@dict.org>
* libmaa/debugtest.c, libmaa/decl.h, libmaa/error.c, libmaa/flags.c, libmaa/hash.c, libmaa/hashtest.c, libmaa/list.c, libmaa/listtest.c, libmaa/log.c, libmaa/maa.c, libmaa/maa.h, libmaa/maaP.h, libmaa/memory.c, libmaa/memtest.c, libmaa/mkrnd.c, libmaa/parse-concrete.c, libmaa/parse.c, libmaa/pr.c, libmaa/prime.c, libmaa/primetest.c, libmaa/prtest.c, libmaa/rnd.c, libmaa/set.c, libmaa/settest.c, libmaa/sl.c, libmaa/sltest.c, libmaa/source.c, libmaa/stack.c, libmaa/strdup.c, libmaa/string.c, libmaa/stringtest.c, libmaa/text.c, libmaa/timer.c, libmaa/version.c, libmaa/xmalloc.c, INSTALL, Makefile.in, clientparse.y, config.h.in, configure.in, daemon.c, data.c, dict.1, dict.c, dictd.8, dictd.c, dictd.h, dictzip.c, index.c, libmaa/Makefile.in, libmaa/acconfig.h, libmaa/arg.c, libmaa/argtest.c, libmaa/base26.c, libmaa/base64.c, libmaa/basetest.c, libmaa/bit.c, libmaa/bittest.c, libmaa/config.h.in, libmaa/configure.in, libmaa/debug.c, net.c, servscan.l, ChangeLog:
Sync sourceforge.net repository with dictd-1.7.0 release
2001-01-12 faith <faith@dict.org>
* Makefile.in: Bump version
2001-01-01 Bob Hilliard <hilliard@debian.org>
* dict.c:
Aaaargh! Previous update broke pager in dict. This is fixed now.
2000-12-31 faith <faith@dict.org>
* Makefile.in, index.c: Fix const warning
Bump version number
* libmaa/decl.h, libmaa/text.c, decl.h, index.c:
Made minor changes for Solaris 5.7 compilation
2000-12-27 Bob Hilliard <hilliard@debian.org>
* dict.1, dict.c, dictd.8:
dict.c - added argument to help message for -s; made all help messages go
to stdout and error messages to stderr; disabled --html option
dict.1 - clarified explanation of -s option (not really
necessary, IMHO, but a bug was filed), mentioned that --html option is
disabled.
dictd.8 - corrected typo
2000-12-22 faith <faith@dict.org>
* Makefile.in, codes.h, daemon.c, data.c, decl.h, dict.c, dict.h, dictP.h, dictzip.c, dictzip.h, index.c, net.c, net.h:
Fix Debian bug #77685 (dict crashes with "-s regexp sch*".
Update email addresses.
Bump version number.
* daemon.c, dict.c: Fix memory leak and remove limitation on matches.
2000-11-09 faith <faith@dict.org>
* dict.c: Limit number of matches to print
Because of the use of a string pool by the argification functions,
printing too many matches can use far too much memory -- better to
fail until we move to another string management algorithm
* dict.c: Limit number of definitions returned to 100
2000-11-08 faith <faith@dict.org>
* Makefile.in, dictd.c, dictd.h, servscan.l:
Apply patches from Bob Hilliard that are in the Debian version.
The grp.h file may not be portable and should be tested.
Bump version number to avoid confusion.
2000-05-29 faith <faith@dict.org>
* daemon.c: Fix MATCH
* Makefile.in: Bump version
2000-01-27 faith <faith@dict.org>
* Makefile.in: Man page directory fix from weed@DeepThought
1999-12-23 Julian Squires <tek@wiw.org>
* libmaa/maaP.h: Added OpenBSD to list of BSDs to allow smooth compilation.
1999-12-23 faith <faith@dict.org>
* libmaa/bit.c, libmaa/hash.c, libmaa/hashtest.c, libmaa/listtest.c, libmaa/settest.c:
Update for 64-bit machines
1999-12-22 faith <faith@dict.org>
* libmaa/decl.h: Update for Linux/Sparc
* Makefile.in: -N no longer needed for cvs export
* configure.in: Fix typo
* Makefile.in, configure.in: Final fixes for 1.5.0 release.
* INSTALL, Makefile.in: Update INSTALL for Cygwin
Update dist target for new CVS repository
* Makefile.in, configure.in, dict.c, dictP.h:
Imcomplete changes for IRIX and other systems where --with-cc is needed
* Makefile.in, configure.in, daemon.c, dictd.c, dictd.h, libmaa/log.c:
Changes for OSF (DEC Unix) for Alpha
* Makefile.in: Use mandir (from Tage Stabell-Kulo)
Create man8 if it does not exist
* net.c: Changes from Jeff Blaine and Stephen L Moshier
* libmaa/log.c:
Changes from Stephen L Moshier to support Cygnus B20 under Windows 98
* INITSCRIPT, INSTALL, README: Added credit to Jeff Blaine
* INITSCRIPT, INSTALL, README: New documentation from Jeff Blaine
* Makefile.in, clientscan.l, configure.in, decl.h, dict.1, dict.c, dictd.c, libmaa/hash.c, servscan.l:
Patches from Bob and Kirk Hilliard:
Fix error in code that causes logging to fail
Fix stdout initialization in dict
Fix defs for linux on sparc
Fix hash type (for alpha?)
Fix parse error message misalignment
Fix some annoying compilation warnings
Fix syntax in dictd configuration file
Add include keyword to dictd configuration file syntax
Add switch to specify pager (or lack thereof)
Add documentation for pager option
Drop root as soon as daemon starts
Also, fix --prefix on configuration
1998-07-06 faith <faith@dict.org>
* dictzip.1, index.c, data.c, dict.1, dictd.8, dictd.c:
Removed Linux from man pages
Added more UNZIP debugging code
1998-07-05 faith <faith@dict.org>
* libmaa/configure.in:
Fixed Makefile.in and configure.in syntax per email from Ian T Zimmerman
* libmaa/timer.c, libmaa/configure.in, libmaa/Makefile.in, doc/dicf.ms, doc/Makefile.in, Makefile.in, configure.in:
Fixed timer wrap-around between 49 and 50 days
Fixed Makefile.in and configure.in syntax per email from Ian T Zimmerman
1998-03-01 faith <faith@dict.org>
* dictzip.c, Makefile.in, daemon.c: Fixed typo in daemon.c
Removed unused variables from dictzip
* daemon.c, dictzip.c, Makefile.in: Fixed . problem
Fixed dictzip to conform to man page
1998-02-28 faith <faith@dict.org>
* dictd.c, Makefile.in: Update for Linux accept(2)
1998-02-22 faith <faith@dict.org>
* ANNOUNCE: Update ANNOUNCE
* dictd.conf: Another (more complete) example dictd.conf file
* README, configure.in: Minor changes
Always use local libmaa, because of recent bug fixes
* libmaa/log.c, libmaa/maa.h: Minimize warnings with Linux glibc
* libmaa/source.c: Fixed NULL pointer dereference in err_ routines
* Makefile.in, libmaa/maaP.h: Port to BSDI
1998-02-20 faith <faith@dict.org>
* index.c, daemon.c, Makefile.in: Fixed problem with duplicates
1998-02-16 faith <faith@dict.org>
* dictd.c, daemon.c, Makefile.in: Fixed startup bug and rate computation
* dictd.c, dict.c: Fix race condition when counting children
* index.c, dictd.h, dictd.c, dictd.8, dict.h, dict.c, dict.1, TODO, Makefile.in, README, ANNOUNCE:
Added more features
1998-01-19 faith <faith@dict.org>
* daemon.c: Updated buffer overflow behavior
* dictd.c: Removed code for PERSISTENT servers
* net.c, dictd.h, dictd.c, dict.h, dict.c, daemon.c, clientscan.l, clientparse.y, Makefile.in:
Added paging feature
1998-01-16 faith <faith@dict.org>
* decl.h, net.c, libmaa/log.c, libmaa/maaP.h, libmaa/decl.h: Changes for HPUX
* dictd.c: Change for Solaris
* decl.h, dictd.c, configure.in: Changes for Solaris (and some DG/UX)
1998-01-05 faith <faith@dict.org>
* libmaa/maaP.h, libmaa/log.c: Port to DG/UX
* dict.c, Makefile.in: Make client deal with partially implemented servers.
* libmaa/maaP.h: Port to FreeBSD
1998-01-04 faith <faith@dict.org>
* ANNOUNCE: Add draft of announcement
* Makefile.in: Use RFC2229 instead of building from .ms
* doc/rfc2229.txt: Add official RFC2229
* doc/Makefile.in, net.c, dictd.c, dict.c, README, dict.1, Makefile.in:
Minor updates
Try all IPs for round-robin DNS entries
1997-11-30 faith <faith@dict.org>
* libmaa/sl.c: Update for dissertation benchmarks
1997-11-08 faith <faith@dict.org>
* libmaa/list.c, libmaa/maa.h: This version is buggy, do not check out
1997-09-25 faith <faith@dict.org>
* libmaa/version.c, libmaa/log.c, libmaa/decl.h:
Updates for DSL Example under Solaris
1997-09-19 faith <faith@dict.org>
* libmaa/maaP.h: Fix Solaris predefined macros
1997-09-14 faith <faith@dict.org>
* libmaa/set.c, libmaa/maa.h: Reimplemented algorithm based on write-up in
dissertation. Now using the same algorithm in both places.
1997-09-12 faith <faith@dict.org>
* libmaa/decl.h, libmaa/configure.in: Preparing DSL example snapshot
1997-09-01 faith <faith@dict.org>
* dictzip.c, dictzip.1, dictd.8, dict.c, dict.1, TODO, Makefile.in:
Improved man pages
* doc/rfc.ms, doc/Makefile.in, example3.conf, dictd.c, dict.c, daemon.c, configure.in:
Work based on IETF comments
1997-08-26 faith <faith@dict.org>
* doc/toc.ms, doc/rfc.ms, doc/Makefile.in: Working on draft -02 for IETF
1997-08-21 faith <faith@dict.org>
* libmaa/maa.h: Got breakpoint tracking and navigation working
1997-08-15 faith <faith@dict.org>
* libmaa/arg.c: More work on tracking
1997-07-27 faith <faith@dict.org>
* doc/rfc.ms: Describe form of extensions
1997-07-18 faith <faith@dict.org>
* doc/security.doc, doc/rfc.ms: Minor RFC changes
Addition of security-related comments
1997-07-12 faith <faith@dict.org>
* dict.c: Fixed -I
* dictd.h: Fix config file name
* dictd.8, README, Makefile.in: Added README. Fixed install
* TODO, Makefile.in: Installation fixes
* doc/rfc.ms, servparse.y, servscan.l, net.h, net.c, example.dictrc, example3.conf, dictzip.1, dictd.h, dictd.c, dictd.8, dict.html, dict.h, dict.c, dict.1, configure.in, config.h.in, clientscan.l, clientparse.y, Makefile.in:
Added config files to client
Added dict: parsing to client
Options for nospelling and pipeline size
General cleanup
Install and dist targets
1997-07-11 faith <faith@dict.org>
* libmaa/error.c: Allow routine name to be NULL
* Makefile.in: Fixed dist target
* doc/webster.out, doc/design.tex, net.c, dictzip.c, dictd.h, dictd.c, dict.c, dict.1, Makefile.in:
Added client options for pipesize and html
Unified versioning
Added dist target
Cleaned up Makefiles
More client bug fixes
1997-07-09 faith <faith@dict.org>
* net.c, dictzip.c, dictd.c, dict.h, dict.c, dict.1, daemon.c:
More work on client
1997-07-08 faith <faith@dict.org>
* doc/rfc.ms, net.c, dictd.8, dict.h, dict.c, dict.1, daemon.c:
Work on client
1997-07-07 faith <faith@dict.org>
* doc/rfc.ms, example3.conf, dictd.c: Fixed proctitles on SunOS
* libmaa/timer.c:
Use millisecond resolution for timer, instead of microseconds
1997-06-28 faith <faith@dict.org>
* dictzip.1: dictzip documentation
* doc/rfc.ms: Final revisions
1997-06-23 faith <faith@dict.org>
* index.c, config: Fixed BMH string matching (again)
* index.c, dictzip.h, example.conf, dictzip.c, dictd.h, dictd.c, dictd.8, daemon.c, configure.in, Makefile.in:
Optimized string searches, wrote man pages
* libmaa/timer.c: Made timers return parent and children times
1997-06-21 faith <faith@dict.org>
* index.c, dictd.h, dictd.c, dictd.8, daemon.c:
Work on logging and documentation
* libmaa/maa.h, libmaa/log.c, libmaa/flags.c, libmaa/debug.c:
Made timestamps on logs optional
Fixed typos
1997-06-11 faith <faith@dict.org>
* doc/rfc.ms, index.c, example.conf, dictd.h, dictd.c, dictd.8:
More work on RFC
1997-06-03 faith <faith@dict.org>
* dictd.c: Zero memory before use
1997-06-02 faith <faith@dict.org>
* libmaa/version.c, libmaa/parse.c, libmaa/configure.in:
Only make weak symbols when compiling a shared library.
Otherwise, everything fails when the library is not shared.
Bumped version number
* dictd.c, daemon.c: Minor fixes
* doc/rfc.ms, doc/Makefile.in, dict.html: More work on document
1997-05-27 faith <faith@dict.org>
* doc/rfc.ms, doc/Makefile.in, servparse.y, servscan.l, index.c, example.site, dictd.h, example.conf, dictd.c, dict.c, daemon.c, configure.in, codes.h:
Made daemon conform to 26May RFC draft
* doc/Makefile.in: Makefile for doc directory
* doc/rfc.ms, doc/design.tex: Careful edit
Fixed -ms style formatting things. Numbering now automatic.
Adjusted grammar and made references to it in appropriate places.
Added requirements section.
Added pipelining section.
Added comments about virtual databases.
1997-05-26 faith <faith@dict.org>
* doc/rfc.sh: Formfee dconverter
1997-05-22 faith <faith@dict.org>
* servscan.l, servparse.y, dictd.h, example2.conf, dictd.c, daemon.c:
Persistent daemon clean up
1997-05-21 faith <faith@dict.org>
* libmaa/Makefile.in: Fixed ChangeLog target
* libmaa/doc/libmaa.tex, libmaa/doc/libmaa.600dpi.ps, libmaa/doc/Makefile.in, libmaa/configure.in, libmaa/source.c, libmaa/config.h.in, libmaa/Makefile.in:
Fixed a few problems with the docs -- others remain
* libmaa/parse.c, libmaa/configure.in, libmaa/Makefile.in:
Add support for shared libs under Linux
Add installation target in Makefile
* libmaa/version.c: Bump version
1997-05-20 faith <faith@dict.org>
* libmaa/string.c, libmaa/maa.h, libmaa/hash.c: Added hash function caching
Added str_copy* support for strings which are known to be unque
(e.g., source lines).
Both of these changes should speed up scanning and parsing.
1997-05-10 faith <faith@dict.org>
* libmaa/source.c: Fixed core dump when sourceType is not available
1997-05-09 faith <faith@dict.org>
* doc/rfc.ms: More work on RFC
1997-05-07 faith <faith@dict.org>
* doc/rfc.ms: Remove mention of URL
1997-05-02 faith <faith@dict.org>
* dictd.h, dictd.c, dict.c, daemon.c, config.h.in, configure.in, codes.h, Makefile.conf:
Initial experiment with persistent daemons
1997-05-01 faith <faith@dict.org>
* libmaa/argtest.out, libmaa/argtest.c, libmaa/arg.c: Fix arg_argify, again
1997-04-30 faith <faith@dict.org>
* doc/rfc.ms: More changes from Bret
* net.c, net.h, dictd.h, dictd.c, dict.h, dict.c, daemon.c, codes.h, Makefile.in:
Start on client
Fix up socket I/O
1997-04-26 faith <faith@dict.org>
* doc/rfc.ms: Minor revisions
1997-04-22 faith <faith@dict.org>
* doc/rfc.ms: Bret's initial additions and changes
1997-04-21 faith <faith@dict.org>
* libmaa/version.c, libmaa/set.c, libmaa/maa.h, libmaa/list.c, libmaa/Makefile.in:
Keep version numbers from automatically bouncing.
Make remaining iterators return non-zero if the iteration ended early.
1997-04-03 faith <faith@dict.org>
* servscan.l, servparse.y, net.c, md5.h, md5.c, index.c, example.conf, dictd.h, dictd.c, daemon.c, Makefile.in:
Finished initial implementation of new protocol
* doc/rfc.ms: More changes
1997-03-31 faith <faith@dict.org>
* doc/rfc.ms, net.h, net.c, dictd.h, dictd.c, dict.c, daemon.c, Makefile.in:
Moving toward new protocol
1997-03-26 faith <faith@dict.org>
* dictzip.h, dictd.h, dictd.c, daemon.c: Moving toward new protocol
* doc/rfc.ms: RFC-like document
1997-03-23 faith <faith@dict.org>
* net.c, example.conf, dictd.c, dictzip.c, data.c, daemon.c: Tweaking
1997-03-19 faith <faith@dict.org>
* libmaa/version.c, libmaa/source.c, libmaa/argtest.out, libmaa/maa.h, libmaa/pr.c, libmaa/arg.c, libmaa/argtest.c:
Allow arg_argify to quote in different ways.
1997-03-18 faith <faith@dict.org>
* libmaa/version.c, libmaa/source.c:
Increased buffer size for error reporting
* libmaa/version.c, libmaa/parse.c, libmaa/maa.h:
Added new parser entry point
1997-03-15 faith <faith@dict.org>
* libmaa/version.c, libmaa/sl.c: Finished implementing Algorithms 1-6
Wrote up algorithm descriptions
Benchmarked algorithms with qsort:
% Algorithm 0:
% 0 nodes have been labelled ( 0 relabelled, 0 needs comp.)
% 18.500u 0.200s 22.217 84%
%
% Algorithm 1:
% 5425575 nodes have been labelled ( 0 relabelled, 0 needs comp.)
% 1:55.31u 0.210s 1:58.44 97%
%
% Algorithm 2:
% 22067 nodes have been labelled (5403508 relabelled, 0 needs comp.)
% 17.640u 0.250s 20.219 88%
%
% Algorithm 3:
% 5425575 nodes have been labelled ( 0 relabelled, 5425575 needs comp.)
% 2:06.19u 0.210s 2:08.83 98%
%
% Algorithm 4:
% 22067 nodes have been labelled (5403508 relabelled, 5425575 needs comp.)
% 25.470u 0.320s 28.606 90%
%
% Algorithm 5:
% 22067 nodes have been labelled (5403508 relabelled, 662227 needs comp.)
% 21.250u 0.270s 23.765 90%
%
% Algorithm 6:
% 22067 nodes have been labelled (349455 relabelled, 662227 needs comp.)
% 11.910u 0.180s 14.250 84%
1997-03-13 faith <faith@dict.org>
* libmaa/version.c: Added -a option to select fast labeling algorithms
Implemented Algorithm 0, 1, 2, noting speed improvement
I plan to break Algorithm 3 into 3 and 4 (and 5?), since it is a big
step up from Algorithm 2, and may not be any faster...
* index.c, net.c, dictd.c: Added RESUSE for sockets
Fixed up daemon code
Fiddled with search algorithms a bit
1997-03-12 faith <faith@dict.org>
* index.c, net.c, dictd.c, decl.h, daemon.c, Makefile.in:
Made status report elapsed times for previous command
Fixed up regular expression matching
* libmaa/version.c, libmaa/timer.c, libmaa/maa.h, libmaa/log.c, libmaa/decl.h:
Fixed bug in timers
Improved logging
Added more C prototypes for SunOS
1997-03-11 faith <faith@dict.org>
* net.h, net.c, dictd.h, index.c, dictd.c, Makefile.in, daemon.c:
Added regexp matching, fixed logging
* libmaa/version.c, libmaa/log.c: Fixed log_stream bug
1997-03-10 faith <faith@dict.org>
* net.h, servparse.y, net.c, dictd.h, index.c, dictd.c, dictd.8, data.c, dictP.h, daemon.c, configure.in, Makefile.in, TODO, COPYING:
More work
* libmaa/version.c, libmaa/maa.h, libmaa/text.c, libmaa/log.c, libmaa/error.c, libmaa/argtest.c, libmaa/argtest.out, libmaa/arg.c, libmaa/Makefile.in:
Fixed bug in arg parsing
Added generalized logging capabilities
1997-03-09 faith <faith@dict.org>
* example.conf, index.c, dictd.h, dictzip.h, dictd.c:
Performance enhancements
1997-03-08 faith <faith@dict.org>
* example.conf, servscan.l, configure.in, data.c, Makefile.in:
Finish SunOS port
* libmaa/version.c, libmaa/decl.h: Compile without warnings under SunOS
* servscan.l, fmt.c, net.c, dictd.c, dictP.h, dict.c, dict.1, decl.h, data.c, daemon.c, configure.in, config.h.in:
Cleanup for SunOS
* libmaa/argtest.c, libmaa/argtest.out, libmaa/version.c, libmaa/arg.c:
Updated arg functions to skip over whitespace in a reasonable way.\
Updated argtest to test these updates.
1997-03-07 faith <faith@dict.org>
* search.c, index.c, look.c, dictd.c, dictd.h, configure.in, servscan.l, wndump.c, jargdump.c, net.c, servparse.y, dictzip.c, dictzip.h, dictrc.sample, dictP.h, decl.h, dict.h, daemon.c, data.c, config.sub, Makefile.in:
Reorganization for better packaging
* servparse.y, dictd.c, daemon.c: Port to SunOS
1997-03-01 faith <faith@dict.org>
* index.c, dictzip.c, dictd.c, data.c, daemon.c: Updates for SunOS
* libmaa/version.c, dictzip.c, config, Makefile.in: Example ocnfig file
* doc/design.tex, wndump.c, servscan.l, servparse.y, net.c, net.h, index.c, dict.h, dictd.c, data.c, daemon.c, Makefile.in:
Initial dictd implementation
* libmaa/version.c, libmaa/timer.c, libmaa/source.c, libmaa/parse.c, libmaa/maa.h:
Fixed bugs in timer and error routines
1997-02-28 faith <faith@dict.org>
* libmaa/doc/Makefile.in, libmaa/version.c:
Removed parse and source support from Khepera library
* libmaa/doc/Makefile.in, libmaa/version.c, libmaa/source.c, libmaa/parse-concrete.c, libmaa/parse.c, libmaa/maa.h, libmaa/maa.c, libmaa/Makefile.in:
Moved source and parser support to libmaa
* doc/design.tex: Config files
* doc/design.tex: More documentation
1997-02-27 faith <faith@dict.org>
* doc/webster.out, doc/design.tex: Add doc directory
1997-02-21 faith <faith@dict.org>
* libmaa/README: Updated credits information and version
1997-02-08 faith <faith@dict.org>
* libmaa/version.c: Fix typos
1996-12-26 faith <faith@dict.org>
* libmaa/version.c:
1) Make top-level "tests" target to run all regression tests.
2) Do not free nseqs after the "return" statement.
3) Add .dq debugging flag to debug the pending delete queue.
4) Fix typo that prevented -pg from working (this was most important).
1996-12-25 faith <faith@dict.org>
* libmaa/version.c:
1) Re-did all the Range stuff again. Here is how it works:
At parse time, but never again:
(N_SeqRange (N_Range1 .)) 1 .. last (doesn't exist at parse time)
(N_SeqRange (N_Range2 . .)) first .. last
(N_SeqRange (N_Range3 . . .)) first, second .. last
After post-parse processing, and thereafter:
(N_SeqRange1 .) 1 .. last
(N_SeqRange2 . .) first .. last
(N_SeqRange3 . . .) first .. last .. step
2) Added the new dpl_st_range_step_i call, which takes (first, last, step).
3) Use dpl_copy whenever an nseq is assigned to another nseq (these
assignments should be (automatically) removed when value tracking and
CSE are addes).
4) Moved dom-removal from pl.k to simple.k. This is more appropriate.
* libmaa/version.c:
Major milestone: qsort runs to completion after a little tweaking.
Here's what needs fixing:
nseq assignment needs to use dpl_copy
dpl_st_range uses the old style ranges, not the ones used by N_Range
Other stuff in this checking:
1) Exapanded ex4.pro so debug indexing
2) Finished implementation of flat indexing (vs. SelectSeq)
3) Added new functions: leseq, combine, flatten, concat
4) Convert dom into range1
5) Output DPL for index, concatreduce, combine
6) Added ad hoc on-the-fly type generation for indexing (similar to that
for insert/extract)
7) Fix insert/extract on-the-fly type generation
8) Print out types of all assignments -- this helps with debugging
9) Fix type printing as called by tre_print. Now type variables in a
tre_print will be correctly identified as 'a, 'b, etc. Before they
might all be called 'a even when they were different. (This was an
error of printing -- the types were correctly stored as differentiated
variables.)
1996-12-23 faith <faith@dict.org>
* libmaa/version.c:
1) Get insert/extract working. For type checking, there is now a callback
that will be called whenever a type definition cannot be found in the
usual ways (this is a ``last resort'' callback). The extract/insert
type creation callback examines the current tree and creates an
inference rule for it, making an entry in the symbol table so that this
won't have to be regenerated again (although this may not currently be
in the proper scope). Next, I'll use this same callback to generate
inference rules for indexing instances.
2) Re-did all the range stuff. Now N_Range1, N_Range2, and N_Range3 are
carried through the transformations end-to-end. This allows early
detection of range1, and prevents a lot of dists of 1's. It also means
that we can avoid dpl_st_range_p at the Proteus-source level, since this
function is not working in DPL.
3) Added transforms to DPL calls for #, +/, ++, and a few others (?).
4) Fixed some places where _tre_DeleteQueueProhibited was not being
properly restored. This led to a situation where the delete queue was
never emptied, which led to infinite attempts to delete the deleted
node.
Next, figure out how to type check indexing. Was the type system designed
to handle this?
1996-12-22 faith <faith@dict.org>
* libmaa/version.c:
1) Removed some calls to fixup_scopes() since these should no longer be
necessary (because of the hook which calls fixup_scopes() automatically
at tree-insertion time).
2) Added extensive debugging printouts to flatten.k and simple.k
3) Added checks to make sure flattening and simplification actually worked.
4) Fixed some dpl types in header.pro that were overly restrictive.
5) Delayed removal of primed operators until type checking is no longer
done.
6) Totally re-wrote let simplification to deal correctly with changing
scopes. This was needed to get qsort.pro to transform.
qsort.pro transforms now, but the output won't compile. I need to get type
checking working for Insert/Extract before I can look for other bugs in the
transformations. Although the type inference engine should be able to deal
with these functions (it was designed to do so), it has never been hooked
up to the high-level (e.g., Proteus language) code and tested. Instead of
using these type inference features to typecheck these functions, I'm going
to try to use the backdoor I installed for the typechecking of the
higher-order primed functions. This should be easier to get working, and
still makes use of the type inference engine, it just bypasses the
arithmetic type clauses.
1996-12-14 faith <faith@dict.org>
* libmaa/version.c: 1) Changed spacing of ChangeLog
2) Re-wrote let flattening (Palmer96 Rule1). But still need to fixup
scope.
3) Re-wrote zip flattening (Palmer96 Rule5). Would like to simplify this
by adding a Khepera "optional" match.
4) Added much more readable output for -V tracing (-dverbose).
5) Added sscope fixups to be automatically applied at each insertion.
6) Added printing support for unique node values (-d.unique).
7) Experimented with removing symbols from the symbol table. This is
probably a very bad idea, but I'll leave the code there for now. (The
functions aren't used.)
8) Made removal of pending nodes and queuing of pending nodes a critical
section.
9) Made fast post-order walks actually work. (The logic had been inverted,
so they were incorrectly used on small trees, but not on the main tree.)
Still working on let scoping debugging.
1996-12-09 faith <faith@dict.org>
* libmaa/Makefile.in: Fix ChangeLog creation
* libmaa/doc/extract.pl, libmaa/version.c, libmaa/Makefile.in:
Added dist target to makefile
Fixed perl script to work under Perl 5
1996-12-07 faith <faith@dict.org>
* libmaa/version.c:
1) Temporarily removed FORTRAN transformations from build. They need to be
updated in the face of other global changes, but they probably need to
be completely re-written.
2) Added support for a dpl subdirectory.
3) Made other changes to get tiny test program to compile with C+DPL. Now
I'm working on qsort and am running into scope problems -- the
transformations don't automaticallly preserve scope, so scopes must be
propagated by hand. Hence, forgetting when the scopes need updating is
easy to do. The quick fix is probably to re-run the scope updates from
the ASTRoot frequently.
4) Make main() function that includes call to dpl_setmem. Need to add a
return 0.
5) Add last-use detection for variables, and insert calls to dpl_fre_nseq.
This all means that this simple example now compiles with C+DPL:
#include "header.pro"
function foo(i:int, j:int):int { return i*j; }
print [i in [1..30]: foo(i,i)];
Tomorrow: get qsort to compile as well.
1996-12-01 faith <faith@dict.org>
* libmaa/version.c: Added query and if-then-else simplification.
* libmaa/version.c:
When looking for cpp, first try to use the one that comes with gcc. Then
look on the system for one. We should probably incorporate the GNU cpp and
hack it so that it won't print warnings for Proteus code. For now, just
redirect errors to /dev/null.
1996-11-26 faith <faith@dict.org>
* libmaa/version.c, libmaa/error.c:
1) Added simplify.k and moved all the simplifications there.
2) Re-wrote the simplifications based on knowledge contained in the
post-mortem analysis of trans. Specifically, internested let and
if-then-else expressions must be handled correctly. I did the let part
and will do the if-then-else part next.
3) Make the uncall functions put identifiers in the top-level scope and
mark them as DECLARED. This prevents a N_Var declaration being made for
them later. If will also permit us to write type signatures for all of
these functions, and treat them as builtins. I think this will
eliminate the need for moving back-and-forth between infix notation and
functional notation, since it looks like that only thing that currently
needs infix notation is the type checker.
4) Added is_literal call to identifier Proteus literals.
5) Ripped out the N_Build stuff and added more general call/uncall support
for nodes which take an N_ExpressionList as an argument (currently,
N_Sequence and N_Print).
6) Make things which are already declared as declared, and insert N_Var
declarations for everything else.
7) Add C pretty-printing for types in N_Var, N_Param, and N_Function.
8) Removed number from tree printouts unless -d.enum is used. These
numbers were for debugging, but are not useful since we use the N_ names
for node everywhere. The other names should probably be deprecated (but
are still used for default pretty-printing).
9) In the Khepera language compiler, don't declare any variables introduced
in a rebuild statement. Previously, only the root of the rebuild wasn't
decalred. This should all be done with typechecking, and will be in the
next re-write of the Khepera language compiler :)
1996-11-23 faith <faith@dict.org>
* libmaa/version.c:
1) Make add_primed_func_defns propagate the return type as well as the
argument types.
2) Added functions to push [a in a_p, b in b_p, ... : ... ] through the
expression as index operations (alternatively, this could be implemented
with the now-non-existent zip primitive).
3) Added functions to handle simple dom() simplification. More complex
functions will be easy to add as needed.
4) Convert (N_Sequence (N_ExpressionList ...)) into (N_Build ...) so that
these node can be interconverted with N_Call nodes, allowing iterators
to be pushed through them.
5) Added support for the "walk" keyword in the Khepera language. This
allows a pre-order walk to be performed of an arbitrary node, much like
the "children" keyword allows the children to be iterated over.
6) Fixed bug where deleting nodes which were queued for deletion caused a
non-reentrant function to be called twice. (Made tre_delete_queued
reentrant.)
7) Added font-lock mode definition as a comment in khepera-mode.el.
This all means that Dan's Rule 0 through Rule 5 are fully impemented. I'm
going to work on function call parameter lifting next, and then on last-use
detection so that DPL memory management can be added....
1996-11-19 faith <faith@dict.org>
* libmaa/version.c:
1) Finally got Palmer96 rules 1-5 implemented. There are a few problems:
a) Primed function duplication doesn't work unless the type of the
function is either specified or can be derived. It can't be derived
if the prime function isn't used. The right way to do this is to
delete primed functions (or not generated them) unless they are
used. However, due to POLYMORPHISM, this isn't possible without
cooperation from the type system. Adding this cooperation will take
time. Hence, I'm punting on this until we deal with polymorphism in
general.
b) I used the "James" method of generating primed functions, and I
haven't written the part that pushed the zip'd components through to
indexing. I'll do that next.
2) Removed Lar's optimiztion.k for the time being. It doesn't help us to
actually generate code and only confuses things. I'll put it back after
we can generate C+DPL.
3) Redid all the call/uncall stuff using a header file. Now, one line has
to be added and the call/uncall functions will get created _and_ mapped
into the xfm Rule body. See functions.h for the list.
4) Deactivated a bunch of transformations that do not get us any closer to
executable code.
5) Commented some of the rules.
6) Fixed a few aesthetic bugs in error printing.
7) Saved Lar's transform.c as transform.lars.c.
8) Tried to fix the enclosed version of cpp to implement the ANSI #
stringification directive. Gave up. Patched the parser routines to
find the native cpp instead. Will delete the local cpp next time -- its
just too old to be useful, and ptrans requires an ANSI C compiler
anyway.
9) tre_fast_postorder_allowed lets you know if a tre_fast_postorder walk is
possible. It isn't right now if you aren't walking from the root of the
labeled tree.
1996-11-15 faith <faith@dict.org>
* libmaa/version.c: New example
1996-11-11 faith <faith@dict.org>
* libmaa/version.c, libmaa/maa.c:
Broke out type dumping routines (for debugging with readable types).
Make top-level dist target.
Added top-level version.c and version/copyright printing stuff. To bump
the version, make version.stamp and check in the new version.c.
Tried to free memory that the type inference system creates. I got some of
this, but not all of it. Specifically, I can't figure out how to
safely free type expressions (Expr in khepera/lib/typ.c). These
maintain their own reference counts, but only for internal references,
not for references from the AST or from the symbol table. Sometimes
types get destroyed on-the-fly, so a simple list of all allocated type
expressions is not sufficient. It would be nice to get this done
sometime, since then we could look for real memory leaks and make
better use of the debugging malloc technology we have available.
Fixed all obvious memory leaks in the khepera language translator program
(which doesn't use the type system, and only had some leaks related to
the symbol-table).
* libmaa/version.c:
1) Added code to take advantage of 1 and 2 parameter versions of dpl_range*
2) Added transformations for dpl_dist*, dpl_restrict*
3) Print warning when an AST node does not have an entry in header.pro
(a type isn't needed, just an entry -- at least this way we know about
it; and, because of the powerful type inference engine, everything
doesn't have to be explicitly typed -- the engine will figure out what
the type has to be most (all?) of the time).
todo) work on -fflatten and -fsimple, especially for if statements
1996-11-10 faith <faith@dict.org>
* libmaa/version.c, libmaa/memory.c, libmaa/maa.h, libmaa/basetest.c, libmaa/basetest.out, libmaa/base64.c, libmaa/base26.c, libmaa/Makefile.in:
1) Fixed up name mangling for multi-arity types.
2) Hooked up Libmaa memory objects to the type inference. This gives maybe
a 10% improvement on short examples. Oh well.
3) Made type printing more pretty by using letters instead of %p (this
is what the base 26 stuff is for in Libmaa).
4) Looked really hard at how to get polymorphic (and primed functions) to
print out in executable code. The problem here is that the type system
figures out monomorphic types for each instance of a function use.
E.g., at the N_Call node, monomorphic types have to exist for type
checking to complete. However, after figuring out all this information,
the type system just THROWS IT AWAY! This is a fine thing to do for a
type system, since it can just re-figure it out again later. But it
isn't very helpful if you want to generate executable monomorphic
instances for the functions. I looked in the type engine at the
function where the monomorphic-instance information exists
(inf_infer_definition), but there isn't enough information at that point
to let the high-level code know that a new monomorphic instance needs to
be generated. Fixing this is going to require kludging the type system
so that it has enough information to notify the high-level code via a
callback. Then the high-level code has to deal with renaming the
monomorphic instance and generating the necessary monomorphic executable
code. Getting all of these details right was one of the biggest
problems that I had with the type inference engine in trans. Based on
previous experience with trans, I think this problem will take several
weeks to fix in ptrans. Hence, I'm going to ignore polymorphic
functions for now. Code will only be generated for typed functions and
for functions that analyze to a single monomorphic instance (and, maybe
not even the later, since there still isn't enough information at the
top level to generate a typed C or Fortran function -- that information
is also lost even though the function is just untyped and isn't actually
polymorphic). Primed functions can be handled with Lar's kludge:
generate (typed) primed versions of all user-defined functions early,
and generate code for them regardless of the need for such code.
5) The next big hurdles are to get DPL memory management working, and to
get all the appropriate DPL functions generated. The I can start
checking the flattening transformations. I need to get all of this done
by the middle or end of the week so that I can start on the debugging
support. In fact, even without memory management, I can start working
on debugging support, so that's probably what I should do as soon as
compilable DPL can be generated...
* libmaa/version.c: Recursive typechecking works. Joy.
1996-11-08 faith <faith@dict.org>
* libmaa/version.c: Recursive functions do _not_ typecheck. Fuck.
Made automatic function name mangling work for variable-argument functions.
Fixed types.k (these rules are far too application order-dependent).
Make ground matching work (e.g., (N_Node 0) matches N_Node without
any children) in Khephera language.
1996-11-04 faith <faith@dict.org>
* libmaa/version.c: Fixed pp_* so that default printing styles works.
Added a bunch of dpl_* primitives.
Fixed local cpp copy so that ## token concatenation has no warning.
Added a queue of nodes that have a delete pending. This allows the
node that is currently being walked in the tree to be deleted. This
had been an impossible operation previously.
Tightened up error checking in tree walkers.
Made 'else' actually work in Khepera if clauses. Previously the else
clause was executed along with the then clause.
1996-11-02 faith <faith@dict.org>
* libmaa/version.c: Starting to add primitive dpl_mul-like operations.
1996-10-31 faith <faith@dict.org>
* libmaa/version.c: Added dpl_build_*
Added ability to use .. (sametypes) wildcard in var declaration
(this is essential to be able to type dpl_build_*)
1996-10-30 faith <faith@dict.org>
* libmaa/version.c, libmaa/config.sub:
Added topl.c and pl.k for transformations to a generic parallel library
Transform various ranges into dpl_st_range_*
Remove conf.cache when building configure files
Make config.sub recognize i686
Removed verbose tree printing so that new tree printing can be more
selective (e.g., for debugging)
Fixed bug where a poiner from alloca was used as a symbol name
1996-10-10 faith <faith@dict.org>
* search.c, dict.h, dictzip.c, Makefile.in: Work on searching
1996-10-07 faith <faith@dict.org>
* libmaa/maaP.h, libmaa/version.c: Changes for Solaris cc compiler
1996-10-03 faith <faith@dict.org>
* libmaa/prtest.out, libmaa/version.c, libmaa/Makefile.in:
Added -with-nox option to inhibit building X applications
Added prtest to libmaa suite
* libmaa/version.c, libmaa/prtest.c, libmaa/pr.c, libmaa/maa.h, libmaa/error.c:
Made error messages more uniform
Made process support use file descriptors instead of stream I/O. You
should still be able to fdopen on a fd returned from a function, if you
do all of the I/O yourself. However, a filter function was added, so
playing with I/O probably isn't needed. Coprocesses, or a coprocess chain,
should be fairly easy to set up now, in a generalized fashion. Signals
still aren't handled in a POSIX way, and deaths of children aren't caught
asynchronously, so support can still be made better.
1996-10-02 faith <faith@dict.org>
* libmaa/pr.c: Before ripping out stream I/O
1996-09-30 faith <faith@dict.org>
* dictzip.c, Makefile.in, dict.h:
Got random access reads on compressed file working.
* libmaa/version.c, libmaa/error.c: Make error messages prettier
1996-09-29 faith <faith@dict.org>
* dictzip.c: Update Id string
1996-09-26 faith <faith@dict.org>
* wndump.c, install-sh, jargdump.c, fmt.h, dictzip.c, fmt.c, dict.h, config.sub, configure.in, config.h.in, config.guess, Makefile, Makefile.in:
General work on formatting and use with configure.
* libmaa/version.c, libmaa/maa.h, libmaa/pr.c, libmaa/base64.c:
Work on base64 and process management
1996-09-25 faith <faith@dict.org>
* libmaa/version.c, libmaa/hash.c, libmaa/maaP.h, libmaa/decl.h:
Finish Solaris port
* libmaa/maa.h, libmaa/version.c, libmaa/arg.c:
Make ptrans compile and use internal cpp
* libmaa/version.c, libmaa/hash.c, libmaa/configure.in, libmaa/config.h.in, libmaa/Makefile.in:
Hash bigendian and little endian integers the same way
This allows us to have test programs that produce the same results on
different architectures.
* libmaa/settest.out, libmaa/settest.c: Print out random stuff
* libmaa/version.c, libmaa/settest.out, libmaa/settest.c, libmaa/rnd.c, libmaa/hashtest.c, libmaa/hashtest.out, libmaa/Makefile.in:
Hardcoded random numbers for test functions
* libmaa/version.c, libmaa/settest.c, libmaa/maaP.h, libmaa/mkrnd.c, libmaa/decl.h, libmaa/hashtest.c, libmaa/configure.in, libmaa/Makefile.in:
Stuff for Solaris port
* libmaa/config.guess: Make sure all library functions are under LGPL
Update configure support from autoconf-2.10
1996-09-24 faith <faith@dict.org>
* wndump.c, output.c, fmt.c, fmt.h, encode.c, engine.c, dictzip.c, decode.c.save, compressdict.c, decode.c, compressdict.1, compress2.c, compress3.c, buildindex.c, COPYING.look, buildindex.1, COPYING:
Move to version 2.0
* libmaa/sltest.c, libmaa/version.c, libmaa/maaP.h, libmaa/maa.h, libmaa/Makefile.in, libmaa/base64.c:
Added base64 routines
Fixed warnings generated under Linux
1996-09-23 faith <faith@dict.org>
* libmaa/xmalloc.c, libmaa/stringtest.c, libmaa/timer.c, libmaa/string.c, libmaa/sl.c, libmaa/strdup.c, libmaa/settest.c, libmaa/set.c, libmaa/prime.c, libmaa/primetest.c, libmaa/listtest.c, libmaa/list.c, libmaa/error.c, libmaa/debugtest.c, libmaa/decl.h, libmaa/debug.c, libmaa/bit.c, libmaa/Makefile.in, libmaa/COPYING.LIB, libmaa/COPYING:
Make sure all library routines are under GNU LGPL.
Make sure all test programs are under GNU GPL.
Include copies of GPL and LGPL for stand-alone libmaa.
* output.c, engine.c, dict.h, encode.c, decode.c.save, dict.1, decode.c, compressdict.1, compressdict.c, compress3.c, buildindex.1, compress2.c, Makefile, COPYING.look:
dict-1.1
* output.c, look.c, dictrc.sample, engine.c, dict.h, dict.1, dict.c, buildindex.1, buildindex.c, Makefile, COPYING:
dict-1.0
|