X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_fvopen.c;fp=functions%2Fstdio%2F_PDCLIB_fvopen.c;h=2a5720948cd10251b4e5e07eb3ca47d7e7079fa5;hp=4fc98ffe610fcc86845073d7bfa6e4964a73138b;hb=d1954049a406af2992113a783539aa5d86cfdfa8;hpb=0082c47404ecdeb00e08e1aedbea0f8402cfc906 diff --git a/functions/stdio/_PDCLIB_fvopen.c b/functions/stdio/_PDCLIB_fvopen.c index 4fc98ff..2a57209 100644 --- a/functions/stdio/_PDCLIB_fvopen.c +++ b/functions/stdio/_PDCLIB_fvopen.c @@ -17,8 +17,8 @@ extern FILE * _PDCLIB_filelist; -FILE * _PDCLIB_fvopen( - _PDCLIB_fd_t fd, +FILE * _PDCLIB_fvopen( + _PDCLIB_fd_t fd, const _PDCLIB_fileops_t *_PDCLIB_restrict ops, int mode, const char *_PDCLIB_restrict filename @@ -62,6 +62,9 @@ FILE * _PDCLIB_fvopen( /* Initializing the rest of the structure */ rc->bufsize = BUFSIZ; rc->bufidx = 0; +#ifdef _PDCLIB_NEED_EOL_TRANSLATION + rc->bufnlexp = 0; +#endif rc->ungetidx = 0; /* Setting buffer to _IOLBF because "when opened, a stream is fully buffered if and only if it can be determined not to refer to an