Ignore:
Timestamp:
Jun 3, 2005, 4:54:59 PM (20 years ago)
Author:
ansari
Message:

Remplacement is.getline(...) par getline(istream,string) - CxxCompilerLinker: ajout flag -pthread pour cxx et commandes pour icc (Intel) - Reza 3 Juin 2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/commander.cc

    r2779 r2796  
    178178  string line;
    179179  while (!is.eof()) {
     180    /* Reza, Juin 2005 : Remplace par getline(istream, string) - plus sur
     181       is.getline(buff, 256); line += buff;  */
    180182    rcc = 0;
    181     is.clear();
    182     is.getline(buff, 256);
    183     line += buff; 
    184     if (is.good()) {
     183    line = "";
     184    getline(is,line);
     185    if (is.good() || is.eof()) {
    185186      rcc = ExecuteOnce(line);
    186       line = "";
    187     }
    188     if (rcc == CMD_BREAKEXE_RC)  return rcc;
    189     else if (rcc == CMD_BREAK_RC)  break;
     187      if (rcc == CMD_BREAKEXE_RC)  return rcc;
     188      else if (rcc == CMD_BREAK_RC)  break;
     189    }
    190190  }
    191191}
Note: See TracChangeset for help on using the changeset viewer.