]> git.saurik.com Git - apple/libc.git/blobdiff - stdio/FreeBSD/fgetwln.c.patch
Libc-825.24.tar.gz
[apple/libc.git] / stdio / FreeBSD / fgetwln.c.patch
diff --git a/stdio/FreeBSD/fgetwln.c.patch b/stdio/FreeBSD/fgetwln.c.patch
deleted file mode 100644 (file)
index ee02383..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
---- fgetwln.c.orig     2005-09-14 19:51:14.000000000 -0700
-+++ fgetwln.c  2005-09-14 19:53:18.000000000 -0700
-@@ -35,7 +35,7 @@
- #include "local.h"
- wchar_t *
--fgetwln(FILE * __restrict fp, size_t *lenp)
-+fgetwln_l(FILE * __restrict fp, size_t *lenp, locale_t loc)
- {
-       wint_t wc;
-       size_t len;
-@@ -44,7 +44,7 @@
-       ORIENT(fp, 1);
-       len = 0;
--      while ((wc = __fgetwc(fp)) != WEOF) {
-+      while ((wc = __fgetwc(fp, loc)) != WEOF) {
- #define       GROW    512
-               if (len * sizeof(wchar_t) >= fp->_lb._size &&
-                   __slbexpand(fp, (len + GROW) * sizeof(wchar_t)))
-@@ -65,3 +65,9 @@
-       *lenp = 0;
-       return (NULL);
- }
-+
-+wchar_t *
-+fgetwln(FILE * __restrict fp, size_t *lenp)
-+{
-+      return fgetwln_l(fp, lenp, __current_locale());
-+}