1
0
mirror of https://github.com/fachat/xa65.git synced 2025-01-21 06:31:09 +00:00

fix incompatibility with system "getline"

This commit is contained in:
A. Fachat 2013-10-04 14:10:32 +02:00
parent 9e09d4fba2
commit f4d97d6fd6
2 changed files with 5 additions and 4 deletions

View File

@ -96,7 +96,7 @@ static int puttmp(int);
static int puttmpw(int);
static int puttmps(signed char *, int);
static void chrput(int);
static int getline(char *);
static int xagetline(char *);
static void lineout(void);
static long ga_p1(void);
static long gm_p1(void);
@ -829,7 +829,7 @@ static int pass1(void)
ner=0;
/*FIXIT*/
while(!(er=getline(s)))
while(!(er=xagetline(s)))
{
er=t_p1((signed char*)s,o,&l,&al);
switch(segment) {
@ -1097,7 +1097,7 @@ static int puttmps(signed char *s, int l)
static char l[MAXLINE];
static int getline(char *s)
static int xagetline(char *s)
{
static int ec;

View File

@ -581,7 +581,8 @@ int list_string(char *buf, char *string) {
if (buf == NULL || string == NULL) {
fprintf(stderr, "NULL pointer: buf=%p, string=%p\n", buf, string);
fflush(stderr);
exit(1);
//exit(1);
return 0;
}
int p = 0;