]> pd.if.org Git - pdclib/blobdiff - functions/stdio/_PDCLIB_fvopen.c
Missing declarations / definitions added to stdlib.h.
[pdclib] / functions / stdio / _PDCLIB_fvopen.c
index 4fc98ffe610fcc86845073d7bfa6e4964a73138b..1f089cb20cc049e4b89cdbad3b92e7bf53b0ad7c 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id$ */\r
-\r
-/* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t *  )\r
+/* _PDCLIB_fvopen( _PDCLIB_fd_t, _PDCLIB_fileops_t * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
@@ -17,8 +15,8 @@
 \r
 extern FILE * _PDCLIB_filelist;\r
 \r
-FILE * _PDCLIB_fvopen( \r
-    _PDCLIB_fd_t                                    fd, \r
+FILE * _PDCLIB_fvopen(\r
+    _PDCLIB_fd_t                                    fd,\r
     const _PDCLIB_fileops_t    *_PDCLIB_restrict    ops,\r
     int                                             mode,\r
     const char                  *_PDCLIB_restrict   filename\r
@@ -62,6 +60,9 @@ FILE * _PDCLIB_fvopen(
     /* Initializing the rest of the structure */\r
     rc->bufsize = BUFSIZ;\r
     rc->bufidx = 0;\r
+#ifdef _PDCLIB_NEED_EOL_TRANSLATION\r
+    rc->bufnlexp = 0;\r
+#endif\r
     rc->ungetidx = 0;\r
     /* Setting buffer to _IOLBF because "when opened, a stream is fully\r
        buffered if and only if it can be determined not to refer to an\r