1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808
|
2006-05-12 22:26 rtoy
* packages/README:
Update list of packages.
2006-05-06 01:59 rtoy
* packages/fishpack/: .cvsignore, ex/.cvsignore:
Ignore *.ppcf, and executables.
2006-05-05 22:44 rtoy
* doc/Change-notes.txt:
Update the changes.
2006-05-05 22:28 rtoy
* README, src/f2cl1.l:
README:
o Document the options.
o Add some info about what the :common-as-array parameter really
means. (Because I couldn't remember either!)
src/f2cl1.l:
o Add :common-as-array to the docstring for f2cl and f2cl-compile.
2006-05-04 22:43 rtoy
* packages/toms/717/d1mach.f:
Initial revision.
2006-05-04 22:27 rtoy
* packages/toms/419/.cvsignore:
Ignore generated lisp files.
2006-05-04 22:23 rtoy
* packages/fishpack/ex/.cvsignore:
Ignore all lisp files.
2006-05-04 22:10 rtoy
* packages/: hompack/Makefile, odepack/Makefile:
Initial checkin.
2006-05-04 21:10 rtoy
* src/f2cl5.l:
We were not correctly testing for the variable types in the common
block when we are using common-as-array feature. This was caused by a
previous change where our type declarations sometimes come out as
(type (double-float) foo) instead of (type double-float foo).
This fix allows odepack to compile and run again.
2006-05-04 21:08 rtoy
* packages/odepack/: opkdemo7.f, opkdemo8.f:
opkdemo7.f:
o Fix typo
opkdemo8.f:
o Fix typo
2006-05-04 21:07 rtoy
* packages/odepack/dainvg.f:
Oops. NEQ is an array, not a scalar.
2006-05-04 21:06 rtoy
* packages/fishpack/ex/tsthw3crt.f:
o The variable dum is really an array.
o Add a dum0 variable.
o Call HW3CRT using dum in the right places instead of passing in
scalars. This allows the HW3CRT test to work.
2006-05-04 21:05 rtoy
* packages/odepack.system:
o Create a logical pathname based on the load path of the system file
and use that for the paths in the system definition.
o Make a note that DIPREPI can't be properly converted by f2cl, even
though the conversion is done. (Passing a real array as an integer
array.)
o Add defsystem for testing lsodes. Make a note that it doesn't work.
o Note that the lsodi test might not be right.
o Note that the lsodis test can't work.
2006-05-04 15:58 rtoy
* packages/fishpack.system:
Explain why the test for hw3crt can't be used. (This routine depends
on FFTPACK, which f2cl cannot convert.)
2006-05-04 15:17 rtoy
* packages/: fishpack.system, fishpack/ex/tstsepx4.f:
packages/fishpack.system:
o The SEPX4 test passes now; remove the comment.
packages/fishpack/ex/tstsepx4.f:
o The dummy variable DUM is really an array. Make it so.
o Fix up the format statement to include commas before the i and e
edit descriptors. Without that, f2cl parses it incorrectly and
causes an infinite loop trying to print out the results.
2006-05-04 06:10 rtoy
* packages/fishpack.system:
The test HSTCSP passes, so remove the note about failure.
2006-05-04 06:08 rtoy
* packages/fishpack.system:
o Change the source-pathname to compute the path from *LOAD-PATHNAME*
of fishpack.system.
o The test HWSCSP works now. The error (in blktr1) has been fixed.
2006-05-04 06:07 rtoy
* packages/fishpack/blktr1.f:
o The variable DUM is a dummy variable, but it's passed to functions
expecting an array. Thus, DUM has to be an array, so declare it.
o Initialize IM1, IM2, IM3, NM1, NM2, NM3, IP1, IP2, IP3, NP1, NP2,
NP3, IZ, and NZ to 1 because INDXB sometimes doesn't assign values
to the third and fourth parameters. This causes bad things to
happen when Lisp needs to slice an array based on those indices.
(Should we modify INDXB to initialize those parameters instead?
That would be better, but we don't know yet if that is the right
thing. The caller might expect INDXB not to set them.)
2006-05-04 06:02 rtoy
* src/f2cl1.l:
Add a function, SAVE-F2CL-FINFO to save the compiled function info to
a file which can be reloaded later.
2006-05-03 22:55 rtoy
* packages/: toms419.system, toms/419/calct.f, toms/419/cauchy.f,
toms/419/cdivid.f, toms/419/cmod.f, toms/419/cpoly.f,
toms/419/cpolydr.f, toms/419/errev.f, toms/419/fxshft.f,
toms/419/mcon.f, toms/419/nexth.f, toms/419/noshft.f,
toms/419/polyev.f, toms/419/prtc.f, toms/419/prtz.f,
toms/419/scale.f, toms/419/vrshft.f:
Initial revision for TOMS 419, Jenkins-Traub polynomial root finder.
2006-05-03 22:06 rtoy
* src/f2cl5.l:
Was not correctly handling handling the dimensions for a logical
array when computing the declaration for the array.
2006-05-03 19:55 rtoy
* src/NOTES:
Update
2006-05-03 19:37 rtoy
* src/f2cl5.l:
o A better implementation, I think, of the separate nP edit
descriptor.
o Forgot to declare *scale-factor* as special in the F, D, and G
descriptor parser functions.
2006-05-03 19:22 rtoy
* packages/hompack/mains.f, src/f2cl5.l:
src/f2cl5.l
o We weren't handling formats like "1P,E15.8", which is the same as
"1PE15.8". Make this work. We make a note of the fact that we have
a nP descriptor, and the following descriptor uses it. Afterwords,
the scale-factor is reset.
packages/homepack/mains.f:
o Revert the 1P change because f2cl handles this now.
2006-05-03 18:40 rtoy
* README:
Correct a few typos, add a litte more info.
2006-05-03 17:11 rtoy
* packages/toms717.system:
Comment out the test programs that currently don't work.
2006-05-03 17:03 rtoy
* packages/toms/717/da7sst.f:
f2cl incorrectly parses
(V(NREDUC) .EQ. ZERO. AND. V(PREDUC) .EQ. ZERO)
so change it to
(V(NREDUC) .EQ. ZERO .AND. V(PREDUC) .EQ. ZERO)
(Note the placement of the dot after ZERO.)
I thought this used to work, but perhaps something has changed how
lenient f2cl is.
2006-05-03 17:02 rtoy
* packages/hompack/mains.f:
f2cl doesn't know how to parse the format "1P,4E16.8", so change it to
"1P4E16.8", which f2cl knows.
2006-05-03 16:17 rtoy
* packages/hompack/: mainf.f, mainp.f, mains.f:
packages/hompack/mainf.f:
o Change name of main program to mainf
packages/hompack/mainp.f:
o Change name of main program to mainp
packages/hompack/mains.f:
o Change name of main program to mains
2006-05-03 04:45 rtoy
* packages/hompack/innhp.dat:
Adjust input so that f2cl'ed mainp.f can actually read in the file:
- Remove the trailing alphanumeric characters from each line.
- Change the title to use double quotes, not single.
2006-05-03 04:44 rtoy
* packages/hompack/mainp.f:
o The input file name is "innhp.dat", not "INNHP.DAT".
o Change the status to 'old' and 'new', as appropriate, instead of
'unknown'.
2006-05-03 04:31 rtoy
* src/: f2cl1.l, f2cl5.l:
src/f2cl1.l:
o When parsing an entry point, keep track of the actual parent
function so we can generate the correct calling info. (We only
support entry points with exactly the same number and type of
arguments so the calling info has to be the same.)
Do this by adding the parent to the list pushed on *entry-points*.
o Set *subprog_name* to the function name. (Is this right?)
src/f2cl5.l:
o If possible, use the parent name to figure out the calling info for
the entry point.
With these changes hompack can be compiled twice, successfully.
Previously polyp.f would call polynf correctly the first time, but
when everything is recompiled, polyp.f would incorrectly call polynf
with no args!
2006-05-03 04:21 rtoy
* packages/hompack.system:
Fix missing dependency. hfun1p depends on ffunp.
2006-05-03 00:17 rtoy
* src/f2cl5.l:
Clean declarations for parameters by combining all declarations int
one.
2006-05-03 00:12 rtoy
* src/: f2cl5.l, macros.l:
src/f2cl5.l:
o Try to make better declarations for variables defined in parameter
statements. We'll declare them as (double-float 42d0 42d0) if the
parameter was initialized to 42d0.
o MAKE-DECLARATION updated to take an extra keyword argument to
indicate if this is a parameter variable and to give the initial
value of the parameter so we can make the appropriate declaration.
o When initializing simple variables in data statements, try to bind
the variable with the initial value instead binding a default 0 zero
and setq'ing it later.
src/macros.l:
o Change DEFTYPE for INTEGER4 to allow parameters so we can specify
tight bounds if desired.
2006-05-03 00:03 rtoy
* packages/minpack/run-minpack-tests.lisp:
Use the minpack logical pathname for the input data file.
2006-05-03 00:02 rtoy
* packages/minpack.system:
Fix typo in source-pathname for minpack-tests.
2006-05-02 22:20 rtoy
* val/tst-char-init.f:
o Fix typo
o Print out each string.
2006-05-02 18:13 rtoy
* packages/toms/717/makefile:
Some dependencies were missing. Fix them.
2006-05-01 19:40 rtoy
* src/macros.l:
Change STOP to produce a continuable error instead of an error so that
we can continue from the STOP statement, if we choose to. It's not
necessarily an error in a converted program to reach a STOP statement.
2006-05-01 19:38 rtoy
* src/: f2cl1.l, f2cl5.l:
Replace some uses of FSET with plain ol' SETF because SETF does
everything we want it to do. But leave some FSET's around because we
need them later to generate initializers for DATA statements, and
such.
2006-04-29 03:58 rtoy
* packages/toms/.cvsignore, packages/toms/717/.cvsignore,
src/.cvsignore, val/.cvsignore:
Ignore some files.
2006-04-29 03:56 rtoy
* packages/: minpack/.cvsignore, toms/715/.cvsignore:
Ignore *.lisp and *.ppcf.
2006-04-28 17:42 rtoy
* src/f2cl1.l:
o Forgot to apply the same change to PARSE-ARRAYREF-OR-STMTFN that was
needed for PARSE-ASSIGNMENT for assigning a complex to a real.
o Add new common function COERCE-RHS-TO-LHS to be used by of these
routines so we don't forget again.
2006-04-28 15:30 rtoy
* src/NOTES:
Update from changes.
2006-04-28 15:28 rtoy
* src/f2cl5.l:
Add type-derivation for ABS. Otherwise, we end up with COERCE calls
wherever ABS is used.
2006-04-28 15:27 rtoy
* src/f2cl1.l:
o When assigning a complex to a real variable, we need to take the
realpart. We weren't doing that.
o Cleanup a compiler warning
o Simplify a few debugging prints.
2006-04-28 03:36 rtoy
* src/f2cl5.l:
If there are no array data forms, don't emit a WITH-MULTI-ARRAY-DATA
form either.
2006-04-28 03:35 rtoy
* packages/quadpack/quadpack-tests.lisp:
In TST17 for DQAWC, the absolute error criterion was too small. It
must be strictly positive. This test runs as expected.
2006-04-28 03:18 rtoy
* src/NOTES:
Update for changes.
2006-04-28 03:12 rtoy
* f2cl.system, packages/minpack.system, packages/quadpack.system,
packages/toms715.system:
Use *load-pathname to construct the source path (f2cl.system) or a
logical pathname to use in the defsystems so that each defsystem can
find its own files.
2006-04-28 02:35 rtoy
* src/f2cl2.l:
Modify how expressions and Fortran complex numbers are recognized. An
expression should not contain a comma, and a Fortran complex number
must have a comma.
Not sure this is correct for an expression, but a complex number must
have a comma.
2006-04-28 02:33 rtoy
* packages/quadpack/Fortran/dqawse.f:
Current f2cl cannot parse a logical OR operator when the leading dot is
on a separate line from OR. So move the dot to the same line.
2006-04-27 19:43 rtoy
* src/: f2cl0.l, f2cl1.l, f2cl5.l, macros.l:
src/f2cl0.l:
o Export dimag, dcmplx, zsqrt
src/f2cl1.l:
o Add dcmplx, dimag, and zsqrt to the list of intrinsic function
names.
o When parsing "implicit none" statements, we don't modify
*IMPLICIT_VBLE_DECLS*. I don't think it's needed and it can cause
errors later on because :none is not a Lisp type.
src/f2cl5.l:
o Tell GET-FUN-ARG-TYPE about the result type of dcmplx, dsqrt, the
complex*8 and complex*16 special functions.
o ABS is an allowed lisp name. This gets rid of the spurious ABS$
local variable whenever we use the ABS function.
src/macros.l:
o Add implementations of dcmplx, dimag, and zsqrt. (We need to add
more, I think.)
2006-04-26 21:59 rtoy
* src/f2cl1.l:
Oops. Need to check for extended DO before DO WHILE. (This should be
fixed so it doesn't have to be that way.)
2006-04-26 20:38 rtoy
* src/: NOTES, f2cl1.l:
src/Notes:
o Update
src/f2cl1.l:
o Add support for DO-WHILE statements.
2006-04-07 22:38 rtoy
* src/f2cl1.l:
Wrap eval-when around the defstruct for f2cl-finfo for Allegro. Bug
and fix reported by Richard Fateman.
2006-01-31 16:11 rtoy
* src/f2cl1.l:
Checkin to update version id.
2006-01-31 16:09 rtoy
* src/f2cl5.l:
Try to return a 1-D array declaration when possible.
2006-01-30 23:59 rtoy
* src/f2cl1.l:
o Check in to get new f2cl-version number.
o Reindented brackets-check to something more typical.
2006-01-30 23:57 rtoy
* README:
Update README with more info.
2006-01-30 23:37 rtoy
* src/NOTES:
Update for changes.
2006-01-30 22:23 rtoy
* src/f2cl6.l:
Revert change made in 1.39 for logical operations. This was causing
f2cl to delete all spaces after the logical operation and that really
confuses later parts because we need whitespace to separate symbols
and such.
2006-01-30 22:21 rtoy
* src/f2cl5.l:
o Fix bug in MERGE-DATA-AND-SAVE-INITS. For multidimensional arrays
that were fully initialized with data statements, f2cl was
forgetting to leave the fsets around to initialize them, and thus,
the arrays were never actually initialized.
o Extend MERGE-DATA-AND-SAVE-INITS to support multidimensional arrays
that are fully initialized.
2006-01-27 15:12 rtoy
* src/f2cl1.l:
o Adjust SPECIAL-PRINT so we don't try to print readably because Clisp
tries very hard to make every truly readable, including escaping all
symbols and including package qualifiers to make sure it's read
exactly the same. That's not what f2cl really wants.
o In PARSE-EQUIVALENCES, we want to append to *equivalenced-vars*, not
set it each time we have an equivalence statement! Otherwise, we
end up with just the last equivalence statement to process,
forgetting all others.
2006-01-12 18:25 rtoy
* packages/odepack.system:
Add some comments about which test programs seem to work.
2006-01-12 18:20 rtoy
* packages/odepack/: opkdemo1.f, opkdemo2.f, opkdemo3.f,
opkdemo4.f, opkdemo5.f, opkdemo6.f, opkdemo7.f, opkdemo8.f:
Add a PROGRAM statement for each of the test programs, and comment out
the STOP at the end of each program.
2006-01-12 18:19 rtoy
* src/f2cl5.l:
F2CL can handle equivalences of 2 simple variables of the same type.
2006-01-12 03:03 rtoy
* packages/minpack/run-minpack-tests.lisp:
Update for the read/open changes so we can still run the tests.
2006-01-12 03:02 rtoy
* packages/minpack/dpmpar.f:
Comment out the equivalence statements because f2cl signals an error
for that now. Besides, we don't need them.
2006-01-12 02:36 rtoy
* val/: fort.1, open.f:
val/open.f:
o Test program for open, rewind, close, and read.
val/fort.10:
o Input file for open.f.
2006-01-12 02:33 rtoy
* src/macros.l:
If status is not given or unknown, create the file if it doesn't
exist.
2006-01-11 23:57 rtoy
* src/: f2cl1.l, f2cl5.l, macros.l:
Add rudimentary support for opening files and reading from files.
src/f2cl1.l:
o Recognize and handle open, rewind, and close statements.
src/f2cl5.l:
o Update parser for read to handle unit numbers. Rudimentary support
for implied-do lists too.
o Add parser for open, rewind, and close statements.
src/macros.l:
o Add functions and macros to handle opening, rewinding,
and closing files. Needs more work still.
2006-01-11 17:52 rtoy
* src/NOTES:
Add notes on how equivalences could possible be handled.
2006-01-11 17:32 rtoy
* src/f2cl1.l:
Print a warning (as well) if we failed to translate something. (We
were just leaving a comment in the translated code.)
2006-01-11 17:30 rtoy
* src/f2cl5.l:
Allow implied-do loops in read statements. Still has the f2cl
limitations with read, but at least they're parsed and converted into
a loop that reads into the variables.
2006-01-11 16:14 rtoy
* packages/toms717.system:
mecdf.f split into 1 function per file. Adjust components appropriately.
2006-01-11 16:00 rtoy
* packages/toms/717/: alnorm.f, mecdf.f, phi.f:
mecdf.f split into 1 function per file.
2006-01-10 23:34 rtoy
* packages/toms717.system:
dpmain.f split into 1 function per file.
2006-01-10 23:33 rtoy
* packages/toms/717/: brj.f, brj1.f, chkder.f, cnerr.f, devian.f,
dzero.f, invcn.f, louchk.f, lpn.f, pmain.f, pnorms.f, poisx0.f,
poix0.f, pregrh.f, pregrv.f, prgrh1.f, rhpoil.f, rpoil0.f:
Initial version. dpmain.f split into 1 function per file.
2006-01-10 22:20 rtoy
* src/f2cl1.l:
Oops. Need to clear out *equivalenced-vars* for every subprogram.
2006-01-10 19:07 rtoy
* packages/toms717.system:
Add comments about status of the tests.
2006-01-10 19:07 rtoy
* packages/toms/717/: dg7itb.f, drglgb.f:
Enable printing of the iteration summaries so we can compare the
output with the expected output.
2006-01-10 17:07 rtoy
* packages/toms/717/: dd7mlp.f, df7dhb.f, dg7itb.f, dg7qsb.f,
dglfb.f, dglgb.f, dh2rfa.f, dh2rfg.f, dl7msb.f, dq7rsh.f,
drglgb.f, ds7bqn.f, ds7dmp.f, ds7ipr.f, dv7ipr.f, dv7shf.f,
dv7vmp.f, i7copy.f, i7pnvr.f, i7shft.f:
Initial version of dglgf.f split into one function per file.
2006-01-10 17:05 rtoy
* packages/toms717.system:
dglgf.f has been split into one function per file. Add files and
dependencies for this.
2006-01-10 15:59 rtoy
* packages/toms/717/madrj.f:
NEED is really an array, not a simple variable.
2006-01-10 15:58 rtoy
* packages/toms717.system:
Add new files for madsen.f and adjust dependencies appropriately.
2006-01-10 15:54 rtoy
* packages/toms/717/drglg.f:
Fix up a couple of places where we were calling RHO with array slices
instead of a single array element. (f2cl can't catch these because
RHO is argument to the function.)
2006-01-10 15:52 rtoy
* packages/toms/717/: madsen.f, madsenb.f:
The subroutines MADRJ and RHOLS have been moved to individual files.
2006-01-10 15:52 rtoy
* packages/toms/717/dmdc.f:
Oops. We implemented this incorrectly using d1mach. Make it
correct.
2006-01-10 15:50 rtoy
* packages/toms/717/: madrj.f, rhols.f:
Initial version of subroutines taken from madsen.f (and madsenb.f) and
placed into individual files.
2006-01-10 05:39 rtoy
* packages/toms717.system:
Add madsenb.f to the tests.
2006-01-10 05:39 rtoy
* packages/toms/717/: madsen.f, madsenb.f:
madsen.f:
o Add program statement
madsenb.f:
o Add program statement
2006-01-10 05:16 rtoy
* packages/toms717.system:
Add dependencies for the individual files so that we compile
everything in the right order for f2cl to translate things nicely.
2006-01-10 05:10 rtoy
* packages/toms/717/madsen.f:
Fix typo in format statement 20.
2006-01-10 05:09 rtoy
* packages/toms/717/dmdc.f:
Implement DR7MDC in terms of D1MACH.
2006-01-09 20:27 rtoy
* packages/toms717.system:
Initial versioin of defsystem for TOMS 717. Still needs a lot of
work.
2006-01-09 20:26 rtoy
* src/f2cl6.l:
o We need to quote any double-quote characters that we might find in a
string, so that we can parse it correctly during translation. (For
this to work, we MUST NOT change the syntax of \ in the Fortran
readtable.)
o Don't trim any spaces and such when combining continuation lines.
Doing so definitely breaks Hollerith (ick!) strings in format
statements.
2006-01-09 20:19 rtoy
* src/f2cl1.l:
Don't add \ to the Fortran readtable.
I don't know why we do that, but it breaks parsing of strings that
contain embedded double-quote marks. I hope removing this doesn't
break something else, but more testing definitely needed.
2006-01-09 04:08 rtoy
* src/: f2cl1.l, macros.l:
src/f2cl1.l:
o Translate a Fortran STOP to be the stop function. Was just
returning NIL, and this doesn't work so well.
src/macros.l:
o Add STOP function. It prints out the any arg, and then signals an
error.
2006-01-09 01:51 rtoy
* src/NOTES:
Add more notes about changes and issues.
2006-01-09 01:37 rtoy
* src/: f2cl5.l, macros.l:
src/f2cl5.l:
o When looking for initializers, don't just remove initializers when
the array is not a 1-D array. Keep them, and return a second value
indicating if the array is 1-D or not.
o MAKE-CHAR-DECL was not properly declaring and initializing 2-D
arrays as 1-D arrays like we're supposed to. Compute the total size
of the array if we can.
src/macros.l:
o F2CL-INIT-STRING needs to make a 1-D array, even if the string array
is multi-dimensional.
2006-01-08 17:51 rtoy
* src/f2cl6.l:
We were (stupidly) not recognizing FORMAT statements that didn't start
in column 7, so we weren't converting any Hollerith strings to strings
in the format.
2006-01-08 05:35 rtoy
* packages/toms/717/: da7sst.f, dd7tpr.f, dd7up5.f, dg7qts.f,
ditsum.f, divset.f, dl7itv.f, dl7ivm.f, dl7mst.f, dl7sqr.f,
dl7srt.f, dl7svn.f, dl7svx.f, dl7tvm.f, dl7vml.f, do7prd.f,
dparck.f, dq7adr.f, drldst.f, ds7lup.f, ds7lvm.f, dv2axy.f,
dv2nrm.f, dv7cpy.f, dv7dfl.f, dv7scl.f, dv7scp.f, dvsum.f,
stopx.f:
Split dgletc.f into one function per file.
2006-01-08 04:08 rtoy
* packages/toms/717/: df7hes.f, dg2lrd.f, dg7lit.f, dglf.f, dglg.f,
dl7nvr.f, dl7tsq.f, dn3rdp.f, drglg.f:
Split dglgf.f into one function per file.
2006-01-08 03:32 rtoy
* packages/toms/717/: README, daganzo.fu2, dgletc.f, dglfb,
dglfg.f, dglfgb.f, dglgb, dmdc.f, dmdc.f0, dpmain.f,
example-sae.c, example-sse.c, example.c, f2c.h, fort.1, fort.2,
madsen.diff, madsen.f, madsen.sgi, madsenb.c, madsenb.f,
madsenb.sgi, makefile, mecdf.f, mlmnp.f, mlmnpb.f, mnpex1.fu1,
mnpex1.sgi, mnpex1b.sgi, mnpex2.fu1, mnpex2.sgi, mnpex2b.sgi,
mnpsubs.f, pmain.in, pmain.sgi, rent.fu2, rent1.fu1, rent1.sgi,
rent1b.sgi, rent2.fu1, rent2.sgi, rent2b.sgi, sgletc.f, sglfg.f,
sglfgb.f, smadsen.f, smadsen.sgi, smadsenb.f, smadsenb.sgi,
smdc.f0, smecdf.f, smlmnp.f, smlmnpb.f, smnpex1.sgi,
smnpex1b.sgi, smnpex2.sgi, smnpex2b.sgi, smnpsubs.f, spmain.f,
spmain.sgi, srent1.sgi, srent1b.sgi, srent2.sgi, srent2b.sgi:
Initial import of TOMS 717 from
http://cll.stanford.edu/~ljupco/alg-717/TOMS-717.tar.gz.
2006-01-04 18:56 rtoy
* src/NOTES:
Update changes.
2006-01-04 18:55 rtoy
* val/tst-char-init.f:
Initial version.
2006-01-04 18:53 rtoy
* src/: f2cl1.l, f2cl5.l, macros.l:
We were not correctly processing intialization of string arrays in
data statements.
src/f2cl1.l:
o In PARSE-DATA1, return the entire list of initializers instead of
just the first, in case we have an array of initializers.
src/f2cl5.l:
o In MERGE-DATA-AND-SAVE-INITS, we need to recognize the
initialization of strings and such. We don't do anything special
right now, like we do for arrays of numbers.
o In INSERT-DECLARATIONS, we need to handle the case of REPLACE in the
*data-init*'s. We assume it's been handled somewhere else, so
there's nothing to do here.
2006-01-04 18:39 rtoy
* src/f2cl6.l, val/tst-parse.f:
src/f2cl6.l:
o Skip over whitespace when parsing logical operations. This is meant
to handle things like "ZERO. AND . ONE", which Fortran says is the
same as "ZERO .AND. ONE".
val/tst-parse.f:
o Test file for parsing logical operations with spaces.
2006-01-04 18:35 rtoy
* val/equiv.f:
Initial revision.
2005-07-26 14:45 rtoy
* src/f2cl5.l:
Oops. Need to make the declaration anyway because we need to figure
out the type of the variable.
2005-07-26 14:37 rtoy
* src/f2cl1.l:
Don't proclaim *readtable* as special, because it's already in the CL
package and special. (For sbcl.)
2005-07-18 18:38 rtoy
* packages/fishpack/: .cvsignore, ex/.cvsignore:
Initial revision.
2005-07-18 18:37 rtoy
* packages/hompack.system:
Make some of the files :compile-only because the user is supposed to
supply the definitions, and these are just templates for the user to
fill in.
2005-07-17 07:15 rtoy
* packages/fishpack.system:
Add SEPX4 and dependencies and test program.
2005-07-17 07:05 rtoy
* packages/fishpack/: chkpr4.f, chksn4.f, cofx.f, defe4.f, dx4.f,
dy4.f, minso4.f, ortho4.f, sepx4.f, speli4.f, tris4.f,
ex/cofx4.f, ex/tstsepx4.f:
Import of SEPX4 and dependencies and test program.
2005-07-17 06:17 rtoy
* packages/fishpack/: hw3crt.f, pois3d.f, pos3d1.f, trid.f,
ex/tsthw3crt.f:
Import of HW3CRT and dependencies and test program.
2005-07-17 06:13 rtoy
* packages/fishpack.system:
o Add HSTCSP and dependencies.
o Add defsystem for HSTCSP. (But the test fails.)
2005-07-17 06:11 rtoy
* packages/fishpack/ex/tsthstcsp.f:
Some variables should really be arrays.
2005-07-17 06:10 rtoy
* packages/fishpack/: hstcs1.f, hstcsp.f, ex/tsthstcsp.f:
Add HSTCSP and dependencies and test program.
2005-07-17 05:55 rtoy
* packages/fishpack.system:
o Add HSTSSP
o Add defsystem for HSTSSP. We pass the test.
2005-07-17 05:54 rtoy
* packages/fishpack/hstssp.f:
Initial import of HSTSSP.
2005-07-17 05:52 rtoy
* packages/fishpack/ex/tsthstssp.f:
Some variables should really be arrays.
2005-07-17 05:51 rtoy
* packages/fishpack/ex/tsthstssp.f:
Initial import of HSTSSP test program.
2005-07-17 05:48 rtoy
* packages/fishpack/hstcyl.f:
Initial import of HSTCYL.
2005-07-17 05:38 rtoy
* packages/fishpack.system:
o Add HSTCYL
o Add defsystem for HSTCYL test. We pass.
2005-07-17 05:37 rtoy
* packages/fishpack/ex/tsthstcyl.f:
Some variables should really be arrays.
2005-07-17 05:35 rtoy
* packages/fishpack/ex/tsthstcyl.f:
Initial import of test program for HSTCYL.
2005-07-17 05:35 rtoy
* packages/hompack/readme:
Import README for HOMPACK from netlib.
2005-07-17 05:30 rtoy
* packages/fishpack.system:
o Add HSTPLR
o Add defsystem for HSTPLR. We pass the test.
2005-07-17 05:30 rtoy
* packages/fishpack/ex/tsthstplr.f:
Some variables should really be arrays.
2005-07-17 05:29 rtoy
* packages/fishpack/hstplr.f:
Initial import of HSTPLR.
2005-07-17 05:28 rtoy
* packages/fishpack/ex/tsthstplr.f:
Initial import of test program for HSTPLR.
2005-07-17 05:19 rtoy
* packages/fishpack.system:
o BLKTRI needs to declare the common block.
o Add HSTCRT and dependencies.
o Add defsystem for HWSCSP. (But the test fails.)
o Add defsystem for HSTCRT. We pass the test.
2005-07-17 05:18 rtoy
* packages/fishpack/: hstcrt.f, poistg.f, postg2.f:
Import of HSTCRT and dependencies.
2005-07-17 05:17 rtoy
* packages/fishpack/ex/tsthstcrt.f:
Some variables should really be arrays.
2005-07-17 05:14 rtoy
* packages/fishpack/ex/tsthstcrt.f:
Initial import of test program for HSTCRT.
2005-07-17 05:13 rtoy
* packages/fishpack/ex/tsthwscsp.f:
Some variables should really be arrays.
2005-07-17 05:13 rtoy
* packages/fishpack/tevls.f:
Rename MACHEP to EPS to match other declarations of the common block.
2005-07-17 04:42 rtoy
* packages/fishpack/ex/tsthwscsp.f:
Initial import of test program for HWSCSP.
2005-07-17 04:17 rtoy
* src/f2cl5.l:
Don't try to declare a function if the function was a parameter. We don't really know anything about the function.
2005-07-17 04:16 rtoy
* src/NOTES:
More notes about what's change.
2005-07-17 04:15 rtoy
* packages/fishpack.system:
Define defsystems for the various tests.
2005-07-17 00:43 rtoy
* src/f2cl5.l:
Make sure entry points are also entered into the function database.
2005-07-16 23:00 rtoy
* src/f2cl5.l:
In CHECK_NEW_VBLES, we need to add a special case for an expression
containing ARRAY-SLICE because we don't want to add ARRAY-SLICE and
the array type as new variables. Are there other special cases?
2005-07-16 17:20 rtoy
* packages/hompack.system:
Split the tests into 3 separate systems because they use the same name
for some functions so the tests can't all be loaded at the same time
and still work.
2005-07-16 17:11 rtoy
* src/f2cl1.l:
In GENERATE-CALL-TO-ROUTINE, if the routine is a parameter, we don't
really know anything about it even if we know the info about a routine
of the same name. Thus, there's nothing we can do except just call it
and hope it's right. (We warn the user, though!)
2005-07-16 17:09 rtoy
* packages/: blas/.cvsignore, hompack/.cvsignore:
Ignore more generated stuff.
2005-07-16 17:07 rtoy
* packages/hompack.system:
o File "f" isn't really part of system. Remove it.
2005-07-15 17:28 rtoy
* src/f2cl1.l:
Make the parser for IF statements a little smarter. "IF =" is not an
IF statement.
2005-07-15 17:26 rtoy
* packages/fishpack.system:
Update to support HWSPLR, HWSCYL, and HWSSSP solvers.
2005-07-15 17:24 rtoy
* packages/fishpack/ex/: tsthwscyl.f, tsthwsplr.f, tsthwsssp.f:
Initial import of test programs for HWSPLR, HWSCYL, and HWSSSP.
2005-07-15 17:22 rtoy
* packages/fishpack/: blktr1.f, blktri.f, bsrh.f, compb.f, cprod.f,
cprodp.f, epmach.f, hwscs1.f, hwscsp.f, hwscyl.f, hwsplr.f,
hwsss1.f, hwsssp.f, indxa.f, indxb.f, indxc.f, junk.f, ppadd.f,
ppsgf.f, ppspf.f, prod.f, prodp.f, psgf.f, store.f, tevls.f:
Initial import OF HWSPLR, HWSCYL, and HWSSSP solvers.
2005-07-14 23:50 rtoy
* packages/: fishpack.asd, fishpack.system,
fishpack/ex/tsthwscrt.f:
Initial revision.
2005-07-14 23:49 rtoy
* packages/fishpack/: cosgen.f, genbun.f, hwscrt.f, merge.f,
pimach.f, poisd2.f, poisn2.f, poisp2.f, tri3.f, trix.f:
Initial import of fishpack hwscrt.
2005-07-14 23:44 rtoy
* src/f2cl1.l:
Oops. Need to clear out *equivalenced-vars* on every call to f2cl, so
we don't get old info!
2005-07-14 23:38 rtoy
* src/: NOTES, f2cl1.l, f2cl5.l:
o Change default array-type in F2CL to be the same as F2CL-COMPILE.
o Add support for some EQUIVALENCE statements. We can handle
equivalence statements that equivalence an array (element) to a
simple variable of the same type. Everything else will cause an
error. This is much better than putting a silly "not-translated"
string into the generated lisp file.
2005-07-14 19:29 rtoy
* src/: NOTES, f2cl1.l:
Make f2cl a little smarter when calling functions if f2cl knows the
expected arg types of the function. If the arg type is a simple
variable and the actual arg is an array slice, convert the slice to an
array reference.
2005-07-14 15:35 rtoy
* f2cl.asd:
Initial revision. From Mario Mommer.
2005-06-20 04:01 rtoy
* src/NOTES:
Explain how to turn off merging of data inits in case it causes
trouble.
2005-06-20 03:53 rtoy
* src/: NOTES, f2cl1.l, f2cl5.l:
Add code to try to merge the data statement initializers into the
declaration of the saved variable itself instead of generating a bunch
of fset forms.
See NOTES for more detail.
src/NOTES:
o Describe change
src/f2cl5.l:
o (Gross) Implementation
src/f2cl1.l:
o Update version.
2005-06-01 17:29 rtoy
* src/f2cl1.l:
o Shorten the length of some lines in docstrings.
o As part of the header, print out the lisp implementation type and
version.
2005-05-26 21:18 rtoy
* src/f2cl5.l:
Oops. Remove some extraneous debugging outputs.
2005-05-26 18:00 rtoy
* src/f2cl5.l:
Don't create a declaration for a subprogram parameter if that
parameter is also used as a function. This happens if the function
isn't declared external.
2005-05-19 17:09 rtoy
* src/f2cl1.l:
Gratuitous change to update the rev date.
2005-05-19 17:06 rtoy
* src/macros.l:
Oops. make-label is in the f2cl-lib package.
2005-05-16 17:50 rtoy
* src/macros.l:
o Replace single semicolons with multiple semicolons as appropriate.
o GCL apparently doesn't like some declarations, so comment them out
for GCL.
o GCL doesn't like the defparameter for *lun-hash*.
o GCL doesn't seem to have least-positive-normalized-double-float, so
make it the same as least-positive-double-float. Likewise for
single-float.
These changes come from maxima.
2005-03-28 22:38 rtoy
* src/: f2cl5.l, macros.l:
Make strings with an element-type of character instead of base-char,
in case the Lisp implementation has unicode support.
2005-03-03 13:54 pvaneynd
* debian/: changelog, control:
debian release 1.0+cvs.2005.03.03
2004-11-09 19:37 rtoy
* src/f2cl1.l:
o Use compile-file-pathname for the output-file instead of T, because
that's a CMUCL extension.
o Recognize real*4 as a declaration of type REAL. We had forgotten
that.
o When parsing common blocks with arrays in them that were already
dimensioned elsewhere, we were calling update_cm_array_dims
incorrectly with the parsed dimensions. "Unparse" them first. This
is really gross.
2004-09-01 16:17 rtoy
* src/macros.l:
atan2 takes single-float args, not double-float.
2004-08-18 05:49 rtoy
* packages/odepack/opkdemo8.f:
Remove equivalence statements that were used to initialize the
arrays. f2cl doesn't have limits on the number of continuation
statements, so they're not needed. (Besides, they're not supported by
f2cl.)
2004-08-18 04:33 rtoy
* packages/odepack/opkdemo8.f:
NEQ, RTOL, and ATOL should be arrays I think. N should be an array
too.
2004-08-18 04:27 rtoy
* packages/odepack/opkdemo7.f:
o I think N should be an array, so make it so in the subroutines.
o Remove the equivalence statements that f2cl doesn't support and the
corresponding variables. (I think the equivalences were used to
initialize an array in parts without exceeding the limit of 6
continuation statements.)
This still needs some work, I think.
2004-08-18 04:20 rtoy
* packages/odepack/dainvg.f:
I think NEQ should be an array, so make it so.
2004-08-18 03:47 rtoy
* packages/odepack/: opkdemo1.f, opkdemo3.f, opkdemo4.f,
opkdemo6.f:
NEQ is an array.
2004-08-18 03:45 rtoy
* packages/odepack.system:
o Update some dependencies
o Add defsystems for the test demo programs.
2004-08-17 18:09 rtoy
* src/f2cl1.l:
Reinstate make-label here. This really needs to be cleaned up.
2004-08-15 13:16 rtoy
* src/f2cl5.l:
Don't want that eval-when there.
2004-08-15 00:29 marcoxa
* src/macros.l:
Added an EVAL-WHEN to silence the LW compiler.
2004-08-14 23:51 rtoy
* packages/odepack/opkdemo6.f:
Fix up variables that need to be arrays.
2004-08-14 23:10 rtoy
* packages/odepack/: opkdemo6.f, opkdemo7.f, opkdemo8.f,
opkdemo9.f:
Initial revision.
2004-08-14 22:38 rtoy
* packages/odepack/: opkd-sum, opkddemos, opkdemo2.f:
Initial revision.
2004-08-14 22:34 rtoy
* packages/README:
Note odepack.
2004-08-14 21:27 rtoy
* src/f2cl5.l:
Try to clean up code a little.
2004-08-14 20:01 rtoy
* src/NOTES:
Note ODEPACK package.
2004-08-14 20:00 rtoy
* packages/odepack/.cvsignore:
Ignore files.
2004-08-14 19:56 rtoy
* packages/odepack.system:
Add defsystems for some of the demo test programs.
2004-08-14 19:35 rtoy
* packages/odepack/opkdemo5.f:
Some variables need to be arrays.
2004-08-14 19:00 rtoy
* packages/odepack/opkdemo5.f:
Initial version.
2004-08-14 18:58 rtoy
* packages/odepack/opkdemo4.f:
NEQ and RTOL are arrays.
2004-08-14 18:50 rtoy
* packages/odepack/opkdemo4.f:
Demo program for DLSODAR.
2004-08-14 18:49 rtoy
* packages/odepack/opkdemo3.f:
Demo program for DLSODA.
2004-08-14 18:38 rtoy
* packages/odepack/opkdemo3.f:
Demo program for DLSODA.
2004-08-14 18:35 rtoy
* packages/odepack/opkdemo1.f:
NEQ is an array.
2004-08-14 18:14 rtoy
* packages/odepack/opkdemo1.f:
NEQ, RTOL, and ATOL need to be arrays to work.
2004-08-14 18:11 rtoy
* packages/odepack/opkdemo1.f:
Initial version.
2004-08-14 18:10 rtoy
* src/f2cl5.l:
Forgot to create the symbol-macrolet for arrays in the common block,
when using common-blocks-as-arrays.
2004-08-14 15:45 rtoy
* src/f2cl2.l:
Handle OR and AND expressions. (Maybe. This probably needs a lot
more work.)
2004-08-14 15:44 rtoy
* src/f2cl1.l:
Add support for ASSIGN statement.
2004-08-14 06:20 rtoy
* packages/odepack.system:
Clean up compiler options and add some dependency information so
things are compiled in the right order.
2004-08-14 06:17 rtoy
* src/macros.l:
Need a definition for MAKE-LABEL.
2004-08-14 06:15 rtoy
* src/f2cl5.l:
o GET_ARRAY_TYPE was not computing the array type in some situations.
(I hope this is the right fix.)
o Was not counting the array lengths correctly.
2004-08-14 00:08 rtoy
* packages/odepack/xsetun.f:
Initial checkin for odepack sources.
2004-08-14 00:05 rtoy
* packages/: odepack.system, odepack/adjlr.f, odepack/cdrv.f,
odepack/cntnzu.f, odepack/daigbt.f, odepack/dainvg.f,
odepack/dainvgs.f, odepack/datp.f, odepack/datv.f,
odepack/daxpy.f, odepack/dbnorm.f, odepack/dcfode.f,
odepack/dcopy.f, odepack/ddecbt.f, odepack/ddot.f,
odepack/dewset.f, odepack/dfnorm.f, odepack/dgbfa.f,
odepack/dgbsl.f, odepack/dgefa.f, odepack/dgesl.f,
odepack/dhefa.f, odepack/dhels.f, odepack/dheqr.f,
odepack/dhesl.f, odepack/dintdy.f, odepack/diprep.f,
odepack/diprepi.f, odepack/dlhin.f, odepack/dlsoda.f,
odepack/dlsodar.f, odepack/dlsode.f, odepack/dlsodes.f,
odepack/dlsodi.f, odepack/dlsodis.f, odepack/dlsodkr.f,
odepack/dlsodpk.f, odepack/dlsoibt.f, odepack/dmnorm.f,
odepack/dnrm2.f, odepack/dorthog.f, odepack/dpcg.f,
odepack/dpcgs.f, odepack/dpjibt.f, odepack/dpkset.f,
odepack/dprep.f, odepack/dprepi.f, odepack/dprepj.f,
odepack/dprepji.f, odepack/dprja.f, odepack/dprjis.f,
odepack/dprjs.f, odepack/drchek.f, odepack/droots.f,
odepack/dscal.f, odepack/dsetpk.f, odepack/dslsbt.f,
odepack/dsolbt.f, odepack/dsolpk.f, odepack/dsolss.f,
odepack/dsolsy.f, odepack/dspigmr.f, odepack/dspiom.f,
odepack/dsrcar.f, odepack/dsrckr.f, odepack/dsrcma.f,
odepack/dsrcms.f, odepack/dsrcom.f, odepack/dsrcpk.f,
odepack/dstoda.f, odepack/dstode.f, odepack/dstodi.f,
odepack/dstodpk.f, odepack/dstoka.f, odepack/dumach.f,
odepack/dumsum.f, odepack/dusol.f, odepack/dvnorm.f,
odepack/idamax.f, odepack/iumach.f, odepack/ixsav.f,
odepack/jgroup.f, odepack/md.f, odepack/mdi.f, odepack/mdm.f,
odepack/mdp.f, odepack/mdu.f, odepack/nnfc.f, odepack/nnsc.f,
odepack/nntc.f, odepack/nroc.f, odepack/nsfc.f, odepack/odrv.f,
odepack/sro.f, odepack/xerrwd.f, odepack/xsetf.f:
Initial checkin for odepack sources.
2004-08-13 23:24 rtoy
* src/NOTES:
Describe what we're trying to do with common blocks as arrays.
2004-08-13 23:16 rtoy
* src/: f2cl1.l, f2cl5.l:
First pass at creating common blocks as arrays. Intent is to allow
odepack to be converted via f2cl.
So a common block structure is created that creates as large an array
as possible for consecutive elements of the same type in the common
block. A new array is created for each such section. Then the
elements of the common block are accessed either as either an
individual element of the array or as a displaced array.
This might have speed impacts, so the default is not to do this. Use
the keyword :common-as-array to control this feature. Default is off,
preserving old behavior.
2004-08-11 21:00 rtoy
* src/f2cl1.l:
Set the f2cl version to include the RCS Date.
2004-08-11 19:12 rtoy
* src/NOTES:
Update notes about x .le. y*z bug.
2004-08-11 18:51 rtoy
* src/f2cl2.l:
A possible fix for the parsing bug wherein x .le. y*z was parsed as (x
.le. y) * z.
We look for logical operations and rewrite the expression with
parentheses around the left and right parts of the operation. Thus x
.le. y*z becomes (x) .le. (y*z), which will be parsed correctly by the
rest of the routines.
2004-08-11 17:53 rtoy
* src/f2cl6.l:
This bit of Fortran code
COMMON /DLS001/ ROWNS(209),
1 CCMAX, EL0, H, HMIN, HMXI, HU, RC, TN, UROUND,
2 INIT, MXSTEP, MXHNIL, NHNIL, NSLAST, NYH, IOWNS(6),
3 ICF, IERPJ, IERSL, JCUR, JSTART, KFLAG, L,
4 LYH, LEWT, LACOR, LSAVF, LWM, LIWM, METH, MITER,
5 MAXORD, MAXCOR, MSBP, MXNCF, N, NQ, NST, NFE, NJE, NQU
C
DATA MORD(1),MORD(2)/12,5/, MXSTP0/500/, MXHNL0/10/
IF (ISTATE .LT. 1 .OR. ISTATE .GT. 3) GO TO 601
end
causes an end-of-file error because RECURSIVE-P is T (on CMUCL). I'm
going to make RECURSIVE-P NIL here. Don't know if that's right or
not.
2004-07-08 19:48 kevinrosenberg
* debian/changelog:
new deb version
2003-12-30 22:59 sds
* README:
spelling
2003-11-23 15:10 rtoy
* src/macros.l:
FDO should not call function that are not in the F2CL-LIB package.
Macros.l should be self-contained.
2003-11-18 20:33 rtoy
* src/f2cl1.l:
Push the function name onto the calls list, not a list of the function
name.
2003-11-15 15:16 rtoy
* src/f2cl5.l:
When parsing READ, if the variable has type STRING, we need to use
f2cl-set-string to make sure strings get the right length.
2003-11-15 14:54 rtoy
* packages/hompack/innhp.dat:
Initial revision.
2003-11-15 06:02 rtoy
* src/f2cl5.l:
Some simple fixups for READ when reading into arrays. We need to
identify the expression to generate the correct form for setting the
variable to what was read.
READ still needs lots of work.
2003-11-15 05:59 rtoy
* packages/hompack.system:
Add the files and dependencies for the POLSYS stuff that we
accidentally left out. (But files were already there.)
2003-11-14 23:22 rtoy
* packages/: blas/.cvsignore, hompack/.cvsignore,
minpack/.cvsignore, quadpack/Fortran/.cvsignore,
toms/715/.cvsignore:
Initial revision.
2003-11-14 23:18 rtoy
* packages/: README, hompack/mainf.f, hompack/mainp.f,
hompack/mains.f:
Initial revision.
2003-11-14 22:29 rtoy
* packages/hompack/: r1upqf.f, upqrqf.f:
F2cl doesn't support the kind of ENTRY point that is being used in
UPQRQF. Split that into a separate subroutine. I hope I got that
right.
2003-11-14 22:27 rtoy
* packages/hompack/sintrp.f:
Initial revision.
2003-11-14 20:52 rtoy
* packages/hompack/rhojs.f:
Uncomment the variable declarations so we can generate better function
calls, without intervention.
2003-11-14 20:44 rtoy
* packages/hompack/: stepds.f, steps.f:
Initializers weren't double precision numbers as required, and Lisp
complains.
2003-11-14 20:43 rtoy
* packages/hompack/fjacs.f:
Uncomment the variable declarations so we can generate better function
calls, without intervention.
2003-11-14 20:08 rtoy
* packages/: blas.system, hompack.system:
Initial revision.
2003-11-14 20:05 rtoy
* packages/hompack/: dcpose.f, divp.f, f.f, ffunp.f, fixpdf.f,
fixpds.f, fixpnf.f, fixpns.f, fixpqf.f, fixpqs.f, fjac.f,
fjacs.f, fode.f, fodeds.f, gfunp.f, gmfads.f, hfun1p.f, hfunp.f,
initp.f, mfacds.f, mulp.f, multds.f, otputp.f, pcgds.f, pcgns.f,
pcgqs.f, polsys.f, polyp.f, powp.f, qimuds.f, qrfaqf.f, qrslqf.f,
rho.f, rhoa.f, rhojac.f, rhojs.f, root.f, rootnf.f, rootns.f,
rootqf.f, rootqs.f, sclgnp.f, solvds.f, stepds.f, stepnf.f,
stepns.f, stepqf.f, stepqs.f, steps.f, strptp.f, tangnf.f,
tangns.f, tangqf.f, tangqs.f, upqrqf.f:
Initial import of HOMPACK, direct from netlib.
2003-11-14 20:04 rtoy
* packages/blas/: daxpy.f, dcopy.f, ddot.f, dnrm2.f, dscal.f,
idamax.f:
Initial import of BLAS for HOMPACK.
2003-11-14 07:45 rtoy
* src/f2cl1.l:
Actually, if the declared arg type is an array, we always want to
slice. Otherwise, we just want the single element.
2003-11-14 07:32 rtoy
* src/f2cl5.l:
In INSERT-DECLARATIONS, we were computing var-type-list and var-decls
incorrectly. The were both too short when the arglist had external
functions.
2003-11-14 05:52 rtoy
* src/NOTES:
Update notes.
2003-11-14 05:29 rtoy
* src/f2cl1.l:
Handle function calls to statement functions too so we can generate
the correct args for them. Do this by adding a hash table to hold
info about statement functions.
(*f2cl-statement-finfo*): New variable holding the hash-table for
of function info for statement functions.
(f2cl): Give better descriptions of some options in the docstring.
(translate-and-write-subprog): Clear out the hash-table for the
statement function info.
(parse-arrayref-or-stmtfn): Save away function info when we find a
statement function.
(maybe-convert-array-ref-to-slice): If the function is in the
arglist, we can't do anything special about it. Otherwise, try to
find the function in the global database or the statement-function
database so we can generate the correct array references.
2003-11-14 03:55 rtoy
* src/f2cl1.l:
* src/f2cl1.l (maybe-convert-array-ref-to-slice): When looking up
the function name to get the argument types, we need to be
careful. If the function is an EXTERNAL function (i.e., a
parameter to the function we're compiling), it doesn't necessarily
have the same types as a global function with the same name.
2003-11-13 23:37 rtoy
* src/f2cl1.l:
Oops. We want subtypep, not typep!
2003-11-13 23:16 rtoy
* src/: f2cl1.l, f2cl2.l:
Try to be smarter about generating args to functions, which is an
issue if the arg is an element of an array. If we know the declared
types of the function, try to generate the appropriate arg, meaning
either a single element of the array or a slice of the array.
2003-11-13 22:07 rtoy
* src/f2cl5.l:
o Was not correctly handling a plain SAVE statement, which means save
all locals. Build up the list from the declared and undeclared
variables.
o Subprograms with multiple entry points weren't returning the right
number of values. Fix that.
2003-11-13 22:06 rtoy
* src/f2cl1.l:
Was not correctly handling a plain SAVE statement, which means save
all locals. Put a special token in this case to indicate that.
2003-11-13 06:39 rtoy
* src/f2cl5.l:
Generate code to use the new macro WITH-MULTI-ARRAY-DATA.
2003-11-13 06:38 rtoy
* src/f2cl1.l:
Define a pretty-printer for WITH-MULTI-ARRAY-DATA.
2003-11-13 06:37 rtoy
* src/f2cl0.l:
Export WITH-MULTI-ARRAY-DATA.
2003-11-13 06:37 rtoy
* src/macros.l:
Add macro WITH-MULTI-ARRAY-DATA. Basically like WITH-ARRAY-DATA, but
takes a list of array info so we don't get deeply nested code when
there are lots of arrays.
Keep WITH-ARRAY-DATA around for backward compatibility.
2003-11-12 06:33 rtoy
* src/macros.l:
Macro to handle assigned gotos was wrong. Fix it.
2003-11-12 06:32 rtoy
* src/f2cl5.l:
The test for matching arglist for ENTRY points was wrong. Fix it.
2003-11-12 06:32 rtoy
* src/f2cl1.l:
Many changes to make assigned gotos work
o Add *statement-labels* to hold a list of statement labels found in s
subprogram. (Needed so we can branch to the correct label in
assigned goto statements.)
o Use *statement-labels* in various places.
o Unify the parsing of computed GOTOs.
o Make assigned gotos work.
o Add support for the ASSIGN statement (which was missing).
Fixups for ENTRY points:
o Fix up parsing of ENTRY points. We weren't setting up
*entry-points* correctly, and did not handle the arglist correctly.
o Parse entry points similarly to subroutine calls, using two new
functions: ID-DEFINITION-ENTRY, PARSE-ENTRY-DEFINITION
2003-09-25 06:05 rtoy
* packages/quadpack.system:
Compute the necessary translation for the Fortran directory from the
current translation for clocc instead of hard-wiring the path.
2003-09-25 05:43 rtoy
* src/macros.l:
Need to check for reserved names in the fdo macro. (I think.)
2003-09-20 15:57 rtoy
* f2cl.system:
f2cl8 is a work in progress and only usable by CMUCL so far.
2003-09-20 15:56 rtoy
* src/f2cl6.l:
[ 807859 ] translate-pathname strangeness in f2cl6.l
Use merge-pathnames instead of translate-pathnames to compute the name
of the output file.
2003-07-13 20:58 rtoy
* src/f2cl1.l:
Be more careful in generate-call-to-routine when the routine is
actually funcalling a routine.
2003-07-13 20:54 rtoy
* src/f2cl5.l:
Add mod to +allowed-lisp-names+.
2003-07-12 20:44 rtoy
* src/f2cl6.l:
Include directory and name when computing the name of the output file.
2003-07-12 06:27 rtoy
* src/f2cl5.l:
o Make +reserved-lisp-names+ be T, PI, and NIL.
o Add +allowed-lisp-names+ to be a list of names which can be used as
is because the Fortran usage matches the Lisp usage. This prevents
spurious variables with names like ABS$ from being created.
o Use +allowed-lisp-names+ when checking for reserved lisp names.
2003-07-12 06:24 rtoy
* src/f2cl1.l:
o Add new keyword parameter to specify the package to be used for
compiling the code. Defaults to COMMON-LISP-USER
o When generating a call to a routine, we need to check for reserved
Lisp names and mangle it appropriately. Use the new name as needed.
o When parsing a do loop, we need to check reserved lisp names
for the loop variable. (Because other places will have mangled the
name).
2003-04-07 08:25 kevinrosenberg
* debian/control:
Automatic commit for debian_version_1_0+cvs_2003_01_11
2003-04-07 08:20 kevinrosenberg
* debian/: changelog, compat, control, rules:
Automatic commit for debian_version_1_0+cvs_2003_01_11
2003-01-08 19:41 rtoy
* src/: f2cl1.l, f2cl5.l:
Reference symbols in the common-lisp package with "common-lisp:",
instead of "lisp:".
2003-01-08 19:37 rtoy
* src/f2cl5.l:
Checking of reserved lisp names was rather weak. Now check to see if
the symbol is an external symbol in the common-lisp package. If so,
mangle the name. (Append with $ instead of _. Should I really do
that?)
2003-01-08 19:19 rtoy
* src/f2cl1.l:
Was incorrectly converting things like
character*8 s
data s/'z'/
to
(let ((s (make-array 8 :element-type 'base-char :initial-element #\space)))
(setf s "z"))
It should really be
(let ((s (make-array 8 :element-type 'base-char :initial-element #\space)))
(replace s "z"))
We really should do this when making the array, not afterwords.
Bug noted by Christophe Rhodes.
2003-01-07 19:44 rtoy
* src/macros.l:
Add new implementations of aint. Speeds up mpnorm by a factor of 5 on
CMUCL/sparc!
2002-11-11 11:52 kevinrosenberg
* debian/: README.Debian, changelog, control, copyright, f2cl.asd,
postinst, prerm, rules:
Initial debian package
2002-09-13 19:50 rtoy
* packages/minpack.system, packages/minpack/minpack.lisp,
packages/minpack/run-minpack-tests.lisp, src/f2cl0.l,
src/f2cl1.l, src/f2cl2.l, src/f2cl4.l, src/f2cl5.l, src/f2cl6.l,
src/f2cl7.l, src/macros.l:
From Douglas Crosher:
o Make this work with lower-case Lisps
o Fix a few typos
o Make a safer fortran reader.
2002-07-03 00:14 rtoy
* packages/minpack.system:
o Add component for run-minpack-tests
o The tests are in the MINPACK package, not MINPACK-TESTS package.
2002-07-03 00:12 rtoy
* packages/minpack/run-minpack-tests.lisp:
Simple script to run the tests.
2002-07-02 23:33 rtoy
* src/f2cl1.l:
Always start output on a newline when printing the name of the source
and output files.
2002-07-02 23:32 rtoy
* packages/minpack.system:
Add dependency to minpack.lisp to define the package.
2002-07-02 23:29 rtoy
* packages/minpack/lmdif-input.dat:
Input file for test cases.
2002-07-02 23:28 rtoy
* packages/minpack/minpack.lisp:
Define MINPACK package.
2002-07-02 23:25 rtoy
* packages/minpack/tst-lmder.f:
Correct typo in prompt. The order is n,m and not m,n.
2002-07-02 20:42 rtoy
* packages/minpack/tst-lmdif.f:
Read the dimensions in the original n,m order instead of m,n.
2002-07-02 19:49 rtoy
* packages/minpack/minpack.doc:
Minpack documentation from netlib.org.
2002-07-02 19:47 rtoy
* packages/minpack/Makefile:
Initial revision.
2002-07-02 14:39 rtoy
* packages/minpack/tst-lmdif.f:
o Add PROGRAM statement
o Print out some hints before asking what test to run.
2002-07-02 14:35 rtoy
* packages/minpack/tst-lmder.f:
o Add PROGRAM statement
o Rename subroutine FCN to FCNJ
o Print out some hints before asking what test to run.
2002-07-02 14:31 rtoy
* packages/minpack.system:
o Put the code in the MINPACK package.
o Add defsystem for the tests.
2002-06-30 15:09 rtoy
* src/f2cl1.l:
Let f2cl also keep track of a list of functions that a function
calls. (Useful for generating dependencies.)
2002-06-30 15:08 rtoy
* src/macros.l:
Add some declarations to AINT so that CMUCL can completely inline the
call to ftruncate.
2002-05-07 05:56 rtoy
* src/f2cl1.l:
o In TRANSLATE_LINT, change how output when *verbose* is set so we can
see better what f2cl is really reading. (Was hard to differentiate
between strings and symbols, before, for example.)
o In PARSE_UPPER_AND_LOWER_BOUNDS, we were returning T for unknown
array bounds. This caused an extraneous Fortran variable T to be
introduced. Return '* instead so we don't get the extraneous
variable anymore.
2002-05-07 05:26 rtoy
* src/f2cl1.l:
o With the function info changes, we were incorrectly saying a
variable was set when it might not have been. Fix it.
o Clean up/add a few comments
2002-05-07 05:06 rtoy
* src/f2cl1.l:
o Include a date on the version string.
o Don't print out the date in the generated file.
2002-05-06 20:05 rtoy
* src/f2cl1.l:
o We need to have d1mach and i1mach as known functions, so initialize
and clear the hash table appropriately.
o When generating a call to a routine, print a warning if we don't
know the function. (User should check to see if the call is
correct.)
o Remove an extraneous debugging print statement.
2002-05-06 01:41 rtoy
* src/macros.l:
Typo: extra paren.
2002-05-06 01:38 rtoy
* src/macros.l:
The int-sub macro didn't handle things like (- 3 m m) correctly. It
was returning (- 3 (- m m)) instead of (- (- 3 m) m)!
2002-05-06 01:37 rtoy
* src/f2cl1.l:
Was not generating calls to routines correctly when a parameter is
given multiple times in the arg list. Don't check for duplicates.
(I'm a little fuzzy on the rules of Fortran on aliasing of parameters
of routines. I think you're not allowed, so having an actual
parameter be an input and output is not allowed. This almost always
works, however.)
2002-05-06 01:34 rtoy
* src/NOTES:
Notes about generating FFI.
2002-05-05 23:10 rtoy
* src/f2cl5.l:
Comment out extraneous print.
2002-05-05 23:09 rtoy
* src/f2cl1.l:
f2cl-compile needs to bind *READ-DEFAULT-FLOAT-FORMAT* before
compiling the Lisp file so that numbers are read in the specified
format.
2002-05-04 22:35 rtoy
* f2cl.system:
Added f2cl8.
2002-05-04 22:34 rtoy
* src/f2cl8.l:
Initial revision.
2002-05-04 22:33 rtoy
* src/f2cl5.l:
When we construct the declarations for the formal args of the
function, we save the arg types in away as well for later use.
2002-05-04 22:32 rtoy
* src/f2cl1.l:
If the entry for the function already exists, we don't want to smash
it. Just update the return-values for the entry.
2002-05-04 19:00 rtoy
* src/NOTES:
Describe the hash table of function calls.
2002-05-04 19:00 rtoy
* src/f2cl1.l:
We now keep a hash table of all functions and their return values and
use that, if available, for generating calls to that function.
This is experimental, but seems to work so far, and generates better code.
2002-05-03 19:48 rtoy
* src/macros.l:
GCL doesn't have least-positive-normalized-{single/double}-float, so
use just least-positive-{single/double}-float.
2002-05-03 19:44 rtoy
* src/macros.l:
Replace row-major-aref with just aref because we don't need it and
because gcl doesn't have it.
2002-05-03 19:43 rtoy
* src/f2cl5.l:
If the array type is simple-array, don't do the with-array-data stuff
because we don't need it.
2002-05-03 19:42 rtoy
* src/f2cl1.l:
Allow other keys for f2cl and f2cl-compile.
2002-04-19 20:40 rtoy
* src/f2cl5.l:
o Forgot to add FREAL as one of the intrinsics functions we skip over
when checking for new variables.
o GET-FUN-ARG-TYPE: was incorrectly handling MULTIPLE-VALUE-BIND
forms and erroneously returning INTEGER as the type. We really need
to look at the function that is being called to get the type instead
of just looking at MULTIPLE-VALUE-BIND as function name!
2002-04-18 15:05 rtoy
* src/f2cl1.l:
Added :FLOAT-FORMAT option to F2CL and F2CL-COMPILE so that the user
can specify how to print out numbers in case the user is going to
read/compile the file using some other setting for
*READ-DEFAULT-FLOAT-FORMAT*. (This is a simple hack to get around the
problem of not having a portable way to specify all numbers should be
printed with an exponent marker.)
2002-04-18 15:03 rtoy
* src/f2cl0.l:
Forgot to export I1MACH.
2002-03-23 00:00 rtoy
* src/f2cl1.l:
When generating the call to a routine, we don't have to have a setter
if the same arg is used multiple times in the arglist. This is
undefined Fortran behavior.
2002-03-20 16:50 rtoy
* src/f2cl5.l:
Fix typo in getting the argument type in optimize-integer-arithmetic.
2002-03-20 00:45 rtoy
* src/f2cl5.l:
When calling a function, it's sometimes (fun args) or (funcall fun
args), so we need to check before we look up the type of the function
call.
2002-03-20 00:28 rtoy
* packages/quadpack.system:
Add a defsystem to compile the Fortran codes directly via
f2cl-compile. Leave the old defsystem around, but with a new name.
2002-03-20 00:12 rtoy
* packages/quadpack/quadpack-tests.lisp:
It's f2cl-lib:integer4, not just plain integer4.
2002-03-20 00:11 rtoy
* src/f2cl1.l:
Be conservative: For F2CL-COMPILE, change the default :array-type to
be :array instead of :simple-array.
2002-03-20 00:08 rtoy
* src/f2cl5.l:
Oops. The array type should default to whatever *array-type* is, not
simple-array!
2002-03-19 18:40 rtoy
* doc/Change-notes.txt:
Update changes.
2002-03-19 18:28 rtoy
* src/f2cl5.l:
o Declare some vars as ignored when creating the entry point
functions.
o Add a check to make sure the entry point functions have exactly the
same names for the parameters and number of parameters. That's all
we support right now.
o Remove a debugging print statement.
2002-03-19 07:04 rtoy
* src/NOTES:
Describe how we handle ENTRY statements.
2002-03-19 07:03 rtoy
* src/: f2cl1.l, f2cl5.l:
First pass at adding support for ENTRY statements (multiple entry
points into a routine). See NOTES for description of technique.
2002-03-19 05:11 rtoy
* src/f2cl5.l:
GET-UPGRADED-FUN-ARG-TYPE wasn't correctly returning the type of a
function call. Didn't matter before, but with the recent coercion
changes, it does.
2002-03-19 05:10 rtoy
* src/f2cl1.l:
Comment out some debugging print statements.
2002-03-19 03:23 rtoy
* src/: f2cl5.l, macros.l:
According to the rules of Fortran, the initializers in a DATA
statement are supposed to be converted to match the type of the
variable that is being initialized. Make it so by passing the
variable type to the macro DATA-IMPLIED-DO so that the conversion can
be done.
2002-03-19 02:45 rtoy
* src/f2cl1.l:
Oops. Remove the debugging print statements.
2002-03-19 00:46 rtoy
* src/f2cl5.l:
Was not correctly handling implicit variable declarations. We just
want to compare the first character of the variable agains the given
ranges, not the whole variable name!
2002-03-19 00:34 rtoy
* src/: f2cl1.l, f2cl5.l, macros.l:
Was not correctly handling some implied do loops containing multiple
variables in the loop in data statements. Fix that and clean up some
of the processing. (Should probably do this kind of work in the f2cl
compiler instead of at runtime, but it's only done once at runtime, so
it's not a big deal.)
2002-03-16 16:21 rtoy
* src/NOTES:
Update notes.
2002-03-16 16:21 rtoy
* src/f2cl1.l:
If an argument to a subprogram is not assigned to, return NIL as the
value instead of the argument. (See NOTES file.)
2002-03-16 15:27 rtoy
* src/f2cl5.l:
Remove some print statements that were left in.
2002-03-15 05:04 rtoy
* src/f2cl5.l:
When creating the symbol macros for accessing common block vars, we
can get some speed gain by treating arrays specially so that we don't
have to access the array through the structure accessor for every
array access. For an array, bind a new var to the array, and have the
symbol macro reference the new var.
2002-03-13 05:01 rtoy
* src/f2cl5.l:
o Use INT instead of TRUNCATE when coercing parameter assignments.
o Update OPTIMIZE-INTEGER-ARITHMETIC to handle min/max because CMUCL
isn't always smart enough to figure it out by itself.
o Similarly, if we find a bare TRUNCATE, add an assertion about the
return value of TRUNCATE.
2002-03-13 04:58 rtoy
* src/f2cl1.l:
Use INT instead of TRUNCATE.
2002-03-11 18:57 rtoy
* src/f2cl6.l:
Compute the output temp file name better. (Was failing for logical
pathnames.)
2002-03-11 17:45 rtoy
* src/f2cl5.l:
Try to optimize integer arithmetic. Fortran says integer overflow is
undefined, so we try to wrap all integer arithmetic with (THE INTEGER4
(op operands...)). This can help the compiler generate better code.
2002-03-11 17:44 rtoy
* src/macros.l:
o Remove an extra paren.
o Indent FIND-ARRAY-DATA better.
o Declare the iteration count to be of type INTEGER4.
o Added macros INT-ADD, INT-SUB, INT-MUL to tell the compiler that the
integer operation can't overflow. (First try.)
o Tell the compiler that the result of truncate is an INTEGER4 in INT.
2002-03-11 17:40 rtoy
* src/f2cl0.l:
Export INT-ADD, INT-SUB, INT-MUL.
2002-03-10 17:19 rtoy
* src/f2cl5.l:
Assignments in PARAMETER statements need to have them coerced to the
right type.
2002-03-10 16:45 rtoy
* src/f2cl1.l:
Oops. A call to HANDLE-EXTENDED-DO was inadvertently left in.
2002-03-07 20:00 rtoy
* src/f2cl1.l:
o Merge the extended DO handling with the
write-statement-with-format-string handling into one place.
Reorderd the code a bit too.
o Instead of using truncate to convert a float to an int for
assignement, use the Fortran INT.
o When coercing a integer type to a float for assignment, declare the
int to be an INTEGER4 to help the coercion use a single
instruction.
2002-03-07 06:23 rtoy
* src/NOTES:
Update.
2002-03-07 06:19 rtoy
* src/f2cl1.l:
o Comment out some debugging print statements.
o Wasn't rewriting the write statement correctly. This works much
better.
2002-03-07 05:57 rtoy
* src/f2cl1.l:
First cut at handling write(*, <fmt-string>). Do this be converting
to write(*,<number>) with a new format statement containing the format
string.
2002-03-07 00:07 rtoy
* src/macros.l:
o Make INT return an integer4 type, not integer.
o log10 was thinking it could generate complex result, but that's not
true. Declare the arg correctly so the compiler knows it can't.
2002-03-07 00:04 rtoy
* src/f2cl5.l:
Actually handle Iw.m as Fortran would.
2002-03-06 04:21 rtoy
* src/macros.l:
o Speed up FIND-ARRAY-DATA a little by declaring the offset to be a
fixnum, which it has to be since it's an index to an array.
o Remove the truncate/ftruncate-towards-zero functions.
o For INT, AINT, and friends, TRUNCATE and FTRUNCATE are the right
functions we want to use. (Stupid me!)
o Update/correct some random comments.
2002-03-06 04:17 rtoy
* src/f2cl5.l:
With the block data name changes in f2cl1.l, we need to recognize here
the names that are generated there in f2cl1.
2002-03-06 04:16 rtoy
* src/f2cl1.l:
Oops. A block data subprogram looks like "blockdata <name>" or "block
data <name>" where <name> is optional.
2002-03-06 03:49 rtoy
* src/f2cl1.l:
o Correct some comments.
o BLOCKDATA subprograms can have names, so make that part of the
translated blockdata subprogram name.
2002-03-01 03:41 rtoy
* src/f2cl1.l:
Add some pretty-printers so the resulting code looks a bit neater.
2002-02-17 17:04 rtoy
* val/tst-slice.f:
Add an extra level of routines to test slicing better.
2002-02-17 17:03 rtoy
* src/NOTES:
Describe the new array-slicing method.
2002-02-17 16:58 rtoy
* src/f2cl5.l:
o Implement the new array-slicing method. (Still needs work.)
o Try to declare all arrays as simple-array, except for arrays that
are parameters to a function
o Declare some loop variables apropriately for implied do loops in
write statements.
o We don't try to declare the functions used by a routine anymore.
(Should this be optional?)
2002-02-17 16:55 rtoy
* src/macros.l:
o For all array accessors, wrap the offset calculations with (the
fixnum ...) since they have to be anyway. Speeds up calculations
quite a bit.
o FREF takes an additional optional OFFSET arg to specify an offset
for the new array slicing method.
o Added WITH-ARRAY-DATA and FIND-ARRAY-DATA to support the new
array-slicing method.
o For FDO, add (the integer4 ...) for loop index calculations.
o Add some more assertions for ISIGN and LOG10 to help the compiler
generate better code.
2002-02-17 16:51 rtoy
* src/f2cl1.l:
With the new array-slicing method, the default array type can be
simple-array again.
2002-02-17 16:50 rtoy
* src/f2cl0.l:
Export with-array-data.
2002-02-14 15:36 rtoy
* src/f2cl5.l:
Add sinh, cosh, tanh to the list of generics we need to handle.
Expand on the comments.
2002-02-11 19:33 rtoy
* src/NOTES:
Add some note about f2cl-converted MPFUN now working, somewhat slowly,
but correctly and how to fix the slowness, maybe.
2002-02-10 04:43 rtoy
* src/macros.l:
Partial support for WRITE statements writing to a string instead of
logical unit.
2002-02-10 04:42 rtoy
* src/f2cl1.l:
Since :array-slicing defaults to T, make :array-type default to :array
instead of :simple-array.
2002-02-10 04:41 rtoy
* src/f2cl0.l:
Export ARRAY-STRINGS type.
2002-02-09 17:10 rtoy
* src/f2cl1.l:
o Add new var *DECLARE-COMMON-BLOCKS*
o F2CL and F2CL-COMPILE take a new arg :declare-common, defaulting to
NIL, which allows the user to specify if the structures for the
common blocks in this file should be declared in this file.
2002-02-09 17:08 rtoy
* src/f2cl5.l:
o GET-FUN-ARG-TYPE: We forgot to handle the AINT, SIGN, DIM, MAX, and
MIN intrinsics.
o INSERT-DECLARATIONS:
o Rename special-proclamation to common-blocks because we don't have
special proclamations anymore.
o The declarations for common blocks are inserted only if
*DECLARE-COMMON-BLOCKS* is non-NIL.
o GET-IMPLICIT-TYPE: We don't care if the arg is a formal arg or
not.
o MAKE-COMMON-BLOCK-VARS: If *RELAXED-ARRAY-DECLS* is non-NIL, the
dimensions of the array in the common block is unspecified, even if
we already know it. (Useful for changing the sizes of the arrays in
common blocks at run time. Some Fortran code uses this feature.)
2002-02-09 16:59 rtoy
* src/macros.l:
o Add more and better comments
o AINT was broken because it should accept any range of floats.
o DIM and friends computed the wrong thing!
o Change DPROD to convert to doubles first.
o Some cleanup of MAX and MIN
2002-02-09 00:38 rtoy
* src/macros.l:
Use ARRAY-TOTAL-SIZE to compute how many elements are in the slice
instead of the f2cl declared/derived bounds so that we can dynamically
change the size of the array. Useful for an array in a common block.
2002-02-09 00:32 rtoy
* src/f2cl5.l:
The last change to support block data was majorly broken. Right idea,
wrong implementation. Initializers and stuff need to be inside the
function otherwise nothing is really initialized as expected. This
should work better.
2002-02-09 00:28 rtoy
* src/f2cl1.l:
Off-by-one error in initializing an array with FILL. We didn't fill
the last element!
2002-02-08 07:04 rtoy
* src/f2cl5.l:
o We were generating incorrect code for symbol-macrolets for
initializers. Fix it and clean it up. Now only generate it either
for initialization or the body but not both since you can only
initialize common blocks in a block data subprogram.
o Fix a bug wherein a variable in a parameter statement that was also
declared was getting the wrong type and also getting declared as a
local var. Happened because we were checking the other var against
the wrong list (was *key-params* but should have been key-params).
2002-02-08 05:28 rtoy
* src/NOTES:
Update notes.
2002-02-08 05:27 rtoy
* src/f2cl5.l:
To support BLOCK DATA subprograms, we need to have the data
initialization part of the code wrapped by symbol-macrolets. Make it
so. Move the common code to its own routine.
2002-02-08 05:24 rtoy
* src/f2cl1.l:
Add support for BLOCK DATA subprograms.
2002-02-08 04:35 rtoy
* src/f2cl1.l:
We need to also fix up the names for any initialization stuff, so add
new function FIXUP-F2CL-LIB to do it.
2002-02-08 04:32 rtoy
* src/f2cl6.l:
Oops. Can't use #'char-equal because nxt-char might not be a char.
2002-02-08 00:27 rtoy
* src/f2cl6.l:
Some more number parsing bugs in PARSE-NUMBER.
o d and e are valid exponent indicators and we missed them sometimes.
o Add a few more comments
o Make it easier to debug what parse-number would return as the
number.
2002-02-08 00:21 rtoy
* src/f2cl5.l:
MAKE-DECLARATION
o For some reason when we were checking for implicitly declared
variables, we checked to see if the variable was a formal arg or
not. Formal args can be implicitly declared too, so the check is
removed. (Why where we checking before?)
o Clean up some comments.
SYM-IS-NUMBER-P
o Add some comments
o We were incorrectly saying things like 1D%3 were not numbers, but
this is wrong. It is a number. Solves the occasional problem where
we got weird things like unused variables named |1D%3|. (Off-by-one
bug.)
2002-02-07 23:16 rtoy
* src/f2cl5.l:
If an array was declared but actually dimensioned in a common block
like
double precison c
common /foo/ c(42)
VBLE-IS-ARRAY-P didn't think it was an array. Fix it.
2002-02-07 23:12 rtoy
* src/f2cl6.l:
Oops. Remove that debugging statement.
2002-02-07 21:35 rtoy
* src/f2cl6.l:
Choose a better name than "prep.tmp" in whatever directory we are in
for the temporary preprocessed file. Make it go into the same
directory as the Fortran file, but with the extension "p".
2002-02-07 21:14 rtoy
* src/f2cl6.l:
f2cl was incorrectly parsing
character*10 dig
as
character * 10d ig
because we weren't handling the case where the exponent character
wasn't really an exponent character.
2002-02-07 05:00 rtoy
* val/formattest.for:
o Forgot to initialize iunit with the desired unit numbers.
o Have the main program call this new routine.
2002-02-07 04:58 rtoy
* src/f2cl5.l:
o The previous change messed up the parsing of the format number of a
write statement. Fix it.
o The previous change also messed up the unit number for
PARSE_FORMAT_DEST. Fix it.
o Add a parser for Fortran's A format descriptor.
2002-02-07 04:23 rtoy
* src/macros.l:
Add functions to initialize F2CL's Fortran I/O and to close all of
F2CL's open units.
2002-02-04 04:24 rtoy
* val/formattest.for:
Add an additional test case where the unit number for a write
statement is an expression.
2002-02-04 04:23 rtoy
* src/macros.l:
o Make *lun-hash* a defparameter instead of a defvar.
o Fix up i1mach so that the unit numbers match *lun-hash*.
2002-02-04 04:22 rtoy
* src/f2cl5.l:
Handle the case where the unit number for a write statement can be an
arbitrary expression.
2002-01-13 19:18 rtoy
* doc/f2cldoc.latex:
Make it documentclass (for LaTeX2e) and add section numbers.
2002-01-13 19:18 rtoy
* doc/Change-notes.txt:
Initial revision.
2002-01-13 17:57 rtoy
* src/f2cl5.l:
When looking up variables in the declared variables list or the
subprog arglist, we still need to handle them via Fortran's implicit
typing rules.
2002-01-13 17:30 rtoy
* README:
Update the notes.
2002-01-13 17:29 rtoy
* packages/toms715.system:
Some of the dependencies were wrong.
2002-01-13 17:29 rtoy
* src/NOTES:
Add note about the these changes to the package layout.
2002-01-13 17:29 rtoy
* src/macros.l:
o This file is in the f2cl-lib package now
o Deleted some unused code.
o Moved *INTRINSIC-FUNCTION-NAMES* to f2cl1.l
2002-01-13 17:27 rtoy
* src/f2cl1.l:
o Move the intrinsic function names from macros.l to here. Include a
copy of the deftypes in macros.l here as well. (Be sure to keep
them in sync! I wish I knew a better way....)
o Do not print out (use-package :f2cl) in the output file anymore.
o In the generated code, we know look through the code and any symbol
that is string-= to a exported symbol in f2cl-lib is replaced by the
corresponding symbol from f2cl-lib. That we the generated code can
reference the f2cl-lib without clashing with whatever other packages
the code might be used in.
2002-01-13 17:24 rtoy
* src/f2cl0.l:
All of the exported symbols in macros.l have been moved from the F2CL
package to the F2CL-LIB package.
2002-01-09 16:31 rtoy
* src/f2cl5.l:
o In GET-FUN-ARG-TYPE, we weren't correctly handling the case of unary
+ and -.
o When looking up the type of a variable, we need to check for the
variable in *subprog-arglist* as well as *declared_vbles*!
Thanks to Mike Koerber for sending sample code where this fails.
2002-01-08 21:53 rtoy
* src/f2cl1.l:
PARSE-PARAMETER was incorrectly parsing parameter statements like
parameter (k2prim = K2 - K1*MW/MD) because it never expected the rhs
to be an expression.
2002-01-08 05:13 rtoy
* packages/minpack/tst-hybrd.f:
Initial revision.
2002-01-08 05:03 rtoy
* packages/minpack.system:
Fix some typos and replace a file that we deleted.
2002-01-08 04:29 rtoy
* packages/minpack.system:
o Correct and change the compiler options. We need array-slicing.
o Add some more routines.
2002-01-08 04:24 rtoy
* src/f2cl5.l:
o Correct the previous change about looking up the type of array
references. If we have an fref, it can't be an array slice because
we would have already sliced it before we get here.
o Try to pretty up the declarations for other functions by merging
them into just one declaration.
o Group the declaration statements for variables and other functions
into just a single declaration.
2002-01-07 21:55 rtoy
* src/f2cl5.l:
In GET-FUN-ARG-TYPE, we were always returning array types for FREF. This
is true if array-slicing is enabled.
2002-01-07 19:16 rtoy
* src/f2cl1.l:
o Change the :array-type parameter to take a keyword instead of a
symbol.
o Print a warning if :array-type is specified and inconsistent with
:array-slicing option. :array-slicing takes precedence.
o If possible convert a fortran_comment into a quoted string. (Makes
it easier to read the embedded comment.)
o Print the options in lower case.
2002-01-07 19:13 rtoy
* packages/minpack.system:
Set better compiler options for building minpack.
2002-01-07 04:10 rtoy
* packages/minpack/examples.lisp:
Initial revision.
2002-01-07 04:09 rtoy
* src/f2cl1.l:
Print out a warning if a variable is declared that has the same name
as a Fortran intrinsic. Not sure what the spec says, but as long as
it's a variable and not a redeclaration of the function, then I think
it's ok. If not, the warning tells you something might not be right.
2002-01-07 00:28 rtoy
* src/: f2cl1.l, f2cl2.l:
Missed a few renamings of *intrinsic_function_names* and
*external_function_names*.
2002-01-07 00:11 rtoy
* src/macros.l:
o Rename *intrinsic_function_names* to use dashes.
o Comment out some unused functions and macros.
2002-01-07 00:10 rtoy
* src/: f2cl1.l, f2cl2.l, f2cl5.l:
Rename *intrinsic_function_names*, *external_function_names* and
*subprog_stmt_fns* to use dashes.
2002-01-05 20:01 rtoy
* src/f2cl1.l:
Don't print out the copyright messages when running f2cl.
2002-01-05 19:52 rtoy
* src/f2cl0.l:
Add in-package.
2002-01-05 19:33 rtoy
* Makefile:
Initial revision.
2002-01-05 19:30 rtoy
* src/f2cl1.l:
o Clisp's pretty-printer seems to work well enough now, so use it.
o Use with-standard-io-syntax in SPECIAL-PRINT when printing out the
code (with a few minor changes).
2002-01-05 19:28 rtoy
* src/f2cl6.l:
Was still erroneously doing an unread-char. (Caught by Clisp.)
Works with Clisp and CMUCL now, and probably others.
2001-09-11 16:29 rtoy
* src/f2cl1.l:
Try to do a better job of figuring out the extension for the output
file.
2001-09-10 18:37 rtoy
* src/f2cl6.l:
Oops. Forgot to strip out the extra quote when we got quoted quotes
in format strings.
2001-09-10 18:21 rtoy
* src/f2cl6.l:
Handle Fortran-style strings better by handling quoted quotes. (In
Fortran 'It''s time' is the string "It's time".)
2001-09-09 23:05 rtoy
* src/f2cl6.l:
Undo rev 1.23. This one should work better.
2001-09-09 06:39 rtoy
* src/NOTES:
Update notes.
2001-09-09 06:34 rtoy
* src/f2cl6.l:
An attempt at handling Fortran Hollerith strings in FORMAT
statements. During preprocessing, look for a FORMAT statement and
replace any Hollerith strings with real quoted strings. (Can't do
this for Hollerith in code because we don't have a real Fortran
parser.)
(FIND-QUOTE needs work to get Fortran string quoting correct.)
2001-09-08 23:41 rtoy
* src/f2cl6.l:
parse-number was mangling
y = 1.5d0 - exp(-x)*top
into the invalid
y = 1.5d0 - e xp(-x)*top
Fix this.
2001-06-04 19:20 rtoy
* src/f2cl1.l:
CONVERT-DATA-TYPE was incorrectly returning T instead of '(LOGICAL)
for LOGICAL Fortran types.
2001-06-04 19:16 rtoy
* src/f2cl5.l:
Print a warning if there is no implicit type given and the variable
was not declared. This is invalid Fortran anyway.
2001-06-04 19:14 rtoy
* src/f2cl1.l:
Handle IMPLICIT NONE by putting ":NONE (A-Z)" as the type for
*implicit_vble_decls*.
2001-06-04 16:31 rtoy
* src/f2cl1.l:
Recognize IMPLICIT NONE, but the semantics are NOT currently
implemented: undeclared variables will still be declared with default
implicit rules even when implicit none is given. This is probably ok,
because this would be invalid Fortran anyway, and f2cl is only
expected to process valid Fortran.
2001-06-04 16:06 rtoy
* src/f2cl6.l:
Add *comment-line-characters* to hold a list of valid comment line
characters.
2001-06-03 22:51 rtoy
* src/NOTES:
Update.
2001-06-03 22:49 rtoy
* src/f2cl1.l:
o Removed an old unused version of TRANSLATE-AND-WRITE-SUBPROG.
o Gratuitously re-indented PARSE-DO-LOOP.
o Key change is adding code to handle extended DO loops, i.e., DO
loops that don't have statement numbers and are ended with an ENDDO
statement.
2001-06-03 22:46 rtoy
* src/f2cl5.l:
Changes to FIX-DO:
o Add a test and code to keep FIX-DO from looping forever searching
for a non-existent DO label. We cause an error now if this happens.
o Gratuitously re-indented code.
2001-06-01 22:08 liam
* src/f2cl1.l:
Remove conditionalization #+cmu on concat. Removed extra parenthesis.
2001-04-30 17:38 rtoy
* src/macros.l:
Add a version of I1MACH.
2001-04-30 17:37 rtoy
* src/f2cl1.l:
Add in-package statement, just like the comments say instead of trying
to compile everything in the given package.
2001-04-26 19:49 rtoy
* src/f2cl0.l:
Export new functions D1MACH and R1MACH
2001-04-26 19:49 rtoy
* src/macros.l:
o SIGN and DIM are Fortran generic instrinsics. Make it so.
o Added D1MACH and R1MACH because they're very common in Fortran
libraries.
2001-02-26 16:38 rtoy
* src/: f2cl0.l, f2cl1.l, macros.l:
Move *check-array-bounds* from f2cl1.l to macros.l since the generated
code refers to it. Export this variable too.
2000-09-03 04:33 rtoy
* src/f2cl5.l:
FORTRAN-CONTAGION returned (complex double-float) and (complex
single-float) which confuses f2cl. Return complex16 and complex8
instead, respectively.
2000-09-01 18:33 rtoy
* src/f2cl1.l:
MAYBE-CONVERT-ARRAY-REF-TO-SLICE: the expression isn't always a list!
Check for that. Fix a typo too.
2000-09-01 18:31 rtoy
* packages/quadpack/quadpack-tests.lisp:
Add DO-TESTS to run all tests.
2000-09-01 16:07 rtoy
* src/f2cl6.l:
In PARSE-NUMBER, we want to unread CHAR, but, according to the CLHS
(and Clisp checks for this), unread-char must push back the last
character that was read. Because of SKIP-SPACES above, this CHAR is
not necessarily the last character read anymore. We have to modify
the stream directly now.
2000-09-01 16:05 rtoy
* src/f2cl2.l:
o ID-FACTOR: we were not careful enough about array slicing in
function calls. We should only apply array slicing if the argument
is an array ref. Any arithmetic on the arg should disable
array-slicing.
2000-09-01 15:54 rtoy
* src/f2cl1.l:
o F2CL-COMPILE: not all COMPILE-FILE's have the :ERROR-FILE option.
o Added MAYBE-CONVERT-ARRAY-REF-TO-SLICE to convert array refs to
slices if appropriate.
o PARSE-SUBROUTINE-CALL: we were not careful enough about array
slicing. We should only apply array slicing if the argument is an
array ref. Any arithmetic should disable array-slicing.
2000-09-01 15:51 rtoy
* src/f2cl0.l:
AMAX1 and DIM were repeated.
2000-08-30 19:02 rtoy
* packages/minpack.system:
Add some more of the MINPACK files.
2000-08-30 19:00 rtoy
* src/macros.l:
o In EXECUTE-FORMAT, handle the case where the group is supposed to be
repeated "forever" (as indicated by a repetition factor of T).
o Remove some more unused code.
2000-08-30 18:56 rtoy
* src/f2cl5.l:
In PARSE-FORMAT1, if there's no repetition factor for a group, then
the group is supposed to be repeated forever until all the data has
been printed. (I think)
2000-08-30 18:54 rtoy
* src/f2cl1.l:
In F2CL-COMPILE, make :output-file default to T. CMUCL won't produce
an output if it's NIL.
2000-08-29 18:53 rtoy
* src/NOTES:
[no log message]
2000-08-29 18:10 rtoy
* packages/: minpack.system, minpack/chkder.f, minpack/dogleg.f,
minpack/dpmpar.f, minpack/enorm.f, minpack/fdjac1.f,
minpack/fdjac2.f, minpack/hybrd.f, minpack/hybrd1.f,
minpack/hybrj.f, minpack/hybrj1.f, minpack/lmder.f,
minpack/lmder1.f, minpack/lmdif.f, minpack/lmdif1.f,
minpack/lmpar.f, minpack/lmstr.f, minpack/lmstr1.f,
minpack/minpack.txt, minpack/qform.f, minpack/qrfac.f,
minpack/qrsolv.f, minpack/r1mpyq.f, minpack/r1updt.f,
minpack/readme, minpack/rwupdt.f, minpack/tst-lmder.f,
minpack/tst-lmdif.f:
Initial rev.
2000-08-29 17:55 rtoy
* src/f2cl5.l:
o In GET-ARG-DECL, return type INTEGER4 if the arg is a subtype of
INTEGER4. (So fixnum args are treated as INTEGER4 args for
declaration purposes instead of a union of fixnum and integer4
types.)
o In PARSE-READ, don't use literal strings; make them FORTRAN_COMMENT's.
2000-08-29 17:52 rtoy
* src/f2cl1.l:
Need to coerce the RHS of statement functions to the type of the
statement function itself.
2000-08-29 16:41 rtoy
* src/f2cl5.l:
o Remove lots of unused code
o Fix a typo in the Fortra D format parser: the equivalent Lisp format
is E not D! Also, explicitly specify the exponent character of "D".
o For the E format, specify an explicit exponent character of "E".
2000-08-29 05:20 rtoy
* src/f2cl2.l:
Array slicing needs to handled in not only subroutine calls but
function calls too. Make it so.
2000-08-27 18:47 rtoy
* val/formattest.for:
Add some more tests.
2000-08-27 18:36 rtoy
* src/: f2cl5.l, macros.l:
Clean up handling of format statements. Should handle many more
formats correctly now.
2000-08-18 19:55 rtoy
* packages/toms715.system:
Use the right package for f2cl-compile.
2000-08-18 19:10 rtoy
* packages/quadpack/Fortran/: dqc25c.f, dqc25f.f, dqc25s.f,
dqk15.f, dqk15i.f, dqk21.f, dqk31.f, dqk41.f, dqk51.f, dqk61.f,
dqng.f:
PARSE-NUMBER understands (some) spaces within numbers. Put the spaces
back in.
2000-08-18 17:42 rtoy
* val/tst-number.f:
PARSE-NUMBER doesn't like spaces between the number and the decimal
point.
2000-08-18 17:23 rtoy
* val/commontest.for:
o Add PARAMETER statement for testing common blocks with arrays
dimensioned via a parameter.
o Add some more tests of common blocks to see if we do the right
thing.
2000-08-18 17:22 rtoy
* src/f2cl6.l:
Can't swallow blanks (for now) at the first part of parse-number
because it causes things like "6.or." to become the symbol "6OR",
which is wrong.
2000-08-18 17:08 rtoy
* src/f2cl1.l:
Gratuitous change from prog to let in TRANSLATE-AND-WRITE-SUBPROG.
2000-08-14 00:31 rtoy
* src/f2cl6.l:
With the change in PARSE-NUMBER, ADJUST_NRS was sometimes messing up
the columns for the statement number and the statement itself. Fix
this by having ADJUST_NRS alwasy read the first 6 characters of the
line itself and interpreting the statement number instead of having
PARSE-NUMBER do that. Statement numbers are working again!
2000-08-13 06:21 rtoy
* val/tst-number.f:
Initial revision.
2000-08-13 06:18 rtoy
* src/f2cl6.l:
Make PARSE-NUMBER handle sapces within numbers, which is perfectly
acceptable Fortran. (May be a bit buggy still; probably should
rewrite PARSE-NUMBER.)
2000-08-13 06:16 rtoy
* src/f2cl1.l:
Oops! CONCAT is still being used! Reinstate it.
2000-08-10 20:00 rtoy
* src/f2cl5.l:
Declarations of the array type for arrays in common blocks were
wrong. (Oops!)
2000-08-10 15:50 rtoy
* src/f2cl1.l:
o UPDATE_CM_ARRAY_DIMS was not handling the new method of storing
dimensions. Fix it.
o Removed unused CONCAT function.
o Gratuitous mods to PARSE-COMMON.
2000-08-10 00:45 rtoy
* src/f2cl5.l:
o In MAKE-DECLARATION, use the LOGICAL type instead of (MEMBER T NIL)
in declaring arrays.
o MAKE-SPECIAL-VAR-DECL was not returning the right dimensions.
(After the conversion to 1-D arrays.)
o In MAKE-COMMON-BLOCK-VARS, try to initialize arrays to the right
size and values. (Particularly for logical arrays.)
o In MAKE-COMMON-BLOCK-VAR-INIT, we didn't compute the array bounds
correctly. Also, if we know the initializer for the common block
structure element initialized the array (because the dimension was a
number), don't do it when creating the structure.
2000-08-10 00:33 rtoy
* src/f2cl1.l:
The preprocessor converted // to f2cl-//. We need to undo that
because // in a COMMON statement really means the blank common block.
For example:
COMMON /c1/a, b//d, e
The variables d and e are in the blank common block. The file
val/commontest.for should now be converted correctly.
2000-08-09 20:50 rtoy
* src/f2cl1.l:
Fortran says I can build up the elements of a common block in pieces
by specifying the pieces in several separate common statements.
Support that.
2000-08-09 00:14 rtoy
* src/NOTES:
[no log message]
2000-08-08 23:22 rtoy
* val/tst-char.f:
Add a simple test for getting argument types of string arrays in a
function call.
2000-08-07 21:00 rtoy
* src/macros.l:
Add type ARRAY-STRINGS to denote an array of strings.
2000-08-07 20:55 rtoy
* src/f2cl5.l:
GET-ARG-DECL was confused by arrays of strings. We return the type
ARRAY-STRINGS now. (Need better names for these types or need to fix
the code so it handles these better!)
2000-08-07 19:02 rtoy
* packages/: quadpack.system, toms715.system:
Comment out unused functions, make it more palatable to Clisp logical
pathnames, add some dependencies.
2000-08-07 15:02 rtoy
* src/f2cl1.l:
Make :keep-lisp-file default to T.
2000-08-05 21:24 rtoy
* packages/toms/715/: erftst.f, j0test.f, psitst.f:
Fix up some Hollerith strings that were confusing our Format parser.
2000-08-05 21:23 rtoy
* src/f2cl5.l:
Comment out some unreachable code.
2000-08-05 21:20 rtoy
* src/f2cl2.l:
o If we're parsing the LHS of an assignment, and it looks like a
function call, we don't want to mangle it because it's not a
function call but the definition of a statement function.
o If the function is a call to statement function, we don't need to
mangle it because a statement function can't modify its parameters.
2000-08-05 21:16 rtoy
* src/f2cl1.l:
o Add special var *PARSING-LHS*
o Add function F2CL-COMPILE to compile a Fortran file to object code
so the user doesn't have to call compile-file himself.
o In PARSE-ASSIGNMENT, call PARSE-EXPRESSION appropriately if we're
parsing the LHS or RHS of an assignment. (Prevents mangling of
statement function definitions into multiple-value-bind's of the
function.)
o Changes to GENERATE-CALL-TO-ROUTINE:
o Revert back to just naming the variables sequentially. The
problem is if the same variable is used more than once in the
parameter list. (We may want to add this back in eventually.)
o Don't try to assign to constants like %TRUE% and %FALSE%.
o Only try to assign a new value to the parameter if the function
actually returned a new (non-NIL) value. This allows for
functions that don't return extra parameters (like intrinsics)
to still be used without f2cl knowing exactly the calling sequence.
2000-08-05 21:06 rtoy
* src/f2cl0.l:
Export F2CL-COMPILE.
2000-08-04 16:20 rtoy
* src/: f2cl1.l, f2cl5.l:
Add very rudimentary support for Fortran READ statements. This means
we just basically call read and assign the result to the (simple)
variable. We don't even bother to look at the format number or check
the variable type.
2000-08-03 15:45 rtoy
* src/macros.l:
Make FFORMAT1 handle lists that we get from implied do loops.
The whole FFORMAT stuff needs to be rethought if we really want to
support Fortran output.
2000-08-03 05:39 rtoy
* src/f2cl5.l:
The string passed to PARSE-FORMAT-DESCRIPTOR-H can be a character,
digit, or symbol. These all need to be converted to character. Make
it so.
2000-08-02 18:27 rtoy
* val/formattest.for:
Correct a few typos (subarray printing), and add a few more simple
tests.
2000-08-02 18:26 rtoy
* src/f2cl5.l:
The D and E format descriptors should print out a D and E,
respectively. Thus add PARSE-FORMAT-DESCRIPTOR-D.
2000-08-02 18:11 rtoy
* src/NOTES:
[no log message]
2000-08-02 16:42 rtoy
* src/f2cl5.l:
o Add support for parsing Hollerith strings in format statements. Not
perfect because the preprocessor mangles spaces within the string,
but we can at least print out the non-space parts of the string.
Changed PARSE-FORMAT1, DESTRUCT-DESCRIPTOR-LIST, and
PARES-FORMAT-DESCRIPTOR-H for this.
o PARSE-FORMAT-DESCRIPTOR-LIST treated D format descriptor as F
instead of as E. (Should we distinguish between D and E?)
o PARSE-FORMAT-DESCRIPTOR-F didn't add the fill character when the
number is too large to fit in the desired field.
2000-08-02 01:02 rtoy
* src/f2cl6.l:
We were messing up the printing of comments after we changed
PREPROCESS to handle continuation lines. We need to accumulate
comment lines until we know we have a complete line (with all
continuation lines). Then we can print out the line followed by the
accumulated comment lines. This makes the comments possible out of
sync with the generated Lisp code, but they were never really in sync
anyway.
2000-08-02 00:45 rtoy
* src/f2cl1.l:
o Add a few comments.
o GENERATE-CALL-TO-ROUTINE was crashing when passed an array-slice.
We also hosed up function calls where no setters were needed.
2000-08-02 00:10 rtoy
* src/macros.l:
o Try to make the Fortran functions to convert to integers work the
way Fortran says they should.
o Declaim most of the intrinsics as inline so we don't have an
additional function call for simple things.
o Add some compiler macros for Fortran max/min functions to call the
Lisp max/min functions withouth using #'apply.
o Try to declare the args to functions with branchs appropriately,
even in the face of signed zeroes.
2000-07-31 06:21 rtoy
* src/f2cl2.l:
Remove some unused functions.
2000-07-31 06:08 rtoy
* src/f2cl1.l:
Remove unused function PARSE-FUNCTION-CALL.
2000-07-31 05:00 rtoy
* src/f2cl1.l:
o Remove the support for continuation lines in
READSUBPROG-EXTRACT-FORMAT-STMTS since the preprocessing handles
that now. Make this routine easier to read too(?).
o Make CONCAT-OPERATORS more lispy.
o Remove unused code that was replaced with new versions.
2000-07-30 08:12 rtoy
* src/f2cl1.l:
o In GENERATE-CALL-TO-ROUTINE, don't use VAR-n for the variable names;
prepend NEW- to the actual variable names. Some gratuitous
re-indenting.
o In PARSE-SUBROUTINE-CALL, subroutines can be passed in so we need to
funcall them, just like we do for functions.
2000-07-30 07:58 rtoy
* src/f2cl5.l:
Don't check for new variables inside of multiple-value-bind's that
were created for function calls. We only need to check in the
arguments of the function call.
2000-07-30 07:56 rtoy
* src/f2cl2.l:
Function calls need to be handled like subroutine calls because
functions can modify their parameters.
2000-07-30 07:54 rtoy
* src/f2cl1.l:
Create new function GENERATE-CALL-TO-ROUTINE that takes the heart of
the multiple-value-bind stuff needed for getting the return values of
subroutines. Extend to handle functions. Use this new routine in
PARSE-SUBROUTINE-CALL.
2000-07-30 06:33 rtoy
* src/f2cl1.l:
READSUBPROG-EXTRACT-FORMAT-STMTS:
If the very first line had a line number, f2cl wouldn't understand the
line. Fix this be reading the margin at the top of the main loop.
Also, don't do anything with MULTIPLE-LINE-FLAG since PREPROCESS now
handles line continuations. (Need to remove MULTIPLE-LINE-FLAG).
TRANSLATE-AND-WRITE-SUBPROG:
By Fortran calling rules, functions can actually modify the input
parameters. Thus, functions need to return the function value and
all of the parameters. (Still need to modify the code that
generates the caller so we can update the values appropriately.)
2000-07-29 00:10 rtoy
* src/macros.l:
Remove unused var from ARRAY-SLICE.
2000-07-29 00:08 rtoy
* src/f2cl1.l:
Take out the pprint-logical-block if we're using Clisp since it
doesn't have it.
2000-07-29 00:07 rtoy
* src/f2cl0.l:
It's FORTRAN, not FORTAN!
2000-07-28 19:11 rtoy
* src/NOTES:
[no log message]
2000-07-28 19:09 rtoy
* src/macros.l:
o We are in the f2cl package now.
o Remove the export expression.
o // is now called F2CL-//, to prevent problems with the lisp variable
//.
o REAL is now called FREAL, to prevent problems with the lisp type
REAL.
2000-07-28 19:07 rtoy
* src/f2cl7.l:
o We are in the f2cl package now.
2000-07-28 19:07 rtoy
* src/f2cl6.l:
o We are in the f2cl package now.
o When we preprocess the file, we want to READ using the F2CL package
so the symbols are in our package. (I think that's what I want.)
2000-07-28 19:05 rtoy
* src/f2cl5.l:
o We are in the f2cl package now.
o We convert // to f2cl-//, even in format statements so fix
FIX-SLASHES to handle this case by replacing f2cl-// with 2 slashes,
as appropriate.
2000-07-28 19:02 rtoy
* src/: f2cl3.l, f2cl4.l:
o We are in the f2cl package now.
2000-07-28 19:01 rtoy
* src/f2cl2.l:
o We are in the f2cl package now.
o The Fortran string concatenation operator, //, is now f2cl-//.
(Prevents conflicts with the lisp variable //.) Handle
appropriately.
o Change the name of the Fortran routine from REAL to FREAL. Prevents
conflicts with the lisp type REAL.
2000-07-28 18:59 rtoy
* src/f2cl1.l:
o We are in the f2cl package now.
o Read the preprocessed file in the f2cl package instead of the user
package.
o Convert the Fortran string concatenation operator (//) to f2cl-//.
2000-07-28 18:56 rtoy
* src/f2cl0.l:
f2cl0.l isn't the (unused) f2cl loader anymore. Use it to define the
package used by f2cl.
2000-07-28 18:55 rtoy
* packages/toms/715/algtst.f:
Add exponent option in format statements so we can print out the large
exponents.
2000-07-28 18:54 rtoy
* f2cl.system:
Add f2cl0.l to the list of components.
2000-07-27 18:43 rtoy
* src/NOTES:
[no log message]
2000-07-27 18:42 rtoy
* src/f2cl5.l:
o We want to be in the CL-USER package, not the USER package.
o Use (typep x 'integer) instead of (fixnump x) in GET-FUN-ARG-TYPE.
2000-07-27 18:40 rtoy
* src/f2cl1.l:
o We want to be in the CL-USER package, not the USER package.
o Clisp doesn't have pprint-logical-block.
2000-07-27 18:39 rtoy
* src/: f2cl2.l, f2cl3.l, f2cl4.l, f2cl6.l, f2cl7.l, macros.l:
We want to be in the CL-USER package, not the USER package.
2000-07-27 18:36 rtoy
* packages/quadpack/Fortran/dqaws.f:
Remove that extraneous control M character!
2000-07-22 00:17 rtoy
* val/tst-fixups.f:
Initial version.
2000-07-22 00:13 rtoy
* packages/toms715.system:
Initial version.
2000-07-22 00:12 rtoy
* packages/quadpack.system:
:ARRAY-SLICING should default to NIL.
2000-07-21 23:59 rtoy
* packages/toms/715/: anrtst.f, dawtst.f, eitest.f, erftst.f,
gamtst.f, i0test.f, i1test.f, j0test.f, j1test.f, k0test.f,
k1test.f, psitst.f, ritest.f, rjtest.f, rktest.f, rytest.f,
y0test.f, y1test.f:
o Make sure the formats are large enough to hold a 3-digit exponent.
o Convert any Hollerith strings in format statements to strings.
o Delete spaces embedded within numbers.
o Some double precision values were being initialized by single
precision numbers.
2000-07-21 23:56 rtoy
* src/f2cl1.l:
Squash another parsing bug in initializing a single element of an
array.
2000-07-21 23:19 rtoy
* packages/toms/715/anorm.f:
Don't declare ANORM twice (g77 doesn't like this).
2000-07-21 23:18 rtoy
* packages/quadpack/quadpack-tests.lisp:
If besj0 and dgamma functions exist, use them in the solutions so we
can compute the absolute error.
2000-07-21 23:15 rtoy
* src/f2cl6.l:
Fix a typo in the punctuation list and add "/" to the list.
2000-07-21 23:14 rtoy
* src/f2cl1.l:
The last change to PARSE-DATA broke the case of
dimension x(3)
data x/1, 2, 3/
Make sure we are really initializing an array and not just one element
of the array.
2000-07-21 19:53 rtoy
* packages/toms/715/: algtst.f, anorm.f, anrtst.f, besei0.f,
besei1.f, besek0.f, besek1.f, besi0.f, besi1.f, besj0.f, besj1.f,
besk0.f, besk1.f, besy0.f, besy1.f, calcei.f, calci0.f, calci1.f,
calck0.f, calck1.f, calerf.f, caljy0.f, caljy1.f, daw.f,
dawtst.f, derf.f, derfc.f, derfcx.f, dgamma.f, dlgama.f, dsubn.f,
ei.f, eitest.f, eone.f, erftst, erftst.f, expei.f, gamtst.f,
i0test.f, i1test.f, j0test.f, j1test.f, k0test.f, k1test.f,
machar.f, psi.f, psitst.f, ren.f, ribesl.f, ritest.f, rjbesl.f,
rjtest.f, rkbesl.f, rktest.f, rybesl.f, rytest.f, y0test.f,
y1test.f:
Initial revision.
2000-07-21 19:48 rtoy
* packages/quadpack.system:
Add some support for :compiler-options if MK defsystem supports it.
2000-07-21 19:47 rtoy
* src/f2cl5.l:
o FIXUP-EXPRESSION: add a case to convert (- N) to just -N, when N is
a number.
o MERGE-OPS: incorrectly merged (- (- 3) IT) to (- 3 IT). I think
this is fixed now.
o INSERT-DECLARATIONS: Don't fixup external function refs if an
intrinsic was actually a variable in the arglist. (Missed this case
from before.)
2000-07-21 19:43 rtoy
* src/f2cl6.l:
Need to be more careful about continuation lines. We now leave a
space between lines when concatenating them, except when the previous
line ends with punctuation, or the current line begins with
punctuation. This is intended to handle cases like:
double precision
& x
from being converted to
double precisionx
which is wrong. We want a space before the x.
We want to handle these cases to, though:
x = y .le
&. 42
which shouldn't get a space between lines because we want "x = y
.le. 42", not the invalid "x = y .le . 42".
2000-07-21 19:39 rtoy
* src/f2cl1.l:
PARSE-DATA and friends were mishandling the case
DATA array/1,2,3,4/
where array was an array.
2000-07-20 17:48 rtoy
* packages/quadpack/Fortran/dqawfe.f:
Revert back to rev 1.2 since this file will work if we compile with
array-slicing off.
2000-07-20 17:42 rtoy
* packages/quadpack.system:
Initial revision
2000-07-20 17:39 rtoy
* val/tst-init.f:
Initial revision
2000-07-20 17:28 rtoy
* packages/quadpack/quadpack-tests.lisp:
Initial revision
2000-07-20 15:47 rtoy
* src/NOTES:
[no log message]
2000-07-20 15:44 rtoy
* src/macros.l:
o Remove old fref macro
o Add some comments
o Add macro ARRAY-INITIALIZE to handle creating the appropriate for to
give to make-array :initial-contents.
2000-07-20 15:43 rtoy
* src/f2cl5.l:
Since all arrays are now actually stored in column-major order in a
1-dimensional vector, we don't need to transpose the data initializers
anymore. Replace fortran-transpose with fortran-data-init to
correctly initialize the array.
2000-07-20 15:40 rtoy
* src/f2cl1.l:
o PARSE-DATA was not correctly handling data statements of the form:
data x(1),x(2),x(3)/n1, n2, n3/
o FIX-UP-NEGATIVE-NUMBER in PARSE-DATA1 didn't handle the case when
passed a value like 1.0d%1 which f2cl had converted from 1.0d-1.
2000-07-20 15:37 rtoy
* packages/quadpack/Fortran/dqawfe.f:
In the call to dqawoe, the code was passing a single element of an
array to the routine. However, the usage confuses f2cl when
array-slicing is on. Change the code to pass a single element in.
(Alternatively, we probably could have just run f2cl with
array-slicing off.)
2000-07-20 00:17 rtoy
* src/f2cl5.l:
Remove a print statement inadvertently left in.
2000-07-20 00:16 rtoy
* src/f2cl1.l:
o TRANSLATE-AND-WRITE-SUBPROG doesn't have the :declaim, :package, and
:options arguments anymore.
o Clean out unused code.
2000-07-19 16:10 rtoy
* src/NOTES:
Add comments on conversion to 1-D arrays.
2000-07-19 16:04 rtoy
* src/f2cl5.l:
o GET-FUN-ARG-TYPE returns a second value to indicate if the arg is an
array or not.
o More hacking on GET-ARG-DECL. Should now correctly identify if an
array is used as a parameter. Still needs work.
o MAKE_MAKE-ARRAY_STMT creates 1-D arrays for all arrays to support
Fortran array slicing.
o In MAKE-DECLARATION, declare all arrays as 1-D even if
multi-dimensional, for supporting Fortran array slicing.
2000-07-19 15:54 rtoy
* src/macros.l:
o Add the types ARRAY-DOUBLE-FLOAT, ARRAY-SINGLE-FLOAT, and
ARRAY-INTEGER4.
o All arrays are 1-D now to support slicing of Fortran arrays
correctly.
o All arrays are in column-major order just like Fortran (and the
opposite of Lisp). This is to support slicing of arrays. Modified
FREF to support this by taking an extra arg for the dimensions of
the array.
o Added macro ARRAY-SLICE to slice the array properly.
o Optimized routine DMIN1 a bit. (Need to do that for more routines.)
2000-07-19 15:50 rtoy
* src/f2cl2.l:
o Use the macro ARRAY-SLICE to slice the array instead of inline as we
were doing it.
o All arrays are 1-D now to support proper Fortran array slicing, so
FREF needs to know the array dimensions.
2000-07-19 15:47 rtoy
* src/f2cl1.l:
o Only print out one banner and version number, not one for each
subprog!
o In PARSE-DATA1, FREF now requires the dimensions of the array as the
third argument. (Needed to support 1-d arrays and slicing.)
2000-07-18 16:07 rtoy
* src/f2cl1.l:
Make the appropriate code changes due to the change in usage in
UPDATE-CALLED-FUNCTIONS-LIST since the name arg is now either a list
of the name for functions or a list of the name and :subroutine for
subroutines.
2000-07-18 16:04 rtoy
* src/f2cl2.l:
Changes for UPDATE-CALLED-FUNCTIONS-LIST:
o Document the layout of *functions-list*
o Make the appropriate code changes in other parts since the name arg
is now either a list of the name for functions or a list of the name
and :subroutine for subroutines. (Used for declaring functions and
subroutines correctly.)
2000-07-18 15:59 rtoy
* src/f2cl5.l:
o Left out some double precision intrinsics for getting function
types.
o Declarations for functions were not quite right. Make it better, but
still needs some work.
o The format of *functions-used* has changed. Do the right thing in
insert-declarations.
2000-07-14 23:47 rtoy
* packages/quadpack/tst-dqagse.lisp:
Initial version.
2000-07-14 23:28 rtoy
* packages/quadpack/README:
Mention tst-dqagse.lisp.
2000-07-14 23:23 rtoy
* src/f2cl5.l:
o In GET-FUN-ARG-TYPE, when looking up the type of an expression,
handle (funcall f ...) by looking up the type of "f" instead of
looking up the type of "funcall"!
o In FIX-DO, a goto to the end of the loop would get translated into a
(return). This seems wrong, and I don't know why it wants to do
this.
2000-07-14 18:58 rtoy
* val/tst-slice.f:
Initial version.
2000-07-14 18:45 rtoy
* src/f2cl1.l:
o Allow the user to specify what package the resulting file should be
in and any declaims he wants.
o Print out some additional information in the result like the f2cl
version and the compilation options.
o Added *f2cl-version*
2000-07-14 17:58 rtoy
* src/NOTES:
Info about array slicing.
2000-07-14 17:50 rtoy
* src/macros.l:
Get rid of *dummy_var*. It's not used anymore.
2000-07-14 17:50 rtoy
* src/f2cl5.l:
o When getting the type of an arg, handle the case when the arg is
actually a call to make-array for array slicing. Get the type form
the :element-type.
o If the arg has type fixnum, return integer4 instead.
2000-07-14 17:48 rtoy
* src/f2cl2.l:
Preliminary support for array slicing. Any array reference in a
function or subroutine call is assumed to mean a slice of the array.
This is done by creating a displaced array to the original array.
2000-07-14 17:44 rtoy
* src/f2cl1.l:
o Added keyword :array-slicing to f2cl to support array slicing.
o Preliminary support for array slicing. That is,
real x(100)
call sub(x(4))
means the subroutine sub actually gets an array of size 96 starting
from x(4).
There are some problems with this. If sub actually wanted a simple
real variable, we'll be passing the wrong thing to sub. f2cl in
general doesn't know what type of parameters sub wants.
To work around this problem, either run f2cl with :array-slicing set
to NIL, or change the call to something like:
real x(100)
real tmp
tmp = x(4)
call sub(tmp)
x(4) = tmp
(That last assignment needed only if sub is modifies the parameter.)
o In parsing a subroutine call, don't use the multiple-value-setq
version at all anymore. Use the multiple-value-bind version
instead.
2000-07-14 16:08 rtoy
* src/f2cl5.l:
Honor the user's choice of declaring arrays as array or simple-array.
Except we leave Fortran character strings still declared as
simple-array.
2000-07-14 16:05 rtoy
* src/f2cl1.l:
Allow the user to specify whether he wants f2cl to declare arrays as
type array or simple-array.
2000-07-14 15:33 rtoy
* src/f2cl5.l:
Don't apply external ref fixups if the external function was also a
parameter to the routine. If we do, then we referring to the wrong
thing!
2000-07-14 15:30 rtoy
* src/f2cl1.l:
o Computed goto apparently can have a comma before the expression, and
we weren't handling this correctly. (At least g77 allows it, even
though I can't find it mentioned in the Fortran 77 standard.)
o When doing a subroutine call, don't try to assign the return value
to external functions. Fortran can't return functions.
2000-07-13 18:55 rtoy
* src/: f2cl0.l, f2cl1.l, f2cl2.l, f2cl3.l, f2cl4.l, f2cl5.l,
f2cl6.l, f2cl7.l, macros.l:
To satisfy the Copyright statement, we have placed the RCS logs in
each source file in f2cl. (Hope this satisfies the copyright.)
2000-07-13 00:09 rtoy
* val/tst-char.f:
[no log message]
2000-07-13 00:07 rtoy
* src/macros.l:
Character strings should not be printed out as arrays are; honor the
given format instead of just PRINTing it.
(The whole formatting stuff needs major work.)
2000-07-13 00:00 rtoy
* val/: stmtfntest.for, subprogtest.for:
Make this program actually compile and run. Fix the syntax errors.
Change some of the code so that it doesn't play games with function
and variable types and stuff. (These definitely confuse f2cl and the
resulting Lisp code.) With these changes, the result compiles with
Fortran and f2cl, and they produce equivalent outputs.
2000-07-12 23:49 rtoy
* src/f2cl5.l:
In INSERT-DECLARATIONS, we weren't building up the various pieces
correctly when putting the parameter stuff, the saved variable stuff,
and the routine itself together. This should work better.
2000-07-12 23:35 rtoy
* src/NOTES:
[no log message]
2000-07-12 23:34 rtoy
* src/f2cl1.l:
In CONVERT-DATA-TYPE, the type "double precision" should have been
converted to double-float, not double!
2000-07-12 20:19 rtoy
* src/f2cl5.l:
INSERT-DECLARATIONS:
Leave the debugging print statements in. They're quite useful.
MAKE-CHAR-DECL, MAKE-CHAR-INIT:
With the change in PARSE-CHAR-DECL, some cases here don't happen
anymore. Remove some, and leave some in with error messages, just
in case. Also, array dimensions are now stored differently, so
account for that.
2000-07-12 20:12 rtoy
* src/f2cl2.l:
o In LOOKUP-ARRAY-BOUNDS, need to look in *COMMON_ARRAY_DIMS* too for
arrays that were dimensioned only in a common statement.
The format of the dimensions of arrays of character strings now
matches that of other arrays. Make the appropriate changes.
o In ID-FACTOR, forgot to add function calls of no parameters to the
list of called functions.
Also, we need to use funcall only if the function is a parameter.
If it's not, we can call it directly.
2000-07-12 20:06 rtoy
* src/f2cl1.l:
o Make specification of common array dimensions match the format used
for other arrays.
o Make PARSE-CHAR-DECL use the same format for array dimensions as
used for other arrays. Thus, it's now (var-name (lo-1 hi-1) (lo-2
hi-2) ...) instead of (var-name ((lo-1 hi-1) (lo-2 hi-2) ...)).
2000-07-12 17:29 rtoy
* src/f2cl5.l:
o Forgot to exclude variables defined in parameter statements from the
list of things that shouldn't be done in
FIXUP-EXTERNAL-FUNCTION-REFS.
o Some preliminary support for character strings in common blocks.
Still needs work.
2000-07-12 17:26 rtoy
* src/macros.l:
Add new macro F2CL-SET-STRING and a new function F2CL-STRING to help
in assigning values to Fortran character strings correctly.
2000-07-12 17:24 rtoy
* src/f2cl1.l:
o In PARSE-ASSIGNMENT and PARSE-ARRAYREF-OR-STMTFN, we need to handle
Fortran character strings specially because spaces are used as
fillers, if needed.
o In PARSE-CHAR-DECL, make the character type always contain the
length of the character string. Previously, the length was
sometimes with the character type and sometimes with the variable.
2000-07-12 15:45 rtoy
* src/f2cl5.l:
o In CHECK_NEW_VBLES, don't remove references to intrinsic functions.
We might be using a variable with the same name as an intrinsic.
o In FIXUP-EXTERNAL-FUNCTION-REFS, skip over declaration expressions
and function expressions. If we didn't, we get invalid expressions.
o In INSERT-DECLARATIONS, we were too agressive in removing intrinsic
function names from *DECLARED_VBLES* and *UNDECLARED_VBLES*. We
might be using them as variables.
When fixing up function refs, we should apply it to intrinsic
functions only if they aren't being used as variables. (Can't have
a function and a variable with the same name in the same routine in
Fortran.)
2000-07-12 15:32 rtoy
* src/f2cl2.l:
Make a note that the intrinsic function is a function call so we don't
pretend it's a variable and spuriously declare and initialize it.
2000-07-12 15:28 rtoy
* src/f2cl1.l:
Make a note that a name is a subroutine name so we don't pretend it's
a variable and spuriously declare and initialize it.
2000-07-11 23:49 rtoy
* src/f2cl1.l:
o Update code to call CHECK-RESERVED-LISP-NAMES instead of
CHECK-T-AND-PI.
o Forgot to call CHECK-RESERVED-LISP-NAMES when getting the name of a
program, function, and subroutine.
2000-07-11 23:46 rtoy
* src/f2cl2.l:
Update code to call CHECK-RESERVED-LISP-NAMES instead of
CHECK-T-AND-PI.
2000-07-11 23:45 rtoy
* src/f2cl5.l:
o Skip over FUNCALL in CHECK_NEW_VBLES. Otherwise, FUNCALL is
spuriously declared as a variable.
o Added FIXUP-EXTERNAL-FUNCTION-REFS so that all occurrences of the
external function (as a parameter) are replaced with #'<func>.
o In INSERT-DECLARATIONS:
o If a name is also either an external function name or an
instrinsic function name, we need to remove it from the list of
declared or undeclared variables. Otherwise, that name gets
declared as an (unused) variable.
o Handle fixups for external function refs using the new function
above.
o Change CHECK-T-AND-PI to CHECK-RESERVED-LISP-NAMES because we need
to make sure reserved Lisp names are used as either functions or
variables because the generated code will confuse Lisp. Also have
it check for more reserved names instead of just T, PI, and NIL.
(The list of reserved names is currently incomplete.)
o Update code to call CHECK-RESERVED-LISP-NAMES instead of
CHECK-T-AND-PI.
2000-07-11 23:36 rtoy
* src/macros.l:
Intrinsic functions should be functions. If they're not, we can't
pass them as parameters to other routines. Thus, change them from
macros to functions.
2000-07-11 21:32 rtoy
* src/f2cl5.l:
o Inadvertently left in some debugging format expressions.
o Try to clean up the output a bit in INSERT-DECLARATIONS by not
leaving empty LET's and LET*'s when no PARAMETER statements were
given or when no variables were explicitly SAVE'd. Remove empty
declarations too.
2000-07-11 21:27 rtoy
* src/f2cl1.l:
Fix a long-standing bug in TRANSLATE-AND-WRITE-SUBPROG wherein f2cl
would try to return goofy stuff from the main program when no PROGRAM
statement was given. Add some comments there too.
2000-07-11 00:09 rtoy
* src/f2cl5.l:
o MAKE-CHAR-DECL wasn't declaring arrays of character strings
correctly. (Gratuitously change indentation as well.)
o Fix a bug in MAKE-CHAR-INIT where character arrays with an explicit
length spec was not calling f2cl-init-string correctly.
2000-07-10 23:36 rtoy
* src/f2cl5.l:
o MAKE-CHAR-INIT wasn't initializing arrays of character strings
correctly. (Gratuitously change indentation as well.)
o Gratuitously change indentation for VBLE-IS-ARRAY-P.
2000-07-10 23:25 rtoy
* src/f2cl2.l:
LOOKUP-ARRAY-BOUNDS didn't understand how character arrays were stored
in *EXPLICIT_VBLE_DECLS*. Add comment on how arrays are identified.
2000-07-10 23:20 rtoy
* src/f2cl1.l:
The parsing of character declarations was missing lots of various
possible declarations. Fix this.
2000-07-10 21:08 rtoy
* src/macros.l:
Add f2cl-init-string to initialize multi-dimensional arrays of
character strings appropriately.
2000-07-10 15:56 rtoy
* src/macros.l:
Fix typos in log10 macro: misplaced closing parenthesis.
2000-07-10 15:54 rtoy
* src/f2cl6.l:
o clisp doesn't like the inline declaration of my-digit-char-p and
my-char= in parse-number. (Need to investigate this a bit more, but
for now, just take out the inline.)
o parse-number wasn't correctly parsing numbers like 0.d+01. This was
getting mangled to 0.0 d+01.
2000-07-01 00:08 rtoy
* src/f2cl5.l:
The previous change was correct, but didn't handle the case where the
type was implicitly given. This should work better in both
situations.
2000-06-30 23:06 rtoy
* src/f2cl5.l:
o Select the :user package.
o Delete the old commented-out CHECK_NEW_VBLES
o In LOOKUP-VBLE-TYPE, we weren't handling the case of a variable
declared like this:
dimension x(10)
double precision x
*EXPLICIT_VBLE_DECLS* contained two entries for X (one as an array
and one as a variable), and the lookup returned whatever was found
first. In this case we would incorrectly declare X using the
default Fortran typing rules. This hoses the coercion stuff. We
now try to look up the type skipping over array types. If this
fails, we then use the default Fortran rules.
2000-06-30 22:58 rtoy
* src/f2cl1.l:
Instrinsic functions should be part of the declared variables, even if
they were explicitly declared. (Except when they're external, which
makes them not intrinsic, but we don't handle that case.)
2000-06-30 19:47 rtoy
* packages/: d1mach.lisp, i1mach.lisp:
Initial version.
2000-06-30 19:46 rtoy
* packages/quadpack/Fortran/xerror.f:
Remove the i1mach function. f2cl doesn't know how to handle equivalences.
2000-06-30 19:30 rtoy
* src/f2cl5.l:
The way MAKE-FCN-DECL was returning declarations confuses
PRETTY-DECLS. Fix it.
2000-06-30 19:26 rtoy
* packages/quadpack/Fortran/: dqawfe.f, dqc25c.f, dqc25f.f,
dqc25s.f, dqng.f:
Although legal Fortran, f2cl doesn't like spaces embedded within a
number. Remove the spaces.
2000-06-30 18:35 rtoy
* src/f2cl6.l:
When concatenating continuation lines, trim off any leading white
space on the continuation lines. (May not be quite right according to
Fortran rules, especially if the continuation lines are strings.)
2000-06-30 18:33 rtoy
* src/f2cl5.l:
Inadvertently left a debugging print statement.
2000-06-30 18:32 rtoy
* packages/quadpack/Fortran/: dqk15.f, dqk15i.f, dqk21.f, dqk31.f,
dqk41.f, dqk51.f, dqk61.f:
Although legal Fortran, f2cl doesn't like spaces embedded within a
number. Remove the spaces.
2000-06-30 18:15 rtoy
* src/f2cl6.l:
f2cl doesn't parse certain continuation lines very well, so let's have
the preprocessor concatenate the continuation lines into one big line
for later parsing. Example:
if(0.1d-01.gt.(result/area).or.(result/area).gt.0.1d+03.
*or.errsum.gt.dabs(area)) ier = 6
used to confuse f2cl because it get translated into something like
... > 0.1d03.0 or.errsum
^^^
(The trailing dot wasn't treated as part of .or.)
(Should probably remove the parsing code that is supposed to handle
continuation lines.)
2000-06-30 18:11 rtoy
* src/f2cl5.l:
o CHECK_NEW_VBLES
o %FALSE% and %TRUE% are not variables but special f2cl names
o f2cl-hacked numbers are not variables. Check for that. This just
removes weird variable names from the generated lisp code.
o Added SYM-IS-NUMBER-P to determine if a symbol is really a hacked
f2cl number. This happens because during preprocessing when f2cl
converts numbers like x.yE-n to x.y%n for later parsing.
2000-06-30 16:19 rtoy
* packages/quadpack/Fortran/: dqag.f, dqagi.f, dqags.f, dqawc.f,
dqawf.f, dqawo.f, dqaws.f, dqng.f, xerror.f:
f2cl doesn't understand Hollerith strings, so convert them to normal
strings.
2000-06-30 16:00 rtoy
* packages/quadpack/Fortran/: d1mach.f, dgtsl.f, dqag.f, dqage.f,
dqagi.f, dqagie.f, dqagpe.f, dqags.f, dqagse.f, dqawc.f,
dqawce.f, dqawf.f, dqawfe.f, dqawo.f, dqawoe.f, dqaws.f,
dqawse.f, dqc25c.f, dqc25f.f, dqc25s.f, dqcheb.f, dqelg.f,
dqk15.f, dqk15i.f, dqk15w.f, dqk21.f, dqk31.f, dqk41.f, dqk51.f,
dqk61.f, dqmomo.f, dqng.f, dqpsrt.f, dqwgtc.f, dqwgtf.f,
dqwgts.f, xerror.f:
Initial revision.
2000-06-30 15:57 rtoy
* packages/quadpack/README:
[no log message]
2000-06-29 19:42 rtoy
* src/NOTES:
[no log message]
2000-06-29 19:41 rtoy
* src/f2cl6.l:
Partially reverse the change in 1.3 because that's was not the right
thing to do in general. Allow this brokenness if #:broken-peek-char
is a feature. (Useful for older versions of CMUCL?)
2000-06-29 18:59 rtoy
* f2cl.system:
Should be mk:defsystem instead of just defsystem for recent defsystems.
2000-06-07 19:24 rtoy
* src/NOTES, f2cl.system:
[no log message]
2000-06-07 19:21 rtoy
* src/macros.l:
date: 1999/08/06
The type declaration in fdo was wrong.
2000-06-07 19:19 rtoy
* src/macros.l:
date: 1999/08/05
Updated some the int, aint macros to handle the full integer4 type for
CMUCL.
2000-06-07 19:18 rtoy
* src/macros.l:
date: 1999/07/09
Added deftypes for integer*4, integer*2, integer*1, real*8, complex*8,
and complex*16 data types of Fortran.
2000-06-07 19:16 rtoy
* src/macros.l:
date: 1999/07/08
o Added a LOGICAL type.
o Fix some bugs in fref-string
o Add max1 to the intrinsic functions
o Rename real_ to real.
o Added the string comparison functions. These still need some work
to get real Fortran semantics.
2000-06-07 19:15 rtoy
* src/macros.l:
date: 1999/07/05
Removed the apparently unused rfref and rfset. Added the macros
fref-string and fset-string for accessing string variables and // for
concatenating strings.
2000-06-07 19:13 rtoy
* src/macros.l:
date: 1999/06/30
o Removed the function comment which didn't really work as expected.
o Add macro fortran_comment that replaces the old function comment.
2000-06-07 19:12 rtoy
* src/macros.l:
date: 1999/06/30
Renamed many special variables to includes *'s around the names so I
can tell they're special.
2000-06-07 19:03 rtoy
* src/macros.l:
date: 1999/06/30
Remove unused code.
2000-06-07 18:59 rtoy
* src/macros.l:
date: 1999/06/29
Oops: ffloat had a typo!
2000-06-07 18:58 rtoy
* src/macros.l:
date: 1999/06/29
Added *dummy_var*.
2000-06-07 18:55 rtoy
* src/macros.l:
date: 1999/06/29
o In f2cl/, the typep tests should be for integer, not fixnum.
o Added ffloat macro for the float intrinsic.
2000-06-07 18:52 rtoy
* src/macros.l:
date: 1997/07/31
Many changes and bug fixes
2000-06-07 18:48 rtoy
* src/f2cl5.l:
date: 1999/08/05
Make get-fun-arg-type understand the cmplx function.
2000-06-07 18:44 rtoy
* src/f2cl5.l:
date: 1999/08/05
Make get-fun-arg-type understand the conjg function.
2000-06-07 18:42 rtoy
* src/f2cl1.l:
date: 1999/08/05
Fixed a bug in parse-assignment and parse-arrayref-or-stmtfn where we
coerced something when we didn't have to.
2000-06-07 18:37 rtoy
* src/f2cl1.l:
date: 1999/07/20
o parse-declaration had a typo such that declarations for character
strings weren't parsed correctly.
o convert-data-type didn't handle INTEGER types: was converted to
fixnum instead of integer4.
2000-06-07 18:33 rtoy
* src/f2cl5.l:
date: 1999/07/20
Make make-char-init initialize Fortran character strings to spaces
instead of the Lisp default. This is more in line with typical
Fortran usage.
2000-06-07 18:30 rtoy
* src/f2cl5.l:
date: 1999/07/09
All fixnum data types should be replaced by integer4. This allows
integer4 to be either a fixnum or (signed-byte 32), as appropriate
(See macros.l for the deftype.)
2000-06-07 18:29 rtoy
* src/f2cl1.l:
date: 1999/07/12
Hmm, const was removed, but is called in another function.
2000-06-07 18:28 rtoy
* src/f2cl5.l:
date: 1999/07/08
Key parameters should use let*, not let, so they can refer to each
other.
2000-06-07 18:27 rtoy
* src/f2cl1.l:
date: 1999/07/12
o Default Fortran extensions are tried in case the input file doesn't
exist.
o Removed some unused functions, cleaned up some code.
2000-06-07 18:26 rtoy
* src/f2cl5.l:
date: 1999/07/08 15:31:41; author: toy; state: Exp; lines: +133 -21
o Correct yet another bug in fixup-expression. We weren't descending
some parts of the tree.
o Added FIXUP-RELOP to handle relational operators. This is needed to
handle relational operators for strings.
o Added MERGE-OPS to try to merge multiple operations into one.
Things like (+ (+ (+ x y) z) w) become (+ x y z w), which is more
natural Lisp.
o Changed insert-declarations to handle the new FIXUP-RELOP and
MERGE-OPS and do a better job for common blocks.
o Fixed some functions and added a couple more to process common
blocks better. This means creating the defstruct correctly, and
initializing them correctly with the appropriate sized arrays. Also
handles the case when array dimensions come from PARAMETER values.
2000-06-07 18:25 rtoy
* src/f2cl1.l:
date: 1999/07/09
o Want special-print to print readably, because numbers should be
printed readably in case the user has set
*read-default-float-format* to something other than 'single-float.
o Allow the parser to recognize the fortran data types integer*4,
integer*2, integer*1, real*8, real*4, complex*8, and complex*16.
This also fixes a bug that complex wasn't a recognized type
before. (I think.)
2000-06-07 18:20 rtoy
* src/f2cl5.l:
date: 1999/07/06
o CHECK_NEW_VBLES should ignore EXPT too.
o Clean up some variable init stuff: if a variable appears in
*functions-used*, remove that variable from *declared_vbles*.
2000-06-07 18:19 rtoy
* src/f2cl1.l:
date: 1999/07/08
A new PARSE-SUBROUTINE-CALL. The old one didn't properly handle
things like
call f(x(1))
...
subroutine f(v)
real v
...
v = 42
end
This was translated to
(multiple-value-setq (*dummy-var*)
(f (fref x (1))))
And thus, x(1) was never set!
This version translates this to
(multiple-value-bind (junk)
(f (fref x (1)))
(fsetf (fref x (1)) junk))
which does the right thing.
This doesn't handle everything, though, like array slices, but it's
better.
2000-06-07 18:18 rtoy
* src/f2cl5.l:
date: 1999/07/06
o The last change for fref wasn't quite right.
o The FDO macro depends on a certain form which fixup-expression
breaks. This is fixed now and works. However, we should change the
syntax of FDO!
2000-06-07 18:17 rtoy
* src/f2cl1.l:
date: 1999/07/08
Was probably not updating *common-block-initialized* with the common
block name.
2000-06-07 18:11 rtoy
* src/f2cl5.l:
date: 1999/07/06
Minor cleanup.
2000-06-07 18:11 rtoy
* src/f2cl1.l:
date: 1999/07/08
PARSE-ARRAYREF-OR-STMTFN needs to check the types, just like
PARSE-ASSIGNMENT so we can coerce when needed, or as instructed.
2000-06-07 18:08 rtoy
* src/f2cl5.l:
date: 1999/07/06
Fixed some more bugs in fixup-expression.
2000-06-07 18:05 rtoy
* src/f2cl1.l:
date: 1999/07/06
In assignments, if the LHS is a string (Fortran character data type),
we do a copy-seq of the RHS in all cases.
2000-06-07 18:03 rtoy
* src/f2cl5.l:
date: 1999/07/06
Fortran PARAMETER variables are no longer keyword arguments to the
function. Instead, a closure is created with the PARAMETER variables
appropriately set. This means you can't dynamically change PARAMETER
values; you need to edit the source and recompile.
This change was needed because SAVE'd variables can create closures,
and if the SAVE'd variables use the PARAMETER variables, as
dimensions, say, then, the PARAMETER value must be available to the
SAVE'd variables.
2000-06-07 18:01 rtoy
* src/f2cl1.l:
date: 1999/07/05
In parse-arrayref-or-stmtfn: add support for string references, which
are different from array references.
Added list-split-multi-string so we can parse strings in subroutine
calls.
In concat-operators, handle the case of the Fortran string
concatenation operator, //.
2000-06-07 17:59 rtoy
* src/f2cl5.l:
date: 1999/07/05
Forgot to take out debugging print statement.
2000-06-07 17:58 rtoy
* src/f2cl1.l:
date: 1999/07/05
Removed some unused code.
2000-06-07 17:56 rtoy
* src/f2cl5.l:
date: 1999/07/05
lookup-vble-type now returns a proper Lisp type for strings.
2000-06-07 17:55 rtoy
* src/f2cl1.l:
date: 1999/07/05
We need to check for new variables in PARSE-ASSIGNMENT. That way, we
get a list of variables that were undeclared so that we can initialize
them appropriately and declare their type.
2000-06-07 17:29 rtoy
* src/f2cl5.l:
date: 1999/07/05
Add ELSEIF to *FORTRAN-KEYWORDS*.
In check_new_vbles, we forgot to skip over strings, FREF-STRING, and
|:| (the substring indexing character)
In lookup-vble-type, we didn't return the correct type if the array
was declared only using a DIMENSION statement. In this case we need
to use Fortran implicit rules to get the type.
In GET-FUN-ARG-TYPE, VBLE-DECLARED-TWICE-P doesn't always return a
list of two elements.
In FIXUP-EXPRESSION, we forgot to include the rest of the expression
during fixup, in certain cases.
2000-06-07 17:28 rtoy
* src/f2cl1.l:
date: 1999/07/03
Make parse_upper_and_lower_bounds a bit smarter about negative numeric
bounds. This means a bound like '(- 5) is replaced with '(-5), which
produces better results in other places because the bound is a number
instead of an expression.
2000-06-07 17:27 rtoy
* src/f2cl5.l:
date: 1999/07/05
Removed some unused code.
2000-06-07 17:26 rtoy
* src/f2cl1.l:
date: 1999/07/03
Remove the debugging print statement inadvertently left in.
2000-06-07 17:26 rtoy
* src/f2cl5.l:
date: 1999/07/05
GET-FUN-ARG-TYPE wasn't returning the right types for logical
operations.
2000-06-07 17:24 rtoy
* src/f2cl1.l:
date: 1999/06/30
Make coercion of assignments a little bit smarter. Also corrected a
bug in trying to coerce a value to an integer variable: need to use
truncate, not coerce, in this case.
2000-06-07 17:22 rtoy
* src/f2cl5.l:
date: 1999/07/05
o Replaced check_new_vbles with a new version. (I have no idea what
the original was really doing). This one appears to work, and
actually sets *undeclared_vbles* correctly. (Some cases were
missed in the original.)
o optimize-f2cl/, fixup-expr-mul, and fixup-expression modified so
that they create new lists instead of destructively modifying the
input.
o fixup-expression handles a few more cases.
o Change insert-declaration to use functions correctly.
2000-06-07 17:20 rtoy
* src/f2cl2.l:
date: 1999/07/05
Fixed a small bug in processing the array indices.
2000-06-07 17:19 rtoy
* src/f2cl1.l:
date: 1999/06/30
Fix typo in f2cl.
2000-06-07 17:18 rtoy
* src/f2cl5.l:
date: 1999/07/03
o GET-UPGRADED-FUN-ARG-TYPE failed in some cases. Fixed them (I
think). Also, make it return a union of the types found instead of
T.
o Try to optimize out the f2cl/ macro by replacing it with / or
truncate if we are able to determine the types. If not, leave the
macro in. (Done in optimize-f2cl/.)
2000-06-07 17:17 rtoy
* src/f2cl2.l:
date: 1999/07/05
lookup-vble-type now returns a proper Lisp type for character strings.
2000-06-07 17:16 rtoy
* src/f2cl1.l:
date: 1999/06/30
Delete the temp file unless instructed otherwise.
2000-06-07 17:15 rtoy
* src/f2cl5.l:
date: 1999/07/03
In make-declaration, if it's possible, put in the actual bounds for
all arrays, if possible. (Some cases were missed.)
2000-06-07 17:14 rtoy
* src/f2cl2.l:
date: 1999/07/05
Make id-factor1 handle Fortran string concat operator.
Make id-factor handle Fortran string references.
2000-06-07 17:13 rtoy
* src/f2cl1.l:
date: 1999/06/30
o Renamed comment to fortran_comment.
o Removed some unused code.
2000-06-07 17:12 rtoy
* src/f2cl5.l:
date: 1999/07/03
o GET-FUN-ARG-TYPE didn't handle array types correctly.
o A few peek-char's needed to be changed. (Is this really right?)
2000-06-07 17:11 rtoy
* src/f2cl2.l:
date: 1999/07/03
Forgot to remove a debugging print statement.
2000-06-07 17:10 rtoy
* src/f2cl1.l:
date: 1999/06/30
Allow user to select the extension (file type) of the output.
2000-06-07 17:07 rtoy
* src/f2cl5.l:
date: 1999/06/30
Make get-fun-arg-type handle more cases, including some of the Fortran
built-in functions and the f2cl versions.
2000-06-07 17:06 rtoy
* src/f2cl2.l:
date: 1999/07/03
lookup-array-bounds didn't work if the array was declared twice such
as
real x
dimension x(10)
The search would scan the whole *explicit_vble_decls* and sometimes
set bounds incorrectly.
Now, once we've found the entry, and the entry contains bounds, we
stop.
2000-06-07 17:05 rtoy
* src/f2cl1.l:
date: 1999/06/30
o f2cl no longer requires an output file; it computes a name from the
input.
o Removed some unused code.
2000-06-07 17:02 rtoy
* src/f2cl5.l:
date: 1999/06/30
Renamed a few more special variables.
2000-06-07 17:02 rtoy
* src/f2cl2.l:
date: 1999/07/03
Didn't handle the case where the bounds list was NIL.
2000-06-07 17:00 rtoy
* src/f2cl1.l:
date: 1999/06/30
*prune_labels* is a special variable that we need access to.
2000-06-07 16:57 rtoy
* src/f2cl6.l:
date: 1999/07/08
Do case-insensitive string compares when we're looking for relational
operators in REPLACE-STR.
2000-06-07 16:56 rtoy
* src/f2cl5.l:
date: 1999/06/30
Renamed "keywords" to "*fortran-keywords*".
2000-06-07 16:56 rtoy
* src/f2cl2.l:
date: 1999/06/30
When accessing arrays, if the lower bounds are all one, we can remove
that from the fref, since the fref macro handles this already. No
effect on performance, but the code looks a bit simpler.
2000-06-07 16:54 rtoy
* src/f2cl6.l:
date: 1999/06/30
o Make preprocess use with-open-file.
o Change write-comment-line to print FOTRAN_COMMENT instead of
COMMENT, and print a bit better.
2000-06-07 16:52 rtoy
* src/: f2cl5.l, f2cl1.l:
date: 1999/06/30
Renamed many special variables to includes *'s around the names so I
can tell they're special.
2000-06-07 16:51 rtoy
* src/f2cl2.l:
date: 1999/06/30
Removed some unused special variables.
2000-06-07 16:50 rtoy
* src/f2cl1.l:
date: 1999/06/29
o Remove unused functions.
o Allow the option of coercing the rhs of assignments to the lhs.
2000-06-07 16:34 rtoy
* src/f2cl5.l:
date: 1999/06/29
Make determination of the parameter types of functions a little bit
smarter by descending down the parameter lists. (See get-fun-arg-type
and friends.)
2000-06-07 16:32 rtoy
* src/: f2cl2.l, f2cl6.l:
date: 1999/06/30
Removed unused code.
2000-06-07 16:31 rtoy
* src/f2cl1.l:
date: 1999/06/29
Need to check the names of the function args for T and PI!
2000-06-07 16:27 rtoy
* src/f2cl6.l:
date: 1999/06/28
For all peek-char's, change the recursive flag from T to NIL. The
current setting causes parse-number to fail with end-of-file errors
when parsing simple numbers. (Is this change the right thing to do?)
2000-06-07 16:26 rtoy
* src/f2cl5.l:
date: 1999/06/29
Declare logical variables to be of type (member t nil) instead of just
T.
2000-06-07 16:22 rtoy
* src/f2cl2.l:
date: 1999/06/30
Renamed many special variables to includes *'s around the names so I
can tell they're special.
2000-06-07 16:20 rtoy
* src/f2cl1.l:
date: 1999/06/29
o Added *common-blocks*, *common-block-initialized*,
*relaxed-array-decls*.
o Added :relaxed-array-decls to f2cl. Clear the *common-blocks* hash
table.
o Changes made to support putting variables in common blocks into a
structure, with appropriate initialization of the defstruct and
declaring a varialbe for the common block.
o Modified parse-common to keep track of which variable goes with with
common block.
2000-06-07 16:15 rtoy
* src/f2cl6.l:
date: 1999/06/28
Add code to handle tabs used to skip over the statement numbers.
2000-06-07 16:14 rtoy
* src/f2cl5.l:
date: 1999/06/29
Many changes to support putting common blocks into a structure and
declaring a variable to hold the actual contents of the common block.
2000-06-07 16:13 rtoy
* src/f2cl2.l:
date: 1999/06/29
Added case for float instrinsic in id-factor.
2000-06-07 16:12 rtoy
* src/f2cl1.l:
date: 1999/06/29
Handle array bounds that are "*".
2000-06-07 16:09 rtoy
* src/: f2cl1.l, f2cl2.l, f2cl5.l, f2cl6.l, f2cl7.l:
Date: 1997/07/31
Lots of changes and bug fixes that I, unfortunately, did not keep
track of.
2000-06-07 15:47 rtoy
* build/install.txt, doc/f2cldoc.latex, src/f2cl0.l, src/f2cl1.l,
src/f2cl2.l, src/f2cl3.l, src/f2cl4.l, src/f2cl5.l, src/f2cl6.l,
src/f2cl7.l, src/macros.l, val/README, val/arithIFtest.for,
val/commontest.for, val/dbrent.for, val/dotest.for,
val/formattest.for, val/h03abf.for, val/jacobi.for,
val/kendl1.for, val/la05.for, val/mi10mach.for, val/mi50lp.for,
val/nars.for, val/rtflsp.for, val/rtnewt.for, val/savetest.for,
val/simpletest.for, val/solvde.for, val/stmtfntest.for,
val/subprogtest.for, val/test.out, val/twofft.for:
Original version.
2000-06-07 15:37 rtoy
* GNU-GPL, README:
Original version.
2000-06-07 15:34 rtoy
* Copyright:
Original version.
|