Root/bsd-games/patches/004-backgammon.patch

1diff -ur bsd-games-2.17/backgammon/backgammon/extra.c bsd-games-2.17-p/backgammon/backgammon/extra.c
2--- bsd-games-2.17/backgammon/backgammon/extra.c 2003-12-17 05:47:37.000000000 +0300
3+++ bsd-games-2.17-p/backgammon/backgammon/extra.c 2011-02-15 11:22:28.988058843 +0300
4@@ -30,13 +30,13 @@
5  */
6 
7 #include <sys/cdefs.h>
8-#ifndef lint
9+/* #ifndef lint
10 #if 0
11 static char sccsid[] = "@(#)extra.c 8.1 (Berkeley) 5/31/93";
12 #else
13 __RCSID("$NetBSD: extra.c,v 1.5 2003/08/07 09:36:55 agc Exp $");
14 #endif
15-#endif /* not lint */
16+#endif */ /* not lint */
17 
18 #include "back.h"
19 #include "backlocal.h"
20diff -ur bsd-games-2.17/backgammon/backgammon/main.c bsd-games-2.17-p/backgammon/backgammon/main.c
21--- bsd-games-2.17/backgammon/backgammon/main.c 2005-02-16 09:24:50.000000000 +0300
22+++ bsd-games-2.17-p/backgammon/backgammon/main.c 2011-02-15 11:22:28.988058843 +0300
23@@ -30,18 +30,18 @@
24  */
25 
26 #include <sys/cdefs.h>
27-#ifndef lint
28+/* #ifndef lint
29 __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
30     The Regents of the University of California. All rights reserved.\n");
31-#endif /* not lint */
32+#endif */ /* not lint */
33 
34-#ifndef lint
35+/* #ifndef lint
36 #if 0
37 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
38 #else
39 __RCSID("$NetBSD: main.c,v 1.21 2005/02/15 12:56:20 jsm Exp $");
40 #endif
41-#endif /* not lint */
42+#endif */ /* not lint */
43 
44 #include <time.h>
45 
46@@ -49,6 +49,7 @@
47 #include "backlocal.h"
48 
49 #define MVPAUSE 5 /* time to sleep when stuck */
50+#define OXTABS XTABS
51 
52 extern const char *const instr[]; /* text of instructions */
53 extern const char *const message[]; /* update message */
54@@ -124,7 +125,7 @@
55 #ifdef V7
56     while (*++argv != 0) /* process arguments */
57 #else
58- while (*++argv != -1) /* process arguments */
59+ while (*++argv != 0) /* process arguments */
60 #endif
61         getarg(&argv);
62     args[acnt] = '\0';
63diff -ur bsd-games-2.17/backgammon/backgammon/move.c bsd-games-2.17-p/backgammon/backgammon/move.c
64--- bsd-games-2.17/backgammon/backgammon/move.c 2004-01-27 23:52:07.000000000 +0300
65+++ bsd-games-2.17-p/backgammon/backgammon/move.c 2011-02-15 11:22:28.988058843 +0300
66@@ -30,13 +30,13 @@
67  */
68 
69 #include <sys/cdefs.h>
70-#ifndef lint
71+/* #ifndef lint
72 #if 0
73 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93";
74 #else
75 __RCSID("$NetBSD: move.c,v 1.8 2004/01/27 20:30:28 jsm Exp $");
76 #endif
77-#endif /* not lint */
78+#endif */ /* not lint */
79 
80 #include "back.h"
81 #include "backlocal.h"
82diff -ur bsd-games-2.17/backgammon/backgammon/text.c bsd-games-2.17-p/backgammon/backgammon/text.c
83--- bsd-games-2.17/backgammon/backgammon/text.c 2003-12-17 05:47:37.000000000 +0300
84+++ bsd-games-2.17-p/backgammon/backgammon/text.c 2011-02-15 11:22:28.988058843 +0300
85@@ -30,13 +30,13 @@
86  */
87 
88 #include <sys/cdefs.h>
89-#ifndef lint
90+/* #ifndef lint
91 #if 0
92 static char sccsid[] = "@(#)text.c 8.1 (Berkeley) 5/31/93";
93 #else
94 __RCSID("$NetBSD: text.c,v 1.7 2003/08/07 09:36:56 agc Exp $");
95 #endif
96-#endif /* not lint */
97+#endif */ /* not lint */
98 
99 #include "back.h"
100 
101diff -ur bsd-games-2.17/backgammon/backgammon/version.c bsd-games-2.17-p/backgammon/backgammon/version.c
102--- bsd-games-2.17/backgammon/backgammon/version.c 2003-12-17 05:47:37.000000000 +0300
103+++ bsd-games-2.17-p/backgammon/backgammon/version.c 2011-02-15 11:22:28.988058843 +0300
104@@ -30,13 +30,13 @@
105  */
106 
107 #include <sys/cdefs.h>
108-#ifndef lint
109+/* #ifndef lint
110 #if 0
111 static char sccsid[] = "@(#)version.c 8.1 (Berkeley) 5/31/93";
112 #else
113 __RCSID("$NetBSD: version.c,v 1.6 2003/08/07 09:36:56 agc Exp $");
114 #endif
115-#endif /* not lint */
116+#endif */ /* not lint */
117 
118 const char *const message[] = {
119     "Last updated on Friday, October 10, 1997.",
120diff -ur bsd-games-2.17/backgammon/common_source/allow.c bsd-games-2.17-p/backgammon/common_source/allow.c
121--- bsd-games-2.17/backgammon/common_source/allow.c 2003-12-17 05:47:37.000000000 +0300
122+++ bsd-games-2.17-p/backgammon/common_source/allow.c 2011-02-15 11:22:28.989059790 +0300
123@@ -30,13 +30,13 @@
124  */
125 
126 #include <sys/cdefs.h>
127-#ifndef lint
128+/* #ifndef lint
129 #if 0
130 static char sccsid[] = "@(#)allow.c 8.1 (Berkeley) 5/31/93";
131 #else
132 __RCSID("$NetBSD: allow.c,v 1.5 2003/08/07 09:36:56 agc Exp $");
133 #endif
134-#endif /* not lint */
135+#endif */ /* not lint */
136 
137 #include "back.h"
138 
139diff -ur bsd-games-2.17/backgammon/common_source/board.c bsd-games-2.17-p/backgammon/common_source/board.c
140--- bsd-games-2.17/backgammon/common_source/board.c 2003-12-17 05:47:37.000000000 +0300
141+++ bsd-games-2.17-p/backgammon/common_source/board.c 2011-02-15 11:22:28.989059790 +0300
142@@ -30,13 +30,13 @@
143  */
144 
145 #include <sys/cdefs.h>
146-#ifndef lint
147+/* #ifndef lint
148 #if 0
149 static char sccsid[] = "@(#)board.c 8.1 (Berkeley) 5/31/93";
150 #else
151 __RCSID("$NetBSD: board.c,v 1.7 2003/08/07 09:36:57 agc Exp $");
152 #endif
153-#endif /* not lint */
154+#endif */ /* not lint */
155 
156 #include "back.h"
157 
158diff -ur bsd-games-2.17/backgammon/common_source/check.c bsd-games-2.17-p/backgammon/common_source/check.c
159--- bsd-games-2.17/backgammon/common_source/check.c 2003-12-17 05:47:37.000000000 +0300
160+++ bsd-games-2.17-p/backgammon/common_source/check.c 2011-02-15 11:22:28.989059790 +0300
161@@ -30,13 +30,13 @@
162  */
163 
164 #include <sys/cdefs.h>
165-#ifndef lint
166+/* #ifndef lint
167 #if 0
168 static char sccsid[] = "@(#)check.c 8.1 (Berkeley) 5/31/93";
169 #else
170 __RCSID("$NetBSD: check.c,v 1.5 2003/08/07 09:36:57 agc Exp $");
171 #endif
172-#endif /* not lint */
173+#endif */ /* not lint */
174 
175 #include "back.h"
176 
177diff -ur bsd-games-2.17/backgammon/common_source/fancy.c bsd-games-2.17-p/backgammon/common_source/fancy.c
178--- bsd-games-2.17/backgammon/common_source/fancy.c 2004-04-24 20:13:09.000000000 +0400
179+++ bsd-games-2.17-p/backgammon/common_source/fancy.c 2011-02-15 11:22:28.989059790 +0300
180@@ -30,13 +30,13 @@
181  */
182 
183 #include <sys/cdefs.h>
184-#ifndef lint
185+/* #ifndef lint
186 #if 0
187 static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93";
188 #else
189 __RCSID("$NetBSD: fancy.c,v 1.12 2004/04/23 02:58:27 simonb Exp $");
190 #endif
191-#endif /* not lint */
192+#endif */ /* not lint */
193 
194 #include "back.h"
195 
196@@ -726,7 +726,7 @@
197         lUP = strlen(UP);
198     if (ND)
199         lND = strlen(ND);
200- if (LI < 24 || CO < 72 || !(CL && UP && ND))
201+ if (LI < 20 || CO < 52 || !(CL && UP && ND))
202         return (0);
203     linect = (int *) calloc(LI + 1, sizeof(int));
204     if (linect == NULL) {
205diff -ur bsd-games-2.17/backgammon/common_source/init.c bsd-games-2.17-p/backgammon/common_source/init.c
206--- bsd-games-2.17/backgammon/common_source/init.c 2003-12-17 05:47:37.000000000 +0300
207+++ bsd-games-2.17-p/backgammon/common_source/init.c 2011-02-15 11:22:28.989059790 +0300
208@@ -30,13 +30,13 @@
209  */
210 
211 #include <sys/cdefs.h>
212-#ifndef lint
213+/* #ifndef lint
214 #if 0
215 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93";
216 #else
217 __RCSID("$NetBSD: init.c,v 1.8 2003/08/07 09:36:57 agc Exp $");
218 #endif
219-#endif /* not lint */
220+#endif */ /* not lint */
221 
222 #include <termios.h>
223 
224diff -ur bsd-games-2.17/backgammon/common_source/odds.c bsd-games-2.17-p/backgammon/common_source/odds.c
225--- bsd-games-2.17/backgammon/common_source/odds.c 2003-12-17 05:47:37.000000000 +0300
226+++ bsd-games-2.17-p/backgammon/common_source/odds.c 2011-02-15 11:22:28.989059790 +0300
227@@ -30,13 +30,13 @@
228  */
229 
230 #include <sys/cdefs.h>
231-#ifndef lint
232+/* #ifndef lint
233 #if 0
234 static char sccsid[] = "@(#)odds.c 8.1 (Berkeley) 5/31/93";
235 #else
236 __RCSID("$NetBSD: odds.c,v 1.5 2003/08/07 09:36:57 agc Exp $");
237 #endif
238-#endif /* not lint */
239+#endif */ /* not lint */
240 
241 #include "back.h"
242 
243diff -ur bsd-games-2.17/backgammon/common_source/one.c bsd-games-2.17-p/backgammon/common_source/one.c
244--- bsd-games-2.17/backgammon/common_source/one.c 2003-12-17 05:47:37.000000000 +0300
245+++ bsd-games-2.17-p/backgammon/common_source/one.c 2011-02-15 11:22:28.988058843 +0300
246@@ -30,13 +30,13 @@
247  */
248 
249 #include <sys/cdefs.h>
250-#ifndef lint
251+/* #ifndef lint
252 #if 0
253 static char sccsid[] = "@(#)one.c 8.1 (Berkeley) 5/31/93";
254 #else
255 __RCSID("$NetBSD: one.c,v 1.5 2003/08/07 09:36:57 agc Exp $");
256 #endif
257-#endif /* not lint */
258+#endif */ /* not lint */
259 
260 #include "back.h"
261 
262diff -ur bsd-games-2.17/backgammon/common_source/save.c bsd-games-2.17-p/backgammon/common_source/save.c
263--- bsd-games-2.17/backgammon/common_source/save.c 2003-12-17 05:47:37.000000000 +0300
264+++ bsd-games-2.17-p/backgammon/common_source/save.c 2011-02-15 11:22:28.989059790 +0300
265@@ -30,13 +30,13 @@
266  */
267 
268 #include <sys/cdefs.h>
269-#ifndef lint
270+/* #ifndef lint
271 #if 0
272 static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
273 #else
274 __RCSID("$NetBSD: save.c,v 1.10 2003/08/07 09:36:57 agc Exp $");
275 #endif
276-#endif /* not lint */
277+#endif */ /* not lint */
278 
279 #include <errno.h>
280 
281diff -ur bsd-games-2.17/backgammon/common_source/subs.c bsd-games-2.17-p/backgammon/common_source/subs.c
282--- bsd-games-2.17/backgammon/common_source/subs.c 2003-12-17 05:47:37.000000000 +0300
283+++ bsd-games-2.17-p/backgammon/common_source/subs.c 2011-02-15 11:22:28.989059790 +0300
284@@ -30,13 +30,13 @@
285  */
286 
287 #include <sys/cdefs.h>
288-#ifndef lint
289+/* #ifndef lint
290 #if 0
291 static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
292 #else
293 __RCSID("$NetBSD: subs.c,v 1.14 2003/08/07 09:36:57 agc Exp $");
294 #endif
295-#endif /* not lint */
296+#endif */ /* not lint */
297 
298 #include "back.h"
299 
300diff -ur bsd-games-2.17/backgammon/common_source/table.c bsd-games-2.17-p/backgammon/common_source/table.c
301--- bsd-games-2.17/backgammon/common_source/table.c 2003-12-17 05:47:37.000000000 +0300
302+++ bsd-games-2.17-p/backgammon/common_source/table.c 2011-02-15 11:22:28.988058843 +0300
303@@ -30,13 +30,13 @@
304  */
305 
306 #include <sys/cdefs.h>
307-#ifndef lint
308+/* #ifndef lint
309 #if 0
310 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93";
311 #else
312 __RCSID("$NetBSD: table.c,v 1.7 2003/08/07 09:36:57 agc Exp $");
313 #endif
314-#endif /* not lint */
315+#endif */ /* not lint */
316 
317 #include "back.h"
318 
319diff -ur bsd-games-2.17/backgammon/teachgammon/data.c bsd-games-2.17-p/backgammon/teachgammon/data.c
320--- bsd-games-2.17/backgammon/teachgammon/data.c 2004-01-02 21:04:51.000000000 +0300
321+++ bsd-games-2.17-p/backgammon/teachgammon/data.c 2011-02-15 11:22:28.988058843 +0300
322@@ -30,13 +30,13 @@
323  */
324 
325 #include <sys/cdefs.h>
326-#ifndef lint
327+/*#ifndef lint
328 #if 0
329 static char sccsid[] = "@(#)data.c 8.1 (Berkeley) 5/31/93";
330 #else
331 __RCSID("$NetBSD: data.c,v 1.7 2004/01/01 15:59:09 jsm Exp $");
332 #endif
333-#endif /* not lint */
334+#endif *//* not lint */
335 
336 #include "tutor.h"
337 
338diff -ur bsd-games-2.17/backgammon/teachgammon/teach.c bsd-games-2.17-p/backgammon/teachgammon/teach.c
339--- bsd-games-2.17/backgammon/teachgammon/teach.c 2005-02-16 09:24:50.000000000 +0300
340+++ bsd-games-2.17-p/backgammon/teachgammon/teach.c 2011-02-15 11:22:28.988058843 +0300
341@@ -30,18 +30,18 @@
342  */
343 
344 #include <sys/cdefs.h>
345-#ifndef lint
346+/*#ifndef lint
347 __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
348     The Regents of the University of California. All rights reserved.\n");
349-#endif /* not lint */
350+#endif *//* not lint */
351 
352-#ifndef lint
353+/*#ifndef lint
354 #if 0
355 static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
356 #else
357 __RCSID("$NetBSD: teach.c,v 1.16 2005/02/15 12:56:20 jsm Exp $");
358 #endif
359-#endif /* not lint */
360+#endif *//* not lint */
361 
362 #include "back.h"
363 #include "tutor.h"
364@@ -59,6 +59,8 @@
365     0
366 };
367 
368+#define OXTABS XTABS
369+
370 int
371 main(argc, argv)
372     int argc __attribute__((__unused__));
373@@ -81,7 +83,7 @@
374 #ifdef V7
375     while (*++argv != 0)
376 #else
377- while (*++argv != -1)
378+ while (*++argv != 0)
379 #endif
380         getarg(&argv);
381     if (tflag) {
382diff -ur bsd-games-2.17/backgammon/teachgammon/ttext1.c bsd-games-2.17-p/backgammon/teachgammon/ttext1.c
383--- bsd-games-2.17/backgammon/teachgammon/ttext1.c 2003-12-17 05:47:37.000000000 +0300
384+++ bsd-games-2.17-p/backgammon/teachgammon/ttext1.c 2011-02-15 11:22:28.988058843 +0300
385@@ -30,13 +30,13 @@
386  */
387 
388 #include <sys/cdefs.h>
389-#ifndef lint
390+/*#ifndef lint
391 #if 0
392 static char sccsid[] = "@(#)ttext1.c 8.1 (Berkeley) 5/31/93";
393 #else
394 __RCSID("$NetBSD: ttext1.c,v 1.7 2003/08/07 09:36:58 agc Exp $");
395 #endif
396-#endif /* not lint */
397+#endif *//* not lint */
398 
399 #include "back.h"
400 #include "tutor.h"
401diff -ur bsd-games-2.17/backgammon/teachgammon/ttext2.c bsd-games-2.17-p/backgammon/teachgammon/ttext2.c
402--- bsd-games-2.17/backgammon/teachgammon/ttext2.c 2003-12-17 05:47:37.000000000 +0300
403+++ bsd-games-2.17-p/backgammon/teachgammon/ttext2.c 2011-02-15 11:22:28.988058843 +0300
404@@ -30,13 +30,13 @@
405  */
406 
407 #include <sys/cdefs.h>
408-#ifndef lint
409+/*#ifndef lint
410 #if 0
411 static char sccsid[] = "@(#)ttext2.c 8.1 (Berkeley) 5/31/93";
412 #else
413 __RCSID("$NetBSD: ttext2.c,v 1.7 2003/08/07 09:36:58 agc Exp $");
414 #endif
415-#endif /* not lint */
416+#endif *//* not lint */
417 
418 #include "back.h"
419 #include "tutor.h"
420diff -ur bsd-games-2.17/backgammon/teachgammon/tutor.c bsd-games-2.17-p/backgammon/teachgammon/tutor.c
421--- bsd-games-2.17/backgammon/teachgammon/tutor.c 2003-12-17 05:47:37.000000000 +0300
422+++ bsd-games-2.17-p/backgammon/teachgammon/tutor.c 2011-02-15 11:22:28.988058843 +0300
423@@ -30,13 +30,13 @@
424  */
425 
426 #include <sys/cdefs.h>
427-#ifndef lint
428+/*#ifndef lint
429 #if 0
430 static char sccsid[] = "@(#)tutor.c 8.1 (Berkeley) 5/31/93";
431 #else
432 __RCSID("$NetBSD: tutor.c,v 1.6 2003/08/07 09:36:58 agc Exp $");
433 #endif
434-#endif /* not lint */
435+#endif *//* not lint */
436 
437 #include "back.h"
438 #include "tutor.h"
439

Archive Download this file



interactive