File: ChangeLog

package info (click to toggle)
mah-jong 1.8-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,384 kB
  • ctags: 2,186
  • sloc: ansic: 26,312; perl: 393; makefile: 272; sh: 122
file content (2539 lines) | stat: -rw-r--r-- 73,802 bytes parent folder | download
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
2007-05-22  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* client.c, client.h: client_find_set: return pairs before chows

	* xmj.man, gui-dial.c:
	change the Discard label in the turn dialogue to Declare when
	it's a flower.

	* gui-dial.c, xmj.man:
	Remove the Add To Pung button in the turn dialogue, and
	move its functionality into the Kong button.

	* protocol.h: Add ShowOnWashout (request from Ulrich Schwartz)
	pversion 1072

	* game.c, controller.c:
	Add ShowOnWashout (request from Ulrich Schwartz)

2006-12-16  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* greedy.c: remove one magic value

2006-02-14  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* runtest: Why was I putting the pid in /tmp/mj. even when not usepid?

	* README: remove dcs web page and email

2006-02-12  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* greedy.c:
	amalgamate magic and magic2. Try fiddling with adding scores
	for different branches.

2006-02-01  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* greedy.c:
	send eval debugging output to debugf, which is currently stderr

	* greedy.c: move some other magic numbers into magic2 and have --magic2
	option.

2006-01-31  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* pmon: pass any additional args to the player

2006-01-30  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* pmon: put in the pause until oked by user (x  to skip)

	* pmon: remove sleep

	* gui.c:
	Re-Implement echo-server via put_line, so that raw protocol comes out.

	* pmon: New file.

	* gui.c: create the open dialog in create_display. Not sure why it was
	separately in the main routine.

	* gui.c: monitor fixes

2006-01-29  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: don't send connect in monitor mode

2006-01-28  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* xmj.man: add --monitor option for xmj

	* gui.h, gui-dial.c, gui.c: add --monitor option

	* greedy.c:
	move some magic numbers into an array settable via parameter file,
	and change the defaults to the results of a long random search

2006-01-26  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* runtest: temp changes for ga use

	* Makefile.in: add a pattern rule for variants of greedy-FOO

	* ga.c: well, this didn't work particularly. We'll keep it here for
	the record

	* cull, mutate, scorenew: New file.

2006-01-24  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* ga.c: New file.

	* Makefile.in: add ga target

	* sysdep.c: tcp_keepidle doesn't work on unix sockets (duh!)

2006-01-22  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.c: Windoze uses SD_SEND instead of SHUT_WR

	* CHANGES: Release 1.7

	* ChangeLog: 1.7

	* sysdep.c, sysdep.h: make put_data send eof if passed zero data;
	add get_data.

	* gui-dial.c: pop up message returned from crash report server, if any.

2006-01-18  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.c, malloc.c, client.c, gui-dial.c, gui.c:
	More warning suppressions (mostly on Windows)

	* Makefile.in: control cc warning options with a Warnings make variable

	* sysdep.c: use TCP_KEEPIDLE only if it's defined as a constant

	* gui.c: small tweaks to remove type-related warnings

	* sysdep.c, sysdep.h:
	add some const to log_error to suppress warnings (and because they
	should be const)

2006-01-17  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* README: updating for 1.7 and new gtkdlls1.zip (also removed some
	obsolete sentences).

	* Makefile.in: changes for my new Windows compilation setup

2006-01-14  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.c: set keepalive on outgoing connections

	* greedy.c: handle Reconnect

	* controller.c: Changes to support Reconnect.

	* gui.c: Changes to support Reconnect.
	(Not yet on interface.)

	* gui.h: Changes to support Reconnect

	* client.h: additional routines to support Reconnect

	* protocol.h: change semantics for reconnect

	* client.c: additional routines to support Reconnect

2006-01-13  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* game.c: Fix very old stupid bug: closed kongs weren't being counted
	when checking for Kong upon Kong.

2006-01-09  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* game.c: handle reconnect (by doing nothing)

	* protocol.h: Add Reconnect and RequestReconnect. pversion to 1070.

2005-04-17  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* controller.c:
	Reject multiple connects from same connection (thanks to Len Budney)

2005-03-22  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.c, scoring.c, gui.c, controller.c:
	buffer overflow precautions from Len Budney

	* sysdep.h: add strmcat

	* gui-dial.c: increase saved-warning buffer size

2005-02-28  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: Oops. In introducing a GTK2 version of some code, deleted
	the 1.2 version by accident.

2005-02-05  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* MANIFEST, FILES-src: add malloc.c

	* Makefile.in: Use Doug Lea's malloc for Windows

	* malloc.c: hack it around to get it to compile in my environment -
	mostly remove mmap, and add unistd back

	* malloc.c: *** empty log message ***

	* Makefile.in: add warning not to use gtk+2

2004-08-26  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui-dial.c: more gkt2ery

	* gui-dial.c: suppress const warning

	* greedy.c: only rob closed kong if can get thirteen wonders

2004-08-22  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui-dial.c, gui.c:
	Started porting for GTK2. Just got to compilation, but still
	far to go.

	* Makefile.in: added GTK2 flags

2004-08-09  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: protect against null messages

2004-08-08  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: fix display bug when robbing kong.

	* controller.c:
	Fix bug in game resumption: need to pass options to players
	before they get a NewHand message.

2004-08-05  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: protect against nulls in state recording;
	warn on bad messages from controller

2004-08-03  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: fix bug in last addition

	* gui.c: hopefully change reporting hook to send everything

	* gui.c: add databuffer struct and record server history in it

2004-07-29  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui-dial.c: put version in error reports

	* gui.c: hmm. Check for error in handle_cmsg and report it.

2004-07-07  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* make-release: no longer make a static linux version

	* gui-dial.c: shunt report filing out to a sysdep routine.

	* sysdep.h: *** empty log message ***

	* sysdep.c:
	Add some routines for dealing with sockets as-is, without applying
	the transforms.

2004-07-05  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui-dial.c:
	don't file reports before the windows are up (since can't ask
	for permission)

	* sysdep.c: declaration in wrong place

	* gui-dial.c, gui.h, gui.c:
	Add facility for Internet debug reports, with appropriate
	preference options and querying.

2004-06-24  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: buffer safety in log_msg_dump_state

	* game.c, game.h:
	change game_print_state to pass back number of spare bytes in buffer.

2004-06-22  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: nag at intervals of not less than one month.

2004-06-10  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: display of RobsKong should then fall through and do MahJongs
	processing

	* ChangeLog: delete duplicate entry

2004-06-04  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui-dial.c: don't try to pop up error if no window system yet

	* gui-dial.c: Arrgh. Must use "send" to write to sockets in windoze

2004-05-21  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.h, sysdep.c:
	Add source code ident into the error function - actual function
	is now log_error.

2004-05-15  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* player.c: replace assertion by error call.

	* gui.c:
	1. Add debugging to cmsg processing - where errors occur in some
	players.
	2. Switch on nagging for Windows! Why didn't I go this before!

	* gui-dial.c: warn rather than popup when can't file report.
	Pop up error dialog to tell user when error occurs.

2004-05-14  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* gui.c: dump on errors, not warning

	* gui-dial.c, gui.c: dump game state on errors and file report

	* sysdep.c: oops...don't copy null note.

	* game.c: handle null game in print_state

	* game.c: add players to game state printout

2004-05-10  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* sysdep.h, sysdep.c: Add log_msg_add_note_hook

2004-05-09  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* player.c:
	player_discard functions were not clearing the NoDiscard flag
	of hidden players.

	* CHANGES: 1.6.3

	* player.c: Fix the bug pointed out by Nicolas in thirteen wonders

	* player.h, player.c: Add player_print_state()

	* game.c: move nullprotect into sysdep

	* sysdep.h, sysdep.c: Add the nullprotect utility function.

	* gui.c, gui-dial.c:
	initialize some variables to avoid (hopefully inapplicable) warnings.

	* sysdep.h, sysdep.c: add error level to log functions

	* sysdep.h: remove superfluous declarations of (v)snprintf

	* player.c: another error in thirteen wonders, introduced last time.

