updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ispell-british / ispell-getline-compile-fix.patch
blobf49f876fc654dbba0405f62da618976cb325eee2
1 --- correct.c 2009-07-25 15:36:48.000000000 +0100
2 +++ correct.c 2009-07-25 15:37:59.000000000 +0100
3 @@ -245,7 +245,7 @@
4 struct flagent * sufent,
5 ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
6 int * nsaved));
7 -static char * getline P ((char * buf, int bufsize));
8 +static char * get_line P ((char * buf, int bufsize));
9 void askmode P ((void));
10 void copyout P ((unsigned char ** cc, int cnt));
11 static void lookharder P ((unsigned char * string));
12 @@ -571,7 +571,7 @@
14 imove (li - 1, 0);
15 (void) putchar ('!');
16 - if (getline ((char *) buf, sizeof buf) == NULL)
17 + if (get_line ((char *) buf, sizeof buf) == NULL)
19 (void) putchar (7);
20 ierase ();
21 @@ -596,7 +596,7 @@
22 (void) printf ("%s ", CORR_C_READONLY);
24 (void) printf (CORR_C_REPLACE_WITH);
25 - if (getline ((char *) ctok, ctokl) == NULL)
26 + if (get_line ((char *) ctok, ctokl) == NULL)
28 (void) putchar (7);
29 /* Put it back */
30 @@ -664,7 +664,7 @@
31 unsigned char buf[100];
32 imove (li - 1, 0);
33 (void) printf (CORR_C_LOOKUP_PROMPT);
34 - if (getline ((char *) buf, sizeof buf) == NULL)
35 + if (get_line ((char *) buf, sizeof buf) == NULL)
37 (void) putchar (7);
38 ierase ();
39 @@ -1583,7 +1583,7 @@
40 return;
43 -static char * getline (s, len)
44 +static char * get_line (s, len)
45 register char * s;
46 register int len;