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 2010-07-31 22:10:07.910053909 +0400
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 2010-08-01 11:08:39.969952583 +0400
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 2010-07-31 22:10:41.854259314 +0400
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 2010-07-31 22:10:52.377805941 +0400
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 2010-07-31 22:11:05.756426999 +0400
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 2010-07-31 22:07:44.982982743 +0400
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 2010-07-31 22:08:08.852355705 +0400
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 2010-07-31 22:08:22.639630328 +0400
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 2010-07-31 22:08:35.011397017 +0400
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 
196diff -ur bsd-games-2.17/backgammon/common_source/init.c bsd-games-2.17-p/backgammon/common_source/init.c
197--- bsd-games-2.17/backgammon/common_source/init.c 2003-12-17 05:47:37.000000000 +0300
198+++ bsd-games-2.17-p/backgammon/common_source/init.c 2010-07-31 22:08:46.900301922 +0400
199@@ -30,13 +30,13 @@
200  */
201 
202 #include <sys/cdefs.h>
203-#ifndef lint
204+/* #ifndef lint
205 #if 0
206 static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93";
207 #else
208 __RCSID("$NetBSD: init.c,v 1.8 2003/08/07 09:36:57 agc Exp $");
209 #endif
210-#endif /* not lint */
211+#endif */ /* not lint */
212 
213 #include <termios.h>
214 
215diff -ur bsd-games-2.17/backgammon/common_source/odds.c bsd-games-2.17-p/backgammon/common_source/odds.c
216--- bsd-games-2.17/backgammon/common_source/odds.c 2003-12-17 05:47:37.000000000 +0300
217+++ bsd-games-2.17-p/backgammon/common_source/odds.c 2010-07-31 22:09:03.219958336 +0400
218@@ -30,13 +30,13 @@
219  */
220 
221 #include <sys/cdefs.h>
222-#ifndef lint
223+/* #ifndef lint
224 #if 0
225 static char sccsid[] = "@(#)odds.c 8.1 (Berkeley) 5/31/93";
226 #else
227 __RCSID("$NetBSD: odds.c,v 1.5 2003/08/07 09:36:57 agc Exp $");
228 #endif
229-#endif /* not lint */
230+#endif */ /* not lint */
231 
232 #include "back.h"
233 
234diff -ur bsd-games-2.17/backgammon/common_source/one.c bsd-games-2.17-p/backgammon/common_source/one.c
235--- bsd-games-2.17/backgammon/common_source/one.c 2003-12-17 05:47:37.000000000 +0300
236+++ bsd-games-2.17-p/backgammon/common_source/one.c 2010-07-31 22:09:15.025538516 +0400
237@@ -30,13 +30,13 @@
238  */
239 
240 #include <sys/cdefs.h>
241-#ifndef lint
242+/* #ifndef lint
243 #if 0
244 static char sccsid[] = "@(#)one.c 8.1 (Berkeley) 5/31/93";
245 #else
246 __RCSID("$NetBSD: one.c,v 1.5 2003/08/07 09:36:57 agc Exp $");
247 #endif
248-#endif /* not lint */
249+#endif */ /* not lint */
250 
251 #include "back.h"
252 
253diff -ur bsd-games-2.17/backgammon/common_source/save.c bsd-games-2.17-p/backgammon/common_source/save.c
254--- bsd-games-2.17/backgammon/common_source/save.c 2003-12-17 05:47:37.000000000 +0300
255+++ bsd-games-2.17-p/backgammon/common_source/save.c 2010-08-01 00:38:38.876427096 +0400
256@@ -30,13 +30,13 @@
257  */
258 
259 #include <sys/cdefs.h>
260-#ifndef lint
261+/* #ifndef lint
262 #if 0
263 static char sccsid[] = "@(#)save.c 8.1 (Berkeley) 5/31/93";
264 #else
265 __RCSID("$NetBSD: save.c,v 1.10 2003/08/07 09:36:57 agc Exp $");
266 #endif
267-#endif /* not lint */
268+#endif */ /* not lint */
269 
270 #include <errno.h>
271 
272diff -ur bsd-games-2.17/backgammon/common_source/subs.c bsd-games-2.17-p/backgammon/common_source/subs.c
273--- bsd-games-2.17/backgammon/common_source/subs.c 2003-12-17 05:47:37.000000000 +0300
274+++ bsd-games-2.17-p/backgammon/common_source/subs.c 2010-08-01 11:10:44.780266356 +0400
275@@ -30,13 +30,13 @@
276  */
277 
278 #include <sys/cdefs.h>
279-#ifndef lint
280+/* #ifndef lint
281 #if 0
282 static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
283 #else
284 __RCSID("$NetBSD: subs.c,v 1.14 2003/08/07 09:36:57 agc Exp $");
285 #endif
286-#endif /* not lint */
287+#endif */ /* not lint */
288 
289 #include "back.h"
290 
291diff -ur bsd-games-2.17/backgammon/common_source/table.c bsd-games-2.17-p/backgammon/common_source/table.c
292--- bsd-games-2.17/backgammon/common_source/table.c 2003-12-17 05:47:37.000000000 +0300
293+++ bsd-games-2.17-p/backgammon/common_source/table.c 2010-07-31 22:09:54.655414207 +0400
294@@ -30,13 +30,13 @@
295  */
296 
297 #include <sys/cdefs.h>
298-#ifndef lint
299+/* #ifndef lint
300 #if 0
301 static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 5/31/93";
302 #else
303 __RCSID("$NetBSD: table.c,v 1.7 2003/08/07 09:36:57 agc Exp $");
304 #endif
305-#endif /* not lint */
306+#endif */ /* not lint */
307 
308 #include "back.h"
309 
310diff -ur bsd-games-2.17/backgammon/teachgammon/data.c bsd-games-2.17-p/backgammon/teachgammon/data.c
311--- bsd-games-2.17/backgammon/teachgammon/data.c 2004-01-02 21:04:51.000000000 +0300
312+++ bsd-games-2.17-p/backgammon/teachgammon/data.c 2010-08-01 11:18:14.579882098 +0400
313@@ -30,13 +30,13 @@
314  */
315 
316 #include <sys/cdefs.h>
317-#ifndef lint
318+/*#ifndef lint
319 #if 0
320 static char sccsid[] = "@(#)data.c 8.1 (Berkeley) 5/31/93";
321 #else
322 __RCSID("$NetBSD: data.c,v 1.7 2004/01/01 15:59:09 jsm Exp $");
323 #endif
324-#endif /* not lint */
325+#endif *//* not lint */
326 
327 #include "tutor.h"
328 
329diff -ur bsd-games-2.17/backgammon/teachgammon/teach.c bsd-games-2.17-p/backgammon/teachgammon/teach.c
330--- bsd-games-2.17/backgammon/teachgammon/teach.c 2005-02-16 09:24:50.000000000 +0300
331+++ bsd-games-2.17-p/backgammon/teachgammon/teach.c 2010-08-01 11:39:32.956134539 +0400
332@@ -30,18 +30,18 @@
333  */
334 
335 #include <sys/cdefs.h>
336-#ifndef lint
337+/*#ifndef lint
338 __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
339     The Regents of the University of California. All rights reserved.\n");
340-#endif /* not lint */
341+#endif *//* not lint */
342 
343-#ifndef lint
344+/*#ifndef lint
345 #if 0
346 static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
347 #else
348 __RCSID("$NetBSD: teach.c,v 1.16 2005/02/15 12:56:20 jsm Exp $");
349 #endif
350-#endif /* not lint */
351+#endif *//* not lint */
352 
353 #include "back.h"
354 #include "tutor.h"
355@@ -59,6 +59,8 @@
356     0
357 };
358 
359+#define OXTABS XTABS
360+
361 int
362 main(argc, argv)
363     int argc __attribute__((__unused__));
364@@ -81,7 +83,7 @@
365 #ifdef V7
366     while (*++argv != 0)
367 #else
368- while (*++argv != -1)
369+ while (*++argv != 0)
370 #endif
371         getarg(&argv);
372     if (tflag) {
373diff -ur bsd-games-2.17/backgammon/teachgammon/ttext1.c bsd-games-2.17-p/backgammon/teachgammon/ttext1.c
374--- bsd-games-2.17/backgammon/teachgammon/ttext1.c 2003-12-17 05:47:37.000000000 +0300
375+++ bsd-games-2.17-p/backgammon/teachgammon/ttext1.c 2010-08-01 11:18:57.935091377 +0400
376@@ -30,13 +30,13 @@
377  */
378 
379 #include <sys/cdefs.h>
380-#ifndef lint
381+/*#ifndef lint
382 #if 0
383 static char sccsid[] = "@(#)ttext1.c 8.1 (Berkeley) 5/31/93";
384 #else
385 __RCSID("$NetBSD: ttext1.c,v 1.7 2003/08/07 09:36:58 agc Exp $");
386 #endif
387-#endif /* not lint */
388+#endif *//* not lint */
389 
390 #include "back.h"
391 #include "tutor.h"
392diff -ur bsd-games-2.17/backgammon/teachgammon/ttext2.c bsd-games-2.17-p/backgammon/teachgammon/ttext2.c
393--- bsd-games-2.17/backgammon/teachgammon/ttext2.c 2003-12-17 05:47:37.000000000 +0300
394+++ bsd-games-2.17-p/backgammon/teachgammon/ttext2.c 2010-08-01 11:19:09.174691288 +0400
395@@ -30,13 +30,13 @@
396  */
397 
398 #include <sys/cdefs.h>
399-#ifndef lint
400+/*#ifndef lint
401 #if 0
402 static char sccsid[] = "@(#)ttext2.c 8.1 (Berkeley) 5/31/93";
403 #else
404 __RCSID("$NetBSD: ttext2.c,v 1.7 2003/08/07 09:36:58 agc Exp $");
405 #endif
406-#endif /* not lint */
407+#endif *//* not lint */
408 
409 #include "back.h"
410 #include "tutor.h"
411diff -ur bsd-games-2.17/backgammon/teachgammon/tutor.c bsd-games-2.17-p/backgammon/teachgammon/tutor.c
412--- bsd-games-2.17/backgammon/teachgammon/tutor.c 2003-12-17 05:47:37.000000000 +0300
413+++ bsd-games-2.17-p/backgammon/teachgammon/tutor.c 2010-08-01 11:37:12.464301896 +0400
414@@ -30,13 +30,13 @@
415  */
416 
417 #include <sys/cdefs.h>
418-#ifndef lint
419+/*#ifndef lint
420 #if 0
421 static char sccsid[] = "@(#)tutor.c 8.1 (Berkeley) 5/31/93";
422 #else
423 __RCSID("$NetBSD: tutor.c,v 1.6 2003/08/07 09:36:58 agc Exp $");
424 #endif
425-#endif /* not lint */
426+#endif *//* not lint */
427 
428 #include "back.h"
429 #include "tutor.h"
430

Archive Download this file



interactive