Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio g/c #if 0.



details:   https://anonhg.NetBSD.org/src/rev/defc7cf7796f
branches:  trunk
changeset: 518896:defc7cf7796f
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Dec 07 12:18:53 2001 +0000

description:
g/c #if 0.

diffstat:

 lib/libc/stdio/wcio.h |  23 +----------------------
 1 files changed, 1 insertions(+), 22 deletions(-)

diffs (50 lines):

diff -r cb8f240ce6ad -r defc7cf7796f lib/libc/stdio/wcio.h
--- a/lib/libc/stdio/wcio.h     Fri Dec 07 12:10:09 2001 +0000
+++ b/lib/libc/stdio/wcio.h     Fri Dec 07 12:18:53 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wcio.h,v 1.1 2001/12/07 12:02:07 yamt Exp $ */
+/* $NetBSD: wcio.h,v 1.2 2001/12/07 12:18:53 yamt Exp $ */
 
 /*-
  * Copyright (c)2001 Citrus Project,
@@ -46,14 +46,6 @@
        int wcio_mode; /* orientation */
 };
 
-#if 0
-/*
- * XXX we use dynamically allocated storage
- * instead of changing sizeof(FILE) for now.
- */
-/* #define _FP_WCIO_HACK */
-#endif
-
 #define _SET_ORIENTATION(fp, mode) \
 do {\
        struct wchar_io_data *_wcio = WCIO_GET(fp);\
@@ -64,7 +56,6 @@
 /*
  * WCIO_FREE should be called by fclose
  */
-#ifndef _FP_WCIO_HACK
 #define WCIO_GET(fp) (&(_EXT(fp)->_wcio))
 #define WCIO_FREE(fp) \
 do {\
@@ -75,17 +66,5 @@
 do {\
        _EXT(fp)->_wcio.wcio_ungetwc_inbuf = 0;\
 } while (/*CONSTCOND*/0)
-#else /* _FP_WCIO_HACK */
-#define WCIO_GET(fp) _wcio_get(fp)
-#define WCIO_FREE(fp) _wcio_free(fp)
-#if 0 /* unused */
-#define WCIO_FREEUB(fp) _wcio_clear_ungetwc(fp)
-#endif
-struct wchar_io_data *_wcio_get(FILE *);
-void _wcio_free(FILE *fp);
-#if 0 /* unused */
-void _wcio_clear_ungetwc(FILE *fp)
-#endif
-#endif /* _FP_WCIO_HACK */
 
 #endif /*_WCIO_H_*/



Home | Main Index | Thread Index | Old Index