This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: V3 PATCH: Include libio.h where required


>>>>> "Benjamin" == Benjamin Kosnik <bkoz@redhat.com> writes:

    >> OK.
    >> 
    >> Can you explain why it is wrong?

    Benjamin> the whole point of that interface is so that libio won't
    Benjamin> be used.  Including libio.h is against the expressed
    Benjamin> purpose of this file.

That's what I thought, but I saw:

  #ifdef _GLIBCPP_USE_WCHAR_T
    typedef _IO_wide_data __c_wfile_type;
    extern "C" struct __c_libio_codecvt { };
  #endif 

So, I assumed that you must have intended to use libio for the
wide-character bits.

If that can go -- and if we can always make _GLIBCPP_USE_WCHAR_T false
when c_io_stdio is in use, then we can get rid of my change.  If you
approve that direction, I'll make the necessary changes, including the
minor configury bits.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]