This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

struct __ios_flags in c++io.h


Files
* /usr/include/c++/3.3.1/i686-pc-cygwin/bits/c++io.h
* /usr/include/c++/3.3.1/i686-pc-mingw32/bits/c++io.h
contain struct __ios_flags.

// for ios_base.h
struct __ios_flags
{
  typedef short __int_type;

  static const __int_type _S_boolalpha    = 0x0001;
  static const __int_type _S_dec          = 0x0002;
  static const __int_type _S_fixed        = 0x0004;
  static const __int_type _S_hex          = 0x0008;
  static const __int_type _S_internal     = 0x0010;
  static const __int_type _S_left         = 0x0020;
  static const __int_type _S_oct          = 0x0040;
  static const __int_type _S_right        = 0x0080;
  static const __int_type _S_scientific   = 0x0100;
  static const __int_type _S_showbase     = 0x0200;
  static const __int_type _S_showpoint    = 0x0400;
  static const __int_type _S_showpos      = 0x0800;
  static const __int_type _S_skipws       = 0x1000;
  static const __int_type _S_unitbuf      = 0x2000;
  static const __int_type _S_uppercase    = 0x4000;
  static const __int_type _S_adjustfield  = 0x0020 | 0x0080 | 0x0010;
  static const __int_type _S_basefield    = 0x0002 | 0x0040 | 0x0008;
  static const __int_type _S_floatfield   = 0x0100 | 0x0004;

[---omitted--]

};


>From the design point of view it might be preferable to define
* _S_adjustfield
* _S_basefield
* _S_floatfield
as following :

  ---------------------------------------
  static const __int_type _S_adjustfield  = _S_left | _S_right | _S_internal;
  static const __int_type _S_basefield    = _S_dec | _S_oct | _S_hex;
  static const __int_type _S_floatfield   = _S_scientific | _S_fixed;
  ---------------------------------------

--
   =====================================
   Alex Vinokur
     mailto:alexvn@connect.to
     http://mathforum.org/library/view/10978.html
     news://news.gmane.org/gmane.comp.lang.c++.perfometer
   =====================================






--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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