2004-05-08  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* game.c: fix typos in game_print_state; remove unused variable.

	* game.c: *** empty log message ***

	* controller.c: use seats instead of unsigned int for seats variables,
	since we've changed from unsigned to signed, and should have
	been doing it anyway.

	* game.c: Add game_print_state, in basic form (doesn't print players or
	options).

	* tiles.h: Curiously, we never included the tiles-enum functions!

	* game.h: change noseat from a #define to an enum constant.
	Add game_print_state as debugging function.

	* tiles.c: Curiously, we never included the tiles-enum functions!

2004-05-03  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* protocol.c: typo in warning message (said pmsg, meant cmsg)

2004-04-16  Julian Bradfield  <jcb@inf.ed.ac.uk>

	* xmj.man: remove ref to dcs web site

	* CHANGES, ChangeLog: 1.6.2

	* sysdep.c, sysdep.h:
	(v)snprintf does exist in Windows, it's just missing from mingw
	headers. So use it.

2004-04-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	tilesetbox_set: should not refer to the .tile value of an empty
	tileset.

2004-04-10  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES, ChangeLog: 1.6.1

	* player.c:
	Since time immemorial, the thirteen wonders checking function has
	been wrong, in that it didn't actually check for the pair!

	* controller.c:
	Server was still setting up player with blank name, causing segfault.

2003-10-12  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: Oops...don't install table manager when not built!

2003-10-08  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.c: fake (v)snprintf for Windoze.

2003-10-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: really 1.6

	* sysdep.h: fake (v)snprintf for Windoze.

	* CHANGES, ChangeLog: 1.6


2003-10-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.h:
	pversion to 1060, to mark changes in backslash processing.
	Really, these should be bug fixes, but the protocol was unclear
	before.

2003-10-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	When auto-declaring specials, players should still get the chance
	to declare kongs if they have some.

2003-09-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	The processing of chow claims was confused, with the result that
	if other duplicate claims arrived while waiting for a chow to be
	fully specificied, a confused state resulted.
	The logic is now (hopefully) more straightforward, and duplicate
	claims are silently ignored.

2003-09-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-decode-msg.pl: remove redundant condition

	* proto-encode-msg.pl, sysdep.c, protocol.c:
	eliminate warnings introduced by previous changes.

	* proto-decode-msg.pl, proto-encode-msg.pl, sysdep.c:
	Sort out backslashes at last. Still inelegant in places,
	but hopefully correct and overflow-safe.

	* gui.c: Messages should not undergo brace expansion.

2003-09-28  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-encode-msg.pl, sysdep.c, protocol.c:
	Folded in Nicolas Boullis's fixes for buffer overflow.
	Backslash escaping is still a mess.

2003-09-27  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-encode-msg.pl, proto-decode-msg.pl, gui-dial.c, controller.c:
	Patches against buffer overruns from Nicolas Boullis.

2003-08-24  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-decode-msg.pl: Do backslash unescaping, for backslashes only.
	(i.e. \\ - \, but single backslashes not changed)

2003-08-21  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-decode-msg.pl:
	Has backslash escaping; but this is done in expand_protocol_text,
	so we shouldn't do it here, but rather should make all char* fields
	subject to expansion.

2003-08-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.c, proto-encode-msg.pl:
	Escape backslashes in char* arguments.

	* sysdep.c: fix bug in backslash counting

2003-06-08  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in:
	control table manager compilation by TableManager variable,
	(currently set to off) to avoid problems in releases.

	* manager.c:
	This now compiles, and handles (basically) the login message.

2003-06-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* mprotocol.c: protocol-enums -> mprotocol-enums
	remove superfluous variable

	* manager.c: New file.

2003-06-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES, ChangeLog: 1.5.6

2003-06-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c: clear the konging flag after robbing a kong.
	(Otherwise get consistency error in next hand.)

2003-06-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	Ouch. Since the year dot, we haven't been setting cmsg_check when
	loading a game from file! This causes state inconsistencies.

2003-05-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in:
	comment out mj-manager from programs, so it isn't made by default

	* Makefile.in: Add targets for the table manager. [not in release]

2003-04-21  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	Don't showraise messagewindow when info in main; for some reason,
	this seems to raise the whole top-level window.

2003-04-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: add the auto-generation for the mproto files.
	[not yet in release]

	* proto-decode-msg.pl, proto-encode-msg.pl:
	generalize to deal with mcmsg and mpmsg [not yet in release]

	* mprotocol.c, mprotocol.h: New file. [not yet in release]

	* xmj.man: table colour, change to DiscDoubles semantics.

2003-04-17  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	Change semantics of DiscarderDoubles to match singaporean play
	(as it should have been): discarder pays double, but on self-draw
	everybody pays double.
	Simplify cannoning logic.

2003-04-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c: Add table colour display option.

2003-04-13  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c, scoring.c:
	Trivial code tidy: make more use of is_green instead of checking
	for individual green tiles.

2003-04-12  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	Tidy: set discard to 0 when MahJong from hand, instead of leaving
	it uninitialized.

2003-04-11  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man, gui-dial.c: Change GUI description of auto-declare options.

	* ChangeLog, CHANGES: 1.5.5

	* scoring.c:
	Bug fix: was noting Imperial Jade when having Thirteen Orphans.

	* gui.c: Auto-declaration of winning hand now claims the discard too.

	* gui.c:
	Fix auto declaration of winning hands to allow for Special Sets.

2003-04-10  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: 1.5.4

	* gui.c:
	fix error in Message processing: was displaying (possibly NULL)
	unexpanded text instead of expanded!

	* gui.c: Change xmj.ini searching behaviour under Windows.

	* sysdep.h, sysdep.c:
	Change get_homedir to return NULL when there's no homedir defined,
	so calling program can decide where to look.

2003-04-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	Initialize the open dialog fields during initialization, so that
	an automatic connect picks up the right values.

2003-04-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES, ChangeLog: 1.5.3

2003-04-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c, gui.c, gui.h, xmj.man:
	Add a selector for the text font used for fixed width text.

	* game.c: Add discarded_tile_count field to game structure.
	Use it in End cannon.

	* game.h: Add discarded_tile_count field to game structure.

2003-04-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES: indentation typos.

	* ChangeLog: 1.5.2

	* xmj.man: message text entry update, and "keep cursor here" box.

	* CHANGES: 1.5.2

2003-03-31  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	Pop down chowdialog after using it when dealing with old server.

	* gui.c: setup dialogs after error messages, in case something went
	wrong. (Only really needed for one case: mistaken chow at
	mah jong when dealing with old server.)

2003-03-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c, greedy.c, game.h, gui.c, gui-dial.c, game.c,
          protocol.h:: 
	Break apart the pending flag into chowpending and mjpending.
	Do legality testing for an AnyPos chow claim during MahJong.
	This requires a protocol change: before now, AnyPos was illegal
	during MahJonging. Pversion now 1050.

	* gui.h: add server_pversion.

	* game.c: Add checking for an anypos chow in the mahjonging state.

2003-03-25  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	Add a checkbox to keep the keyboard focus in the message entry.

2003-03-23  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c, client.h, sysdep.h, sysdep.c, client.c:
	Add some hacks to allow an address of "-" to mean stdin
	and stdout. Only really likely to work under Unix, but who knows...

	* controller.c: print errno when get_line returns null.

	* controller.c:
	Don't allow reconnects while end_on_disconnect is in progress.

2003-03-22  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.c, protocol.h:
	protocol expansion should yield empty string when given NULL source.

2003-03-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: 1.5.1

	* proto-decode-msg.pl: Work round bugs in Microsoft sscanf:
	instead of using " %n" in format to advance to next item,
	use "%n" and explicit loop over white space.
	(Symptom: %n was returning ridiculous (or possibly no) values).

	* controller.c: Fix the handling of disconnection before game starts,
	and the assignnent of ids to players, and the finding
	of a player structure in the game for a new player.

2003-03-15  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: 1.5

	* README: add tiles-small

	* CHANGES: 1.5

	* gui.c: Change XmjOption to Display.
	(Still read XmjOption, of course.)

	* xmj.man: Change XmjOption to Display.

2003-03-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man: Describe LosersSettle, EastDoubles, DiscDoubles.

	* protocol.h: Add GODiscDoubles.
	Go to pversion 1040.

	* game.c: Add GODiscDoubles

	* controller.c: Add DiscDoubles

