X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_fvopen.c;h=18d820d339fc86bb1ed5255b6831bc295413befb;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=4fc98ffe610fcc86845073d7bfa6e4964a73138b;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/functions/stdio/_PDCLIB_fvopen.c b/functions/stdio/_PDCLIB_fvopen.c index 4fc98ff..18d820d 100644 --- a/functions/stdio/_PDCLIB_fvopen.c +++ b/functions/stdio/_PDCLIB_fvopen.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t * ) This file is part of the Public Domain C Library (PDCLib). @@ -17,8 +15,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 +60,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