macro conflict
This commit is contained in:
parent
b0766abb5c
commit
c06d07985e
@ -472,7 +472,7 @@ static Int doformat(volatile Term otail, volatile Term oargs,
|
|||||||
volatile void *old_handler;
|
volatile void *old_handler;
|
||||||
volatile int old_pos;
|
volatile int old_pos;
|
||||||
format_info finfo;
|
format_info finfo;
|
||||||
unsigned char *bufp = NULL;
|
unsigned char *ubuf = NULL;
|
||||||
Term fmod = CurrentModule;
|
Term fmod = CurrentModule;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
|
|
||||||
@ -1003,11 +1003,8 @@ static Int doformat(volatile Term otail, volatile Term oargs,
|
|||||||
int nsno;
|
int nsno;
|
||||||
|
|
||||||
finfo.pad_entries[finfo.padders].len = sz;
|
finfo.pad_entries[finfo.padders].len = sz;
|
||||||
finfo.pad_entries[finfo.padders].pad = (char *)bufp;
|
finfo.pad_entries[finfo.padders].pad = (char *)ubuf;
|
||||||
bufp = NULL;
|
nsno = Yap_open_buf_write_stream(GLOBAL_Stream[sno].encoding, 0);
|
||||||
sz = 0;
|
|
||||||
nsno = Yap_open_buf_write_stream((char *)bufp, sz,
|
|
||||||
&GLOBAL_Stream[sno].encoding, 0);
|
|
||||||
if (osno) {
|
if (osno) {
|
||||||
GLOBAL_Stream[nsno].linepos = GLOBAL_Stream[sno].linepos;
|
GLOBAL_Stream[nsno].linepos = GLOBAL_Stream[sno].linepos;
|
||||||
GLOBAL_Stream[nsno].linecount = GLOBAL_Stream[sno].linecount;
|
GLOBAL_Stream[nsno].linecount = GLOBAL_Stream[sno].linecount;
|
||||||
|
Reference in New Issue
Block a user