getline -> get_line
This commit is contained in:
parent
e6021fd97f
commit
7d63e0ee93
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.55 2011/09/16 11:41:40 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.56 2012/03/17 17:19:59 naddy Exp $
|
||||
|
||||
COMMENT-main= interactive spelling checker
|
||||
COMMENT-dutch= ispell dictionary for Dutch
|
||||
@ -59,7 +59,7 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz \
|
||||
SUBST_VARS+= VERSION
|
||||
|
||||
PKGNAME-main= ${DISTNAME}
|
||||
REVISION-main= 6
|
||||
REVISION-main= 7
|
||||
MULTI_PACKAGES= -main -dutch -french -german -swedish -russian -portuguese \
|
||||
-slovak -spanish
|
||||
.for i in ${MULTI_PACKAGES}
|
||||
|
48
textproc/ispell/patches/patch-correct_c
Normal file
48
textproc/ispell/patches/patch-correct_c
Normal file
@ -0,0 +1,48 @@
|
||||
$OpenBSD: patch-correct_c,v 1.1 2012/03/17 17:19:59 naddy Exp $
|
||||
--- correct.c.orig Sat Mar 17 11:14:03 2012
|
||||
+++ correct.c Sat Mar 17 11:14:41 2012
|
||||
@@ -231,7 +231,7 @@ static void save_root_cap P ((ichar_t * word, ichar_t
|
||||
struct flagent * sufent,
|
||||
ichar_t savearea[MAX_CAPS][INPUTWORDLEN + MAXAFFIXLEN],
|
||||
int * nsaved));
|
||||
-static char * getline P ((char * buf));
|
||||
+static char * get_line P ((char * buf));
|
||||
void askmode P ((void));
|
||||
void copyout P ((unsigned char ** cc, int cnt));
|
||||
static void lookharder P ((unsigned char * string));
|
||||
@@ -546,7 +546,7 @@ checkagain:
|
||||
|
||||
move (li - 1, 0);
|
||||
(void) putchar ('!');
|
||||
- if (getline ((char *) buf) == NULL)
|
||||
+ if (get_line ((char *) buf) == NULL)
|
||||
{
|
||||
(void) putchar (7);
|
||||
erase ();
|
||||
@@ -571,7 +571,7 @@ checkagain:
|
||||
(void) printf ("%s ", CORR_C_READONLY);
|
||||
}
|
||||
(void) printf (CORR_C_REPLACE_WITH);
|
||||
- if (getline ((char *) ctok) == NULL)
|
||||
+ if (get_line ((char *) ctok) == NULL)
|
||||
{
|
||||
(void) putchar (7);
|
||||
/* Put it back */
|
||||
@@ -639,7 +639,7 @@ checkagain:
|
||||
unsigned char buf[100];
|
||||
move (li - 1, 0);
|
||||
(void) printf (CORR_C_LOOKUP_PROMPT);
|
||||
- if (getline ((char *) buf) == NULL)
|
||||
+ if (get_line ((char *) buf) == NULL)
|
||||
{
|
||||
(void) putchar (7);
|
||||
erase ();
|
||||
@@ -1477,7 +1477,7 @@ static void save_root_cap (word, pattern, prestrip, pr
|
||||
return;
|
||||
}
|
||||
|
||||
-static char * getline (s)
|
||||
+static char * get_line (s)
|
||||
register char * s;
|
||||
{
|
||||
register char * p;
|
Loading…
Reference in New Issue
Block a user