genericopenlibs/cppstdlib/stl/stlport/stl/_ios.c
branchRCL_3
changeset 3 18f64da82512
parent 0 e4d67989cc36
child 45 4b03adbd26ca
equal deleted inserted replaced
0:e4d67989cc36 3:18f64da82512
   108 {
   108 {
   109   this->rdbuf(__sb);
   109   this->rdbuf(__sb);
   110   this->imbue(locale());
   110   this->imbue(locale());
   111   this->tie(0);
   111   this->tie(0);
   112   this->_M_set_exception_mask(ios_base::goodbit);
   112   this->_M_set_exception_mask(ios_base::goodbit);
   113   this->_M_clear_nothrow(__sb != 0 ? ios_base::goodbit : ios_base::badbit);
   113   /*
       
   114     this->_M_clear_nothrow(__sb != 0 ? ios_base::goodbit : ios_base::badbit);
       
   115 	
       
   116   The ternary expression above, throws an undefined reference link error (for goodbit and badbit)
       
   117   when compiled with GCCE 4.3.2. Replacing ternary statement with an if-else block fixes this.
       
   118   */
       
   119   if(__sb != 0) {
       
   120 	this->_M_clear_nothrow(ios_base::goodbit);
       
   121   } else {
       
   122 	this->_M_clear_nothrow(ios_base::badbit);
       
   123   }
   114   ios_base::flags(ios_base::skipws | ios_base::dec);
   124   ios_base::flags(ios_base::skipws | ios_base::dec);
   115   ios_base::width(0);
   125   ios_base::width(0);
   116   ios_base::precision(6);
   126   ios_base::precision(6);
   117   this->fill(widen(' '));
   127   this->fill(widen(' '));
   118   // We don't need to worry about any of the three arrays: they are
   128   // We don't need to worry about any of the three arrays: they are