1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../bsd-games/glibc.patch
5 # Copyright (C) 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./boggle/boggle/bog.c
18 +++ ./boggle/boggle/bog.c
23 - if (getline(buf) == NULL) {
24 + if (get_line(buf) == NULL) {
28 --- ./boggle/boggle/extern.h
29 +++ ./boggle/boggle/extern.h
31 long dictseek(FILE *, long, int);
34 -char *getline(char *);
35 +char *get_line(char *);
39 --- ./boggle/boggle/mach.c
40 +++ ./boggle/boggle/mach.c
42 * - doesn't accept words longer than MAXWORDLEN or containing caps
50 --- ./cribbage/cribbage.h
51 +++ ./cribbage/cribbage.h
53 int fifteens(const CARD [], int);
57 +char *get_line(void);
60 int infrom(const CARD [], int, const char *);
64 if (!rflag) { /* player cuts deck */
65 msg(quiet ? "Cut for crib? " :
66 "Cut to see whose crib it is -- low card wins? ");
70 i = (rand() >> 4) % CARDS; /* random cut */
71 do { /* comp cuts deck */
73 if (!rflag) { /* random cut */
74 msg(quiet ? "Cut the deck? " :
75 "How many cards down do you wish to cut the deck? ");
79 i = (rand() >> 4) % (CARDS - pos);
80 turnover = deck[i + pos];
87 - if (!(line = getline()))
88 + if (!(line = get_line()))
91 while (*p1 != ' ' && *p1 != '\0')
96 - if (!(p = getline()) || *p == '\0') {
97 + if (!(p = get_line()) || *p == '\0') {
98 msg(quiet ? "Not a number" :
99 "That doesn't look like a number");
101 @@ -528,12 +528,12 @@
107 * Reads the next line up to '\n' or EOF. Multiple spaces are
108 * compressed to one space; a space is inserted before a ','
127 --- ./gomoku/gomoku.h
128 +++ ./gomoku/gomoku.h
131 void bdinit(struct spotstr *);
132 void init_overlap(void);
133 -int getline(char *, int);
134 +int get_line(char *, int);
135 void ask(const char *);
136 void dislog(const char *);
141 if (inputfp == NULL && test == 0) {
143 ask("black or white? ");
144 - getline(buf, sizeof(buf));
145 + get_line(buf, sizeof(buf));
146 if (buf[0] == 'b' || buf[0] == 'B') {
153 - getline(buf, sizeof(buf));
154 + get_line(buf, sizeof(buf));
155 if (strcmp(buf, "black") == 0)
157 else if (strcmp(buf, "white") == 0)
162 - if (!getline(buf, sizeof(buf))) {
163 + if (!get_line(buf, sizeof(buf))) {
170 ask("save file name? ");
171 - (void)getline(buf, sizeof(buf));
172 + (void)get_line(buf, sizeof(buf));
173 if ((fp = fopen(buf, "w")) == NULL) {
174 glog("cannot create save file");
176 @@ -309,14 +309,14 @@
180 - if (getline(buf, sizeof(buf)) &&
181 + if (get_line(buf, sizeof(buf)) &&
182 (buf[0] == 'y' || buf[0] == 'Y'))
184 if (strcmp(buf, "save") == 0) {
187 ask("save file name? ");
188 - (void)getline(buf, sizeof(buf));
189 + (void)get_line(buf, sizeof(buf));
190 if ((fp = fopen(buf, "w")) == NULL) {
191 glog("cannot create save file");
197 - if (!getline(fmtbuf, sizeof(fmtbuf)))
198 + if (!get_line(fmtbuf, sizeof(fmtbuf)))