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:
parent
9e09d4fba2
commit
f4d97d6fd6
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user