initialise everything
This commit is contained in:
parent
3ceb7eb479
commit
4052f03726
@ -234,6 +234,9 @@ Yap_GetFreeStreamDForReading(void)
|
|||||||
if (sno < 0) return sno;
|
if (sno < 0) return sno;
|
||||||
s = Stream+sno;
|
s = Stream+sno;
|
||||||
s->status |= User_Stream_f|Input_Stream_f;
|
s->status |= User_Stream_f|Input_Stream_f;
|
||||||
|
s->charcount = 0;
|
||||||
|
s->linecount = 1;
|
||||||
|
s->linepos = 0;
|
||||||
s->stream_wgetc = get_wchar;
|
s->stream_wgetc = get_wchar;
|
||||||
s->encoding = DefaultEncoding();
|
s->encoding = DefaultEncoding();
|
||||||
if (CharConversionTable != NULL)
|
if (CharConversionTable != NULL)
|
||||||
|
Reference in New Issue
Block a user