X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2F_PDCLIB_fvopen.c;h=307d0c9cc04a38fb879005ff0f080800128934fd;hb=8894c921674bb116d0a7b8f23a55311e7a768019;hp=4fc98ffe610fcc86845073d7bfa6e4964a73138b;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/functions/stdio/_PDCLIB_fvopen.c b/functions/stdio/_PDCLIB_fvopen.c index 4fc98ff..307d0c9 100644 --- a/functions/stdio/_PDCLIB_fvopen.c +++ b/functions/stdio/_PDCLIB_fvopen.c @@ -1,6 +1,4 @@ -/* $Id$ */ - -/* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t * ) +/* _PDCLIB_fvopen( _PDCLIB_fd_t, _PDCLIB_fileops_t * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -10,15 +8,15 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> -#include <_PDCLIB_io.h> +#include "_PDCLIB_glue.h" +#include "_PDCLIB_io.h" #include #include 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 @@ -78,7 +79,7 @@ FILE * _PDCLIB_fvopen( #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {