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
|
diff -Nru yaps-0.96.orig/cfg.c yaps-0.96/cfg.c
--- yaps-0.96.orig/cfg.c 1997-06-11 14:05:34.000000000 +0200
+++ yaps-0.96/cfg.c 2009-07-12 11:32:02.000000000 +0200
@@ -203,7 +203,7 @@
fcur -> fp = fp;
fcur -> up = NULL;
while (fcur) {
- while (gline = getline (fcur -> fp, True)) {
+ while (gline = my_getline (fcur -> fp, True)) {
for (line = gline; isspace (*line); ++line)
;
if ((! *line) || (*line == '#')) {
@@ -279,7 +279,7 @@
done = False;
siz = 0;
len = 0;
- while (ptr = getline (fcur -> fp, False)) {
+ while (ptr = my_getline (fcur -> fp, False)) {
if ((*ptr != '}') || *(ptr + 1)) {
plen = strlen (ptr);
if (len + plen + 2 >= siz) {
diff -Nru yaps-0.96.orig/cv.c yaps-0.96/cv.c
--- yaps-0.96.orig/cv.c 1997-06-03 20:43:52.000000000 +0200
+++ yaps-0.96/cv.c 2009-07-12 11:31:44.000000000 +0200
@@ -151,7 +151,7 @@
MCHK (c);
if ((! c) || (! (fp = fopen (fname, "r"))))
return -1;
- while (line = getline (fp, True)) {
+ while (line = my_getline (fp, True)) {
for (sp = line; isspace (*sp); ++sp)
;
if (*sp && (*sp != '#')) {
diff -Nru yaps-0.96.orig/pager.h yaps-0.96/pager.h
--- yaps-0.96.orig/pager.h 1997-06-12 13:59:28.000000000 +0200
+++ yaps-0.96/pager.h 2009-07-12 11:31:33.000000000 +0200
@@ -67,7 +67,7 @@
/*{{{ utility */
extern char *skip (char *str);
extern char *skipch (char *str, char ch);
-extern char *getline (FILE *fp, Bool cont);
+extern char *my_getline (FILE *fp, Bool cont);
extern int verbose_out (char *, ...);
/*}}}*/
/*{{{ string handling */
diff -Nru yaps-0.96.orig/util.c yaps-0.96/util.c
--- yaps-0.96.orig/util.c 1997-05-31 19:20:40.000000000 +0200
+++ yaps-0.96/util.c 2009-07-12 11:31:49.000000000 +0200
@@ -36,7 +36,7 @@
}
char *
-getline (FILE *fp, Bool cont)
+my_getline (FILE *fp, Bool cont)
{
char *buf;
int size;
diff -Nru yaps-0.96.orig/yaps.c yaps-0.96/yaps.c
--- yaps-0.96.orig/yaps.c 1997-06-14 12:25:56.000000000 +0200
+++ yaps-0.96/yaps.c 2009-07-12 11:31:39.000000000 +0200
@@ -1177,7 +1177,7 @@
fprintf (stderr, "Unable to open message file %s for reading\n", mfile);
return NULL;
}
- while (ptr = getline (fp, False)) {
+ while (ptr = my_getline (fp, False)) {
sav = skip (ptr);
if (*ptr && *sav) {
if (rcnt + 2 >= rsiz) {
|