File kdrill-6.5-getline.patch of Package kdrill
Index: kdrill6.5/externs.h
===================================================================
--- kdrill6.5.orig/externs.h
+++ kdrill6.5/externs.h
@@ -35,7 +35,7 @@ extern void ClearCheat();
/* other "usefull" general functions */
extern int xtoi(char *);
-extern int getline(FILE *, unsigned char *);
+extern int getLine(FILE *, unsigned char *);
extern void setstatus(char *);
extern int FindIndex(char *);
Index: kdrill6.5/readfile.c
===================================================================
--- kdrill6.5.orig/readfile.c
+++ kdrill6.5/readfile.c
@@ -31,7 +31,7 @@ int numberofkanji=0, highestkanji=0, low
static char *dictname=NULL;
static char *edictname=NULL;
-/* getline:
+/* getLine:
* reads a line (from dictionary).
* Deals with 8-bit char reads (or attempts to)
* Also attempts to deal with the problem of variable line length.
@@ -50,7 +50,7 @@ static char *edictname=NULL;
* if we have just started reading a stream;
*/
-int getline(FILE *fp,unsigned char *s)
+int getLine(FILE *fp,unsigned char *s)
{
char * val;
char *endparse;
@@ -464,7 +464,7 @@ void readedict()
lowestkanji = nextindex;
}
- while(getline(fp, instring) != 0)
+ while(getLine(fp, instring) != 0)
{
int instrlen;
@@ -668,7 +668,7 @@ void readstructs(){
exit(-1);
}
- while (getline(fp,instring) != 0) {
+ while (getLine(fp,instring) != 0) {
int Kanji;
int freq,grade,N,U,H,Q,SKIP;
unsigned char *parse;