Changeset 2796 in Sophya for trunk/SophyaLib/SysTools/commander.cc
- Timestamp:
- Jun 3, 2005, 4:54:59 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/commander.cc
r2779 r2796 178 178 string line; 179 179 while (!is.eof()) { 180 /* Reza, Juin 2005 : Remplace par getline(istream, string) - plus sur 181 is.getline(buff, 256); line += buff; */ 180 182 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()) { 185 186 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 } 190 190 } 191 191 }
Note:
See TracChangeset
for help on using the changeset viewer.