2003-03-10  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* FILES-src, FILES-binary, MANIFEST: Add tiles-small.

	* controller.c: fix cannon scoring when no east doubles.

	* controller.c, protocol.h, game.c: Add GOLosersSettle.

	* controller.c: remove historical relict.

	* game.c, controller.c: Add GOEastDoubles.

	* protocol.h: Add GOEastDoubles.
	Pversion set to 1039 while adding options.

2003-03-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	If the message entry window has focus, don't take it away.

2003-03-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: Implement the LoadState pmsg.

	* game.h: Add game_has_started.

	* gui.c: handle a second ConnectReply (e.g. in response to loadstate)

	* game.c: Add game_has_started.
	Allow deletion of players until game has started.
	Set active=0 on receipt of Game msg.

2003-03-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.h: Add the LoadState pmsg. Protocol version 1038.

	* gui.c, game.c, gui-dial.c, controller.c:
	Remove some compiler warnings.

2003-02-27  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: up to 1.5pre5

	* xmj.man: Bring the documentation up to 1.5pre5 level.

2003-02-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	I believe this implements disconnect penalties, but it needs some
	testing.

2003-02-19  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	--exit-on-disconnect still means it, even before a game has started.

	* gui.h, gui.c, gui-dial.c, controller.c:
	Implement client local timeouts.

	* protocol.h:
	Define empty name in CMsgPlayerMsg to mean "delete player".
	Add GOTimeoutGrace game option.
	Protocol version 1036.

	* game.c: Add the TimeoutGrace game option.

	* player.h: Add POLocalTimeouts option.

	* controller.c:
	If players disconnect before the game starts, don't exit.
	(Assuming all connected players support the deletion of players.)

	* game.c:
	Handle the new meaning of CMsgPlayer with empty name as "delete
	player".

	* game.h: Renumber the states so that HandComplete is zero.
	This has the useful side effect that if a Game is initialized
	in the usual way by zeroing, it starts in HandComplete, which
	makes more sense than "Dealing". It should have no-non side effects,
	since nothing assumes anything about the numerical values.

2003-02-18  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: rename temp new rcfile just in case it helps on ME.

	* sysdep.c: downgrade two warnings to info; remove / in C:/ for
	Windows root.

	* gui.c: fix typo in warning

	* gui.c, gui.h: *** empty log message ***

	* gui-dial.c: Change warning stuff for new log_msg.

	* sysdep.h, sysdep.c:
	Generalized warn() to a log_msg with different warning levels.
	Keep warn(), and add info().
	Change warning_hook to log_msg_hook taking warning level.

	* gui-dial.c: try to avoid accidental discards

	* gui-dial.c: remove stuff that was in wrong place (and commented out)

	* controller.c: I think this correctly implements --end-on-disconnect.
	Further testing would be good.

	* gui.c: Fix long-standing stupid bug in washout handling
	causing gtk-critical errors.
	Also, print the WashOut reason field.

	* gui.c: Well, well. We segfaulted on messages from the controller!

2003-02-17  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c: Add explanatory comment.

	* game.c:
	Prevent players discarding when they should be drawing a tile.
	(How did this one last so long?)

	* gui-dial.c: Argh! Fix erroneous updating of short status window.

2003-02-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: choose smaller display sizes on Windows.

	* sysdep.c: Windows (or mine at least) doesn't have vsnprintf.
	Increase the buffer size in warn(); and make it non-static.

	* makedep:
	Handle the change in semantics of -MM in gcc versions 3.1 and later.

	* gui-dial.c, gui.c: catch warnings during re-creation of display

	* gui.h, gui.c, gui-dial.c:
	Add display size choosing to display prefs panel

	* gui-dial.c: Whoops. Finish last change.

	* gui.c, gui-dial.c:
	remove the robot player name preferences from Display prefs;
	make the entries in the open dialog sticky instead.

	* gui.h, gui.c, gui-dial.c:
	Get warnings into the display even if they happen
	before the warnings window is available.

	* gui.h, gui-dial.c, gui.c: Add options to select main font.

2003-02-15  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: warningentry shd be initially hidden.

	* gui.c: add rcfile name to some of the warnings.

	* sysdep.h, sysdep.c: Add the warning_hook to warn().

	* gui.h, gui.c, gui-dial.c:
	Use new warning hook to put warnings into a new window, and
	add a menu entry to display them.

	* gui-dial.c: remove dcs from "about" text

	* sysdep.c:
	re-arrange warn so that it formats the string into a buffer first
	and then prints it.

	* client.c: client_find_sets: returns pungs ahead of chows

	* client.h: correct and change spec in comment for client_find_sets,
	concerning order of returned sets

	* gui.c: fix bug in auto-declaring specials when a new one is drawn.

	* controller.c: Add --no-manager option.

	* game.c: clarification in manager testing.

	* game.h: add comment allowing -1 as manager value

2003-02-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: add id to short status window

2003-02-11  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	Oops. Had non-block-initial declaration. gcc-3 must be forgiving.

	* gui-dial.c:
	change New game and Join game menu entries to be more suggestive.

	* gui.c: *** empty log message ***

	* gui-dial.c:
	Add the playing_auto_winning/losing options to preference dialog.

	* gui-dial.c:
	if'd out  thing preventing discard callback being invoked when
	discard dialog is not visible (which should be impossible anyway,
	so I'm not convinced this happens).

	* gui.h, gui.c:
	Implement auto declaring of closed sets in winning and losing hands.

2003-02-09  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c: Add the playing preferences dialog,
	with the auto_declare_specials preference in it.

	* gui.h, gui.c: Implement the programming of auto declaring specials.

	* controller.c: insist on a non-null name in Connect messages.

	* gui-dial.c: remove game info and messages entry from show menu when
	they're in the main window.

	* gui.h, gui-dial.c, gui.c:
	Make the name field in the open dialog sticky when connecting
	to a remote.

	* gui.c: Make Address setting a subgroup of OpenDialog.

	* gui.c, gui-dial.c: Implement info_in_main as a display option.

	* gui-dial.c: in short info window, put "suspended" in separate line

	* gui-dial.c:
	Handle the inclusion of the messaging window into the main window.

	* gui.c:
	Improve format of arriving messages (don't waste line at end of
	messagetext);
	don't set up the dialogs when a message arrives (to avoid reverting
	focus to the playing dialogs).

2003-02-08  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: I think this is a reasonable info window implementation.
	Couldn't put in on the board (there's no space when we'ren
	not showing the wall), but this is fairly compact.

	* gui.h: add some variables for info windows in main

	* gui-dial.c:
	Implement info window in main, but I don't think I like it.
	Can I put them over the main window instead?

	* gui.c: move partway to implementing info_windows_in_main, and fix bug
	introduced in last change (wasn't starting robots with correct
	address)

	* gui.c:
	move the creation of text,message,status windows into create_display,
	and destroy them in destroy_display

2003-02-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c, gui.h, gui.c:
	Make the address sticky (Address entry in .xmjrc) when joining
	remote games.

	* gui.c: strip trailing white space from host names

	* gui.h, gui.c, xmj.man, gui-dial.c:
	Add the NoPopups display option to xmj;
	change text on apply/save buttons in display options panel.

	* scoring.c:
	Fix the treatment of scoring options with limits, and dbls/pts in
	a no-limit game; impose a hard limit of 1E8 to avoid arith overflow.

2003-02-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	protect add_or_remove_..._accelerators against the accelerators
	not being defined.

	* gui.c: Make WALL_SIZE work when there is a game but no wall;
	and don't set up the wall if there is no wall (because
	the size is zero, e.g. between hands).

	* xmj.man: typo

	* gui.h, gui.c, gui-dial.c:
	Change read_or_update_rcfile parameters to be read/update
	flag bit sets. New enum XmjrcGroup for these.

2003-02-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	In the new game panel, don't show the host entry (makes no sense,
	since we're starting a local server). But set the host entry
	to localhost so that clients are correctly started.

	* game.c: Sigh. Previous bug fix needs to be applied in both places
	cannons are detected. There should be a macro or something.
	Thanks to Thorsten Michels again.

2002-08-09  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES, ChangeLog: 1.4.1

	* game.c:
	Bug fix in cannon with last four tiles. (Thanks to Thorsten Michels.)

2002-04-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: remove some unused variables

	* protocol.h, protocol.c: Add the protocol_version global variable.
          (N.B. This variable is not yet used or set; this has strayed in
	  from the development version.)
	
2002-03-31  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	Bug fix: when resuming a game, need to set out timeout from the
	game option.

2002-03-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: 1.4

	* xmj.man: Add KongHas3Types.

	* scoring.c, player.c, gui.c, player.h:
	Used annexed instead of melded, since melded is inaccurate.

	* gui.c: Handle Millington kongs

	* scoring.c: Handle GOKongHas3Types

	* game.c: Add GOKongHas3Types.

	* player.h: Add melded flag to Tileset for Millington kongs.

	* player.c: Handle three types of kong. Note that the three types are
	distinguished, and the printed forms distinguished (by printing
	TT-TT-TT-TT for a melded kong and TT-TT-TT+TT for a claimed kong)
	always, regardless of options or protocol versions, since to do
	anything else would involve importing external info into the module.
	This is thus not strictly backward compatible; but it happens to be
	backward compatible by implementation, since the previous tileset
	parser only looks at the first separator to distinguish open and
	closed kongs.

	* protocol.h: Add GOKongHas3Types; proto version 1034

2002-02-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: 1.3.2

	* gui-dial.c, gui.c:
	Fix for infelicity in spinbuttons: they do not change the internal
	value when numbers are typed until return is hit, so call update
	explicitly before getting value.

2002-01-08  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: really 1.3.1

	* gui.c: Remove ugly hack that Nicolas justly rejects.

	* ChangeLog, CHANGES: 1.3.1

	* gui.c: code for animation both with internal widgets and with popups.
	Default to popups for Windows, where it seems to smooth animation.

2002-01-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	don't uniconify auxilary windows that have been closed while the main
	window was iconified.

	* Makefile.in:
	remove a mysterious 0240(nbsp) character that got in at some point.

	* gui.c: (a) sort out bugs in the new tiletip implementation.
	(b) fix bug in option reading (IconifyDialogs).

2002-01-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* FILES-src: oops -- add vlazyfixed

	* xmj.man: tiletips shown for selected tile when "always".

	* gui.c:
	(a) Make tiletips of mouse and selected tile interact correctly.
	(b) Don't install toggle callback on non-toggles!

	* gui.c: fix bug in get_relative_posn.

	* gui.c: Changed tiletips into children of boarfixed.
	Unfortunately, this has exposed a bug in get_relative_posn, sigh.

	* gui.c:
	If tiletips always shown, show the tiletip of the selected tile.

	* gui.c: Remove the top_window visibility tracking. No longer needed,
	since now there are no more independent popups/animations to suppress.

	* gui.c: Make the claim windows descendants of the main window as well.
	(The positioning is no longer quite perfect, since I'm not bothering
	to reposition them for Mah Jong!, but just doing it once on Pung!.
	Never mind.)

2002-01-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in, gui.h, gui.c:
	Introduced the vlazy_fixed widget, and used it to finally fix up
	animation so that the floating animations are part of the display
	window instead of being independent.

	* vlazyfixed.c, vlazyfixed.h: *** empty log message ***

	* MANIFEST:
	Introduced the vlazy_fixed widget, and used it to finally fix up
	animation so that the floating animations are part of the display
	window instead of being independent.

2002-01-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: Really 1.3

	* protocol.h: game opt optnat field should be unsigned

	* greedy.c: suppress a warning on really picky compilers

	* sysdep.h: define socklen_t for windows

	* sysdep.c: hpup fix and warning suppression

	* CHANGES: 1.3 (hopefully...)

	* ChangeLog: 1.3, I  hope.

2001-12-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* README: add PATH reminder

	* MANIFEST: credit for arabic tiles

2001-12-28  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.h: try to remove warning in hpux

	* xmj.man: note that left/right accelerators don't work under Windows.

	* gui.c: vis_callback only works under X.

2001-12-27  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: Add some example LDLIBS settings.

	* gui-dial.c, player.c, controller.c, gui.c:
	Make sure all functions pre-declared as static are then
	declared as static, to suppress warnings on HP compiler.

2001-12-26  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* make-release:
	Add -Wl,--noinhibit-exec to link options for static xmj.
	This is because in order to get arrow key accelerators we are
	redefining a symbol in libgtk.a, and normally ld will consider that an
	error.

	* MANIFEST: Add tiles-numbered

	* ChangeLog, CHANGES: 1.3pre1

	* gui-dial.c: close button takes focus in scoring window

	* gui.c, gui-dial.c, xmj.man:
	IconifyDialogs not supported under Windows.

	* gui.c: eliminate warnings

2001-12-24  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: Don't try the X-specific (un)iconify stuff.

	* sysdep.c: start_background_program_with_io for Windows.

	* sysdep.h: comment update

2001-12-23  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c, gui.h, gui-dial.c:
	fix dialog_popup: wasn't handling CentredOnce etc. correctly!
	Also, open_dialog wasn't being closed with saving_posn.

	* gui-dial.c, gui.c, gui.h, xmj.man:
	Implement the IconifyDialogs display option.

	* gui.c: avoid animating or popping up claim windows if the top window
	is unmapped or obscured. (Unfortunately, this still doesn't
	seem to cover the case of the window being offscreen, but I'm
	not sure I can be bothered to do anything about that.)

	* gui-dial.c: fix accelerator key for save as...

2001-12-17  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: make version.h no longer depend on version.h.in .

	* make-release: remove version.h before making it.

2001-12-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: suppress warning

	* scoring.c: remove a warning

	* controller.c, gui-dial.c: remove multi-line string literals

2001-12-09  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* README: add tiles-numbered

	* FILES-binary, FILES-src: Add tiles-numbered

2001-12-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: wall tiles should not take focus.

	* xmj.man: document menu accelerators

	* gui-dial.c:
	Add accelerators to menu, and have start button take focus
	in menus.

	* sysdep.c: Add the start_background_program_with_io function.
	However, the Windows version is entirely unchecked, and
	may not even compile. Check it at the office.

	* sysdep.h: Add start_background_program_with_io

	* gui.c: Use the new server output feature to detect when it's started,
	and reduce the sleep times to speed up game starting.

	* controller.c: change output to OK: address or FAILED: reason

2001-12-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	print the successful socket (as a valid --address argument)
	on stdout as Socket: socket. If fail, print Socket: -1.

	* gui.h: Add a game extras struct

	* gui.c: Change dead wall positioning so that it's always determined by
	the original start of the dead wall.

	* xmj.man:
	document keyboard accelerators and change of Done to Finished
	in scoring dialogue.

	* gui-dial.c: add keyboard accels to scoring dialog;
	change "done" to "finished".

2001-12-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: Add accelerators to chow dialog

	* gui.c: fix behaviour of arrow keys when no tile selected

2001-12-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: add accelerators to ds dialog

	* gui-dial.c: add accelerators to turn dialog

	* gui-dial.c: Add accelerators for the discard dialog.

	* gui.c: move include gdkkeysyms to gui.h

	* gui.h: include gdkkeysyms

	* gui.c:
	Implemented, with extreme difficulty owing to GTK's arrogant ideas
	about what you're allowed to do, left/right arrow keys for tile
	selection changing. We're now dependend on gtk sources... yech.

2001-12-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* scoring.c, xmj.man:
	Add ConcealedFully, ConcealedAlmost and LosersPurity game options and
	implement their scoring.
	Change All Honours and All Terminals to get All Majors also.

	* game.c:
	Add ConcealedFully, ConcealedAlmost and LosersPurity game options.

	* protocol.h:
	Add ConcealedFully, ConcealedAlmost and LosersPurity game options.
	Increase protocol version to 1032.

2001-12-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.h: Add sys/time.h back again, for gettimeofday.

	* gui.h, gui-dial.c, gui.c, xmj.man, greedy.c:
	Add --name for mj-player (which was supposed to be there all along),
	add entries for it in the new game panel, and add display options
	to give defaults for it.

2001-11-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.h: use time.h instead of sys/time.h

2001-09-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: 1.2.3

	* gui.c: Aaargh! Was clearing discard_history in the wrong place! So it
	wasn't getting cleared at all.


2001-09-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog:
	This really is release 1.2.2, unless something else goes wrong.

	* gui.c: Copy pref_showwall from --[no-]show-wall option.

	* xmj.man: Show-wall display option now has immediate effect.

	* CHANGES: 1.2.2 really: includes display option changing.

	* gui.c: when recreating topwindow, put it where it was.

	* gui.c: handle discard placement when recreating display.

	* gui.c: display rebuilding now handles wall.

	* gui.c: display recreation handles players and dialogs.
	Now for wall and discard...

	* ChangeLog: includes changes not in 1.2.2

	* ChangeLog: for 1.2.2

	* CHANGES: new date for 1.2.2; maybe finally got it right.

	* sysdep.h: include unistd.h in windows as well.

	* gui.h, gui-dial.c, gui.c:
	Checkpoint: moved display creation into separate function,
	made destroy function, remake display when options change.
	But still need to handle redisplay of players, discards and
	dialog setup.

	* client.c: client_close should set g->fd to invalid

2001-09-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui-dial.c, gui.c:
	Checkpoint: moved display creation into separate function,
	made destroy function, remake display when options change.
	But still need to handle redisplay of players, discards and
	dialog setup.

	* client.c: client_close should set g->fd to invalid

	* Makefile.in: Use NULL for tileset path, for Windoze.

2001-09-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: remove quotes wrong for Windows

	* ChangeLog, CHANGES: 1.2.2

	* gui.h, gui-dial.c, gui.c, xmj.man:
	Add Tileset and Tileset Path display options to gui.

	* Makefile.in: Change for TILESET(PATH)

	* xmj.man: Remove --tilepixmapdir, replace by
	--tileset and --tileset-path .

2001-08-21  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog, CHANGES: for 1.2.1

	* README: change donation text.

2001-08-19  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* scoring.c:
	fix bug in filling only place (was counting claimed discard as
	an exposed tile when calculating "all exposed").

	* game.c: the game_draw/peek_tile functions must return error if
	the live_used is >=, not just ==, the live_end, because
	the draw_loose_tile assumes this (with the non-Millington dead wall).

	* controller.h: hike number of history els to 1024

2001-08-15  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c, xmj.man: Remove --tilepixmapdir, replace by
	--tileset and --tileset-path . (NOT IN 1.2.1.)

2001-08-11  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in: make version.h if not there.

2001-08-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* version.h.in: *** empty log message ***

	* ChangeLog, CHANGES: For 1.2

	* version.h: File deleted.

	* make-release: put version in version.h

	* version.h: have version subbed in by make-release.

	* controller.c:
	Add the hack for dumping history of hand by second save state request.

2001-08-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-encode-msg.pl, gui.c, game.c, controller.c, greedy.c, protocol.c, protocol.h:
	Add CMsgComment (with hacks to give it code #); protocol version to
	1030.

	* xmj.man: Update for new features.

	* gui-dial.c, gui.h, controller.c, gui.c:
	Add --save-on-exit to server and gui panel.

2001-08-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: remember to initialize the game extras structure.

2001-07-31  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c, gui.c, gui.h: Add Resume game... entry to Game menu.

	* controller.c: Add --no-id-required option.

	* controller.c: fix game loading.

	* gui.c, gui.h, gui-dial.c: Add Save as... menu entry to Game menu.

	* controller.c: More intelligent choice of default save file name:
	previous explicit name, failing which:
	file given by --load-game option, failing which:
	game-DATE-SEQ up to seq of 9.

2001-07-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c: Popup notice when state saved.
	Add save option to connect menu.
	Rename Connect menu to Game.

	* controller.c: Take notice of the filename in SaveState, and return
	a StateSaved message.

2001-07-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c, controller.c, game.c: Handle CMsgStateSaved.

	* gui.c: Handle (by doing nothing) CMsgStateSaved.

	* protocol.h: Add filename field to PMsgSaveState.
	Add CMsgStateSaved.

	* Makefile.in: add EXTRA_CFLAGS for command line use.

	* controller.c:
	On resumption, feed the history to all reconnecting players at once,
	rather than one after the other.

	* controller.c:
	implemented restoring of game state (via --load-game option),
	though file name is currently ignored.

	* game.c:
	handling CMsgWall: load until MAX_WALL_SIZE or end of message.
	(game.wall.size is actually set at NewHand, not before).

	* game.c: set options from default when handling a Game CMsg,
	rather than clearing them.

	* controller.h, controller.c:
	Adjusted save_state so that it doesn't save completed hands any more.
	Added prehistory to game structure so we _can_ save a completed hand
	if we want to later.

2001-07-28  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: implemented game saving again.
	Next: loading it!

	* sysdep.h, sysdep.c: Add fd_put_line and fd_get_line.

	* gui.c, game.c, controller.c, greedy.c: Handle CMsgWallMsg.

	* protocol.h: Add CMsgWallMsg. Inc pversion to 1025 during development.

	* controller.h, controller.c:
	Get rid of player histories, and just keep a single
	game history.

2001-05-17  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man: New major version starting at 1.1 release

	* xmj.man: remove mistaken backslashes

	* CHANGES: 1.1 really (slightly more human text)

	* tiles.h, version.h, proto-encode-msg.pl, protocol.c, protocol.h, runtest, scoring.c, scoring.h, stats, sysdep.c, sysdep.h, tiles.c, make-release, makedep, makefallbacktiles, makefile.msvc.old, maketxt, mj-player.man, mj-server.man, player.c, player.h, proto-decode-msg.pl, gui-dial.c, gui.c, gui.h, iconres.rs, lazyfixed.c, lazyfixed.h, logstats, make-enums.pl, controller.h, game.c, game.h, greedy.c, ChangeLog, FILES-binary, FILES-src, LICENCE, MANIFEST, Makefile.in, README, client.c, client.h, controller.c:
	New major version starting at 1.1 release

	* version.h: Version 1.1

	* CHANGES: Change for 1.1

	* ChangeLog: Changes up to 1.1

	* gui.c: Tidy; remove the .xmjrc.new file after using it.

	* sysdep.c: Back out last change (socklen_t not defined in windoze).
	Add unlink() for windoze.

	* sysdep.h:
	Add a defn for unlink() in Windows (provided by mingw anyway, but
	we prob shouldn't assume that).

2001-05-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* README: typo

	* sysdep.c: use socklen_t where appropriate

	* gui-dial.c: remove superfluous semi-colon

	* sysdep.h, sysdep.c: Add get_homedir.

	* gui.c: Use get_homedir.

	* game.c: don't use uint; not always defined.

2001-05-15  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man: fix error in proto desc

	* protocol.c:
	Skip leading white space when reading game option entry description
	field.

	* make-release:
	Change mj-*-static.tar to static-mj-*.tar in a desperate attempt
	to stop	the idiots who download the static version unnecessarily.

2001-05-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: change wording

	* maketxt: fixed a bug or two, and add clause for my game option macro.

	* xmj.man: Documented all the game options.

2001-05-13  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c: Add nagware.

	* protocol.h: remove old comment.

	* gui.c: update sequence number in stdin callback

	* client.h, client.c:
	client_send_packet maintains and returns packet sequence number.

	* game.h: Add cseqno field for client_ routines.

	* controller.c: was wrongly incrementing sequence number twice

2001-05-11  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: During kong, always query for Mah Jong. (It's possible for
	player_can_mah_jong(..,0) to be true, but for us not to be able
	to go out, because of minimum double requirements.)

	* xmj.man: Change DisplayOption to XmjOption.

	* gui.c: (a) make last change work (shd compile before checking in...)
	(b) Change DisplayOption to XmjOption.

	* gui.c: Don't put up the kong claim window until we know we need it.

	* gui.c: remove incorrect guard in canmahjong answer clause
	(has no id).

2001-05-10  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.h, game.c, scoring.c: Add MahJongScore option.

2001-05-08  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man: Documented changes to xmj.
	Next, document game options.
	(And possible player strategy options.)

	* controller.c: Don't make robot players managers.

	* gui.c, gui-dial.c:
	Only apply game preferences/options when allowed to.

	* controller.c: Set the game manager to be the first player to connect.

	* gui-dial.c:
	Initialize new game timeout option entry from preference table.

	* gui.h, gui.c, gui-dial.c:
	Add showwall preference to display options panel.

	* gui.c, gui-dial.c:
	Use player names in scoring window tabs, and make homogeneous tabs.

	* xmj.man: remove old mj-player option example.

	* xmj.man: update mj-server options.

2001-05-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: Make all buttons on prefs panel close window.

	* controller.c: Add --option-file argument.

	* greedy.c: Make sure to get the game options.

	* protocol.h, gui.c, game.c: Add DeadWall option.

	* game.c: Bug fix: game_set_option_in_table was not correctly setting
	options with unknown codes.

	* protocol.h, controller.c, game.c, gui.c:
	Make dead wall type option DeadWall16 (Millington) rather than
	DeadWall14 (non-Millington).

2001-05-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* lazyfixed.h, lazyfixed.c:
	Now only overrides the remove method of fixed, as this seems to
	suffice to eliminate flicking. Don't ask me why.

	* gui.c: Changed all the lazy calls back to fixed, since we've made
	lazyfixed inherit all the external methods of fixed.

	* lazyfixed.c:
	It seems that it's only the remove method that causes flickering.
	That should mean we can use all the supplied methods.

	* gui.c: remove now unnecessary resize on discard_area

	* game.c: game_handle_cmsg should ignore NoClaims for old discards!

	* FILES-src, MANIFEST: Add the lazyfixed.[ch] files.

	* Makefile.in: Add the lazyfixed widget to the Makefile.

	* gui.c, gui.h: Use my own lazyfixed widget for the discard area.
	This reduces (eliminates!) flickering in the wall.

	* lazyfixed.c, lazyfixed.h: New file.

	* controller.c: Have DeadWall14 as default when enabled.

	* gui.c, gui.h, gui-dial.c: Add tiletips display option.
	Current game options... menu entry only sensitive during game.

2001-05-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.h, game.c, scoring.c, gui.c: Add DeadWall14 option.

	* protocol.h, game.c, controller.c: Add FlowersLoose option.

2001-05-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c, gui.c:
	make declaring option dialog handle Flowers option.

	* game.c: make game_get_option_value handle null game.

	* protocol.h, controller.c, game.c: Handle the Flowers option.

	* gui.c: Display now handles walls smaller than the maximum.

2001-05-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c, gui.c:
	Use wall.size field of game struct instead of 144.

	* gui.c, gui-dial.c, game.c, game.h, controller.c, scoring.c, greedy.c:
	Unpack the internal info struct in the game struct; just have
	fields directly in the main struct.

	* game.h, game.c, controller.c:
	Remove the superfluous discard_serial field from the game struct.

	* gui.c: Remove a fixed FIXME comment.

	* game.c, game.h: Add wall.size field to game struct.

	* tiles.c: replace 144 by MAX_WALL_SIZE where appropriate.
	And add includespecials arg to random_tiles.

	* controller.c, tiles.h: Add includespecials arg to random_tiles.

	* game.h: replace 144 by MAX_WALL_SIZE where appropriate.

	* protocol.h: Add a MAX_WALL_SIZE define.

2001-05-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: Query all options on getting game message, instead of
	just querying timeout on connect.

	* controller.c:
	GameOption and PlayerOptionSet messages should not go into
	the history.
	Clients must always query/set.

	* game.c: And make handle_cmsg clear the option table on GameMsg, not
	copy from default.

	* game.c, game.h: add game_clear_option_table

	* gui-dial.c: more slight improvs to prefs panel.

	* gui.h, gui-dial.c, gui.c:
	Handle rcfile reading better: changed spec and name of
	read_or_update_rcfile.

	* gui-dial.c: Improvement to prefs panel.

	* scoring.c: rationalize the own flower/season scoring a bit.

	* gui.c: make showwall global; remove the tilesleft label, which is
	now done in the dialogs.

	* gui.h: Make showwall global.

	* gui-dial.c:
	When not showing the wall, put the tiles left in the dialog labels.

	* gui.c: Add a tilesleft indication when not showing the wall.

2001-04-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	Add some protection against flooding: call the timeout handler
	if the timeleft goes negative.

	* gui.c: Handle querying of mj after kong properly (was getting
	into loop).

	* gui-dial.c: Don't put disabled options in the game options panel.

	* protocol.h, game.c: Add Flower scoring options.

	* scoring.c: Implement Flower scoring options.
	(And add parens round score arg in doscore.)

	* scoring.c: Use GOSevenPairsVal for scoring.

	* gui-dial.c: In option panels, make reset sensitive only on change.

2001-04-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* proto-encode-msg.pl:
	If a (char *) arg starts with a space, escape it with backslash.

	* gui.c: Call expand_protocol_text on scoring and settlement messages.

	* scoring.c:
	Rationalize the scoring code; it's now set up to take GOTScore values.

	* player.c: get rid of qsort, and use bubblesort instead.
	Doesn't actually make a huge difference, around 8%.

	* protocol.c: increase buffer sizes.

2001-04-28  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c, scoring.c, greedy.c, game.c, game.h:
	Change the names of the option entry returning functions to make
	it clear what they return; add game_get_option_value to get
	a value from a game without fuss.

	* gui-dial.c: Change Score type in option dialog to allow half limits.

	* protocol.h: Changed defn of Score type to have centi-limits.

	* protocol.h, game.c: Add SevenPairsVal option.

	* gui-dial.c:
	Simplify game option panels: don't show current value separately.

	* player.h: Change player_can_mah_jong to take flags indicating certain
	special hands are allowed; flags given (as bits) by MJSpecialHandFlags
	enum.

	* gui.c: Handle change to player_can_mah_jong spec.

	* greedy.c: Handle SevenPairs.
	(Don't try to get it, but don't pass it up if it just happens.)

	* client.h, client.c:
	Handle special sets in mah-jong; change to spec of client_find_sets.

	* player.c:
	Handle seven pairs. Required change to spec of player_can_mah_jong.

	* protocol.h: Add SevenPairs game option.

	* controller.c: Handle SevenPairs.

	* game.c: Add SevenPairs game option and handle it.

	* scoring.c: Handle scoring for seven pairs.

	* game.c: Correct types of option function args.
	And optimize option lookup.

	* game.h: Correct types of option function args.

	* gui.c: Ask server about ability to mah-jong, when robbing kongs.

	* gui-dial.c: change style of prefs panel a bit

	* gui.c: clear game option dialog on new game.

	* scoring.c: Implement the ScoreLimit and NoLimit options.

	* game.c: Add game_copy_option_table.

	* gui.h: Implement game preferences panel.

	* game.h: Add game_copy_option_table.

	* gui.c, gui-dial.c: Implement game preferences panel.

2001-04-18  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.c, gui-dial.c, controller.c: Add the GOTNat option type.

	* game.c:
	Add the GOTNat option type; add ScoreLimit and NoLimit options.
	Change Timeout to Nat.

	* protocol.h:
	Add the GOTNat option type; add ScoreLimit and NoLimit options.

2001-04-09  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c:
	More work on option dialog: reset button for each entry,
	and global update button. Make it update over creation and killing of
	game.
	This is awful mess. Make it properly OO sometime.

2001-04-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c, gui.h, gui-dial.c:
	Game option panel basically in place. Now add some options
	and test it.

	* gui.c: Have --size default to 17, not 18, for 800x600.
	(for 1.0.4, included now in devel version so I don't forget.)

	* CHANGES: 1.0.4 changes

	* gui.c: Have --size default to 17, not 18, for 800x600.

	* gui.h, gui-dial.c: checkpoint

	* scoring.c: Bug fix: was always giving 2 for fishing the eyes, instead
	of 4 for a major pair.

2001-04-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c: give unknown option null name in default table,
	and infinite protocol, so always disabled.

2001-04-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui-dial.c: checkpoint while implementing game option dialog

	* game.c: fix warnings resulting from last change

	* game.c, protocol.c, protocol.h:
	add a userdata field to GameOptionEntry

	* MANIFEST, FILES-src: add icon files

	* Makefile.in: add stuff for Windows icon resource.

	* iconres.rs: New file.

2001-04-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: checkpoint; adding game option setting...

2001-03-31  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c, controller.c, game.h:
	Introduced struct for option table, and changed game accordingly.
	Added functions to get/set options in tables.

2001-03-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui-dial.c, gui.c: Saving of display options done.

2001-03-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: Basic rcfile reading for display options in place.

2001-03-23  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c:
	added a little defensiveness: slight reluctance to discard to
	the right player. Makes a small (not sig) improv.

2001-03-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: pop down turn dialog at handcomplete (for washouts).

2001-03-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	Add animation to the display options panel. (And fix bug.)

2001-03-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c:
	Added the Options menu, and the display options panel,
	which allows switching dialog posns.
	There are bugs when the program starts with -below and then
	one switches to -central, but I don't think these are mine;
	I can't be bothered to track down the gtk bugs.

2001-03-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: hide discard dialog at start

	* gui.h, gui-dial.c, gui.c:
	move dialog (dependent on --dialog-XXX) creation into single function

2001-02-26  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: 1.0.3

	* CHANGES: 1.0.3 changes

	* gui.c: add read_rcfile stub

	* gui-dial.c:
	Oops. Positioning in dialogs-below has been broken for some time.
	Now fixed.

2001-02-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: added --wallfile option to load wall from file.

2001-02-11  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Makefile.in:
	remove warnings and optimizations from production code makefile

	* xmj.man: Add server --seed option.

	* CHANGES: --seed server option.

	* ChangeLog: 1.0.2

	* CHANGES: 1.0.2 changes

	* greedy.c:
	If check_discard called while declaring specials, it's to try
	robbing a kong. In fact, the players would cope correctly with
	this situation anyway, but that was by accident!

2001-02-10  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* version.h: release 1.0.2

	* gui.c:
	Fix bugs in handling of kongs declared while declaring specials.

	* controller.c:
	Fix bugs in handling of kongs declared while declaring specials.
	Was not drawing a loose tile for the declarer! Also,
	must allow claims, since theoretically possible to rob such kongs.

	* game.c:
	Fix bugs in handling of kongs declared while declaring specials.
	(Must allow claims, since theoretically possible to rob them.)

	* scoring.c: Correct the detection of Heaven's/Earth's Blessing.
	Was relying on discard_serial, which would be incremented
	by kongs declared in the initial phase. Now use the player
	NoDiscard flags.

2001-02-09  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: correct GPL name; extend copyright date.

	* LICENCE: Correct name of GPL.

2001-02-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* runtest: Add various useful options.

	* greedy.c:
	further extensive simplification; several really stupid bugs fixed;
	extensive tuning. It is now definitely better: 1-2 sd better than
	10.21, and 4sd better than release 1.0.
	Details of intervening changes are in StuffToKeep.

2001-01-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: Make sure that the caller slot is correctly filled even
	in the case of Heaven's Blessing (to avoid warning from
	scoring module).

	* controller.c:
	provide a --seed  option to seed the random number generator.

	* runtest:
	Use a fixed series of games, given by initial seed 101, and then
	incrementing for each game.

	* greedy.c:
	This is an almost complete restructing of the strategy code.
	The same basic ideas are used, but now they are controlled
	at user level by a smaller number of orthogonal (more or less)
	parameters, which then generate the old-style parameters.
	This is (will be) now documented, as it works well enough
	to let people use it.
	This rewrite was done on another system; the history of the
	changes is in the separate file greedy.c-10.20-10.21,v
	in the StuffToKeep directory.

2001-01-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.h, sysdep.c: add rand_seed

	* version.h: 1.0.1

2001-01-28  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* CHANGES: 1.0.1

	* ChangeLog: for 1.0.1

	* xmj.man: correct when scoring info window appears

	* greedy.c:
	more fiddles. This file has been transferred to the big pc for
	experimentation.

2001-01-27  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c: This does OK compared to the 1.0 release. (The same.)
	It's overly keen on no score hands (more than 25%), and not
	quite keen enough on concealed hands.
	Now strip out the old stuff.

2001-01-26  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* logstats: helps to count Limit hands as wins...

	* protocol.c: add variable for use by switch code.

	* proto-encode-msg.pl:
	allow bad entries in bool fields of incoming structures; treat as
	TRUE, to match normal C practice.

	* greedy.c: This did reasonably, but is still very chow-biased.

	* game.h: game_flag should return a boolean.

	* greedy.c: checkpoint on the way to revising.
	This currently does very badly (-5s.d.).
	It no-scores more often, but gets no-chows less often,
	never gets concealed (why not?), and wins less often, and has a lower
	score when not winning.
	See last results of 2001-01-25.

2001-01-25  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	wasn't setting discard field of DangerousDiscard message.

	* logstats: Add one suit counting.

2001-01-22  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* make-release: Include -lXi in static build arguments.
	Exit if static build fails.

	* gui.h: <errno.h>, not "errno.h"

	* gui-dial.c:
	The scoring info window needs to be a bit bigger on Windows,
	as the font one gets by default is bigger.

	* controller.c:
	Must allow querying game options while game is suspended
	(so that clients can get the timeout on startup).

	* client.c: include system assert.h, not local.

	* Makefile.in: A few changes to make it more Windows-friendly.

	* gui.c: Move the big font loading to be with the fixed font loading.

	* CHANGES: changes for 1.0

	* ChangeLog: Update for release.

	* greedy.c: rcs_id and version.h

	* scoring.c: rcs_id

	* controller.c: rcs_id and version.h

	* sysdep.c, game.c, protocol.c, tiles.c, player.c, client.c: rcs_id

	* index.html: Update for release.

	* xmj.man: Add the discard timeout selector in new game.

	* README: note about makefile.msvc.old

	* FILES-src, MANIFEST: Add makefile.msvc.old

	* makefile.msvc.old: *** empty log message ***

2001-01-21  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: handle tile selection at mah jong a bit better

	* gui-dial.c: handle timeout progress bar better

	* gui.c: Query the game timeout option after connect.

	* controller.c: Set timeout game option from command line.

	* gui.h: add timeout selector to new game.

	* protocol.c, game.c, sysdep.c: suppress uninitialized variable warning

	* gui-dial.c, gui.c: add timeout selector to new game.
	Suppress uninitialized variable warning.

	* controller.c, scoring.c: suppress uninitialized variable warning

	* README-binary: file deleted ; README has everything now.

	* FILES-binary: Only one README file now.

	* README: Updated for Makefile only, and include binary info.

	* Makefile.in: Tidied it up and commented it.
	Call with Win32=1 to compile under windows.

	* make-release: more windows; and full release.

	* make-release: good idea to include the binaries...

	* make-release: windoze uses zip

	* make-release: Cope with Windows, and add -norcs option.

	* FILES-binary: don't include tiles-v1 in binary distribution

	* make-release: if no RCS directory, build from existing files

	* make-release: make static release only for linux

	* Makefile.in: fbtiles now depends on Makefile, not Imakefile

	* MANIFEST, FILES-src: add version.h

	* make-release: Change from Imakefile to Makefile.in

	* gui.c: rcs_id

	* gui.h: include version.h

	* gui-dial.c: version and rcs strings

	* version.h: *** empty log message ***

	* MANIFEST: Imakefile/Makefile changes

	* FILES-src: delete Imakefile; add Makefile and Makefile.in

	* Imakefile:
	don't use imake; it's just too unlikely to be correctly installed.

	* Makefile.in: *** empty log message ***

	* make-release: use the make-release of the appropriate release

	* MANIFEST, FILES-src: add makedep

	* makedep: *** empty log message ***

	* sysdep.c: make warn() add terminators intelligently

	* controller.c, game.c: ANSIfication

2001-01-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* sysdep.c: Numerous changes to accommodate Windows:
	warn adds appropriate terminator.
	headers included appropriately.
	Socket routines redefined: use a type SOCKET, which in Windows
	is provided, and in Unix typedef'd to int;
	the error code is INVALID_SOCKET, not -1;
	the routines can be given functions to use to transform sockets,
	and to read/write/close the results (used by the gtk code);
	Unix socket domain ifdef'd out for Windows;
	get_line returns error if any read fails;
	new routine to start background jobs;
	Windows emulation for some Unix library routines.

	* README: Change Windows stuff

	* xmj.man: change --randomseats to --random-seats.
	Change quick start to use xmj menu.

	* controller.c:
	type tidies; one or two leftovers of restructuring fixed.
	Change --randomseats to --random-seats.
	Allow - to mean stdout for logfile.

	* client.c: use sysdep's close_socket to close.

	* greedy.c: type and brace tidies

	* gui.c: clear wall in appropriate places.
	load two fonts and use appropriately.
	type tidies.
	In Windows, need to intercept sockets and turn them into glib
	channels, and tell the socket routines to use appropriate functions to
	access them.
	display message while game suspended.
	use sysdep's start_background_program instead of doing it in Unix.
	use strerror instead of sys_errlist.
	adjust_wall_loose() always returns a valid pointer (or
	alternatively all uses of it would have to check; former was easier).

	* gui-dial.c: Some type tidies.
	Increased pbar_timeout interval to 50 ms.
	Display a message while a game is suspended.
	Fix bug in New Game dialog: wasn't matching button to sensitivity of
	options.
	Load the two fonts (fixed and big) in main routine, for use elsewhere.
	Don't show Unix options in connect window when on Windows.

	* gui.h: added global variables for the two fonts used

	* sysdep.h: Numerous changes to accommodate Windows:
	warn adds appropriate terminator.
	headers included appropriately.
	Socket routines redefined: use a type SOCKET, which in Windows
	is provided, and in Unix typedef'd to int;
	the error code is INVALID_SOCKET, not -1;
	the routines can be given functions to use to transform sockets,
	and to read/write/close the results (used by the gtk code);
	Unix socket domain ifdef'd out for Windows;
	get_line returns error if any read fails;
	new routine to start background jobs;
	Windows emulation for some Unix library routines.

	* tiles.c: couple of type tidies

2001-01-16  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Imakefile: a few tidies

2001-01-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c: ansification

	* controller.c:
	restructured the connection book-keeping so that sockets are
	no longer assumed to be small integers. (So things will work
	on Windows.)

	* sysdep.c, sysdep.h: checkpoint on the way to windows

2001-01-13  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* protocol.h:
	up the protocol version to 1010 to mark the change in kong/flower
	rules (we now agree with the rest of the world in only allowing them
	after drawing from the wall).

	* game.c:
	reinstate the old rule (allow kong etc after claiming discard)
	for old protocol versions.

2001-01-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* Imakefile: further warning fiddling

	* proto-encode-msg.pl, controller.c, scoring.c, greedy.c: ansification

	* tiles.c: remove superfluous ;

	* gui.c: ansification

	* tiles.c, tiles.h: change type of make_tile

	* Imakefile: more vicious warning options.

	* sysdep.h, gui.c, gui.h, player.c, controller.c, greedy.c:
	prototype/static fixes.

	* gui-dial.c: (a) prototype fixes
	(b) wasn't using right function to close error messages.

2001-01-06  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c: tried to make evaluation of singletons better.
	No effect, save to reduce scores a bit and slightly increase frequency
	of winning. Time to stop fiddling.

2001-01-05  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c:
	on second thoughts, don't raise the scoring window at settlement.

	* gui.c:
	Raise the scoring info window on settlement, not on first score.
	(This apparently makes it more friendly for Windows users.)

	* gui-dial.c:
	showraise also does a gtk_window_show to force uniconification.

	* gui-dial.c:
	Fix the progress bar timeout; stops the Mah-Jong claim window suddenly
	disappearing!

	* greedy.c:
	This is as 10.9, but only considers changing strategy after drawing
	from the wall. It gives a semi-significant improvement (1.8sd), mainly
	by winning more frequently. It seems to get the concealed hand less
	often.

2001-01-04  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	stupid bug in score_hand meant that cannon detection was failing.
	(was changing s, but left p over from previous s).

	* greedy.c:
	this has the supposedly better principle of working out the discard
	before claiming. It didn't work well, so tried hiking expc penalty,
	and explicitly banning discard of claimed tile.
	After this, go back to previous, and try the simple fixes.

2001-01-03  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c: (a) restructured code, preparatory to changes.
	(b) Put a small exposure penalty in the fast strategy.

	* xmj.man: Document the new Connect menu.

	* runtest: add --no-special-scores to server options.

	* xmj.man:
	Add the mj-server no-special-scores option to suppress flower/season scores.

	* controller.c:
	Add the no-special-scores option to suppress flower/season scores.

	* scoring.h, scoring.c:
	Add the no_special_scores variable to suppress flower/season scores.

	* greedy.c: change concealed partchow to match others. Seems to make no
	difference.

2001-01-02  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* runtest:
	put evals into the player execution commands so that redirections
	can be included.

2001-01-01  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c:
	(a) Only switch to fast when opponent displays four sets (not three).
	    Not very significant (1sd), but seems harmless.
	(b) remove old stuff.

	* greedy.c:
	Various fixes to response logic so that it doesn't try to do things
	twice.

	* game.c:
	Amazingly enough, game_handle_cmsg was in most cases not actually
	returning the correct affected id.

	* greedy.c:
	Don't claim mah jong on a concealed hand if we still have a reasonable
	chance of picking up the tile. (Need to take account of the number
	of tiles left to make this more accurate.)
	This does about 1.8 sd better than 10.4.

	* greedy.c: correct erroneous comments

2000-12-31  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.h, gui.c, gui-dial.c:
	Basic new game panel now working. Now tidy it, capturing
	children diagnostics etc.

	* sysdep.h, sysdep.c:
	connect_to_host: mark the connection close on exec.

	* gui-dial.c:
	checkpoint: added fields etc to open panel for starting game.

2000-12-30  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* greedy.c: remove the easy switch back to default; treat as others.

2000-12-29  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* runtest: put date in results file

	* game.c: set discard_serial to one, as the controller did.

	* controller.c:
	controller was doing things that should have been done by processing
	a newhand message. There's still more to do on this.

2000-12-27  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* game.c: Set info.whence to FromWall at start of play.

	* greedy.c: trying to avoid scoring pairs in chow hands

	* greedy.c:
	make kong declaring rules match M: only after drawing from wall.

	* greedy.c: trying to avoid scoring pairs in chow hands

2000-12-26  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c: State saving is broken, so don't try to do it.

	* xmj.man, controller.c: Add  --exit-on-disconnect  server option.

	* gui-dial.c: add an "about" window.

	* xmj.man, scoring.c: Cut bouquets down to one double.

2000-12-25  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* ChangeLog: update; strip out stuff before the pre-release.

	* game.c: CMsgSpecialSetMsg wasn't adding the discard when checking for
	existence of the set!

	* gui-dial.c: Use new tilesetbox_init function.

	* gui.c: Several changes to fix robbing kong bugs:
	(1) use new tilesetbox_init function to create all widgets in
	    initialization, rather than on the fly; associated changes to
	    tilesetbox_set;
	(2) playerdisp_update_exposed must be able to handle a closed kong
	    being robbed;
	(3) when forming a special set, the destination tile is found in
	    the concealed tiles, not the exposed.

	* gui.h:
	Stripped func out of tilesetbox, and added tilesetbox_init function.

	* game.c: allow closed kong robbing for thirteen wonders

	* xmj.man: clarifications

	* xmj.man:
	make kong declaring rules match M: only after drawing from wall.

	* game.c:
	Make rules match the rest of the world: specials and kongs can
	only be declared after drawing a tile from the wall, not after
	taking a discard.

2000-12-23  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* controller.c:
	The send_infotiles function was sending the message to all players
	depending on the option of the affected player, instead of depending
	on their own option setting.

2000-12-21  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* xmj.man: fix some slips in option argument typog

	* gui.c: showwall should start undetermined

2000-12-20  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui-dial.c:
	fix the radio group functionality in the concealed buttons.
	This is not concurrency-safe: it relies on induced callbacks being executed
	synchronously. I should fix this.

2000-12-17  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* gui.c: clear discards on game over

2000-12-14  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* make-release: replace - by _ in symname

	* index.html: update for beta release

2000-12-07  Julian Bradfield  <jcb@dcs.ed.ac.uk>

	* stats, runtest, logstats: increase version to 10 for post release

	* xmj.man, tiles.h, tiles.c, sysdep.h, sysdep.c, scoring.h, scoring.c, protocol.h, protocol.c, proto-encode-msg.pl, proto-decode-msg.pl, player.h, player.c, mj-server.man, mj-player.man, maketxt, makefallbacktiles, make-release, make-enums.pl, gui.h, gui.c, gui-dial.c, greedy.c, game.h, game.c, controller.h, controller.c, client.h, client.c, README-binary, README, MANIFEST, LICENCE, Imakefile, FILES-src, FILES-binary:
	1.0 pre-release

[ removed older stuff ]