Changeset 2093 in Sophya
- Timestamp:
- Jul 15, 2002, 12:59:07 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/ProgPI/piapp.cc
r1972 r2093 133 133 (double)PI_VERSIONNUMBER, (double)skyinit.Version()); 134 134 135 char *vcmds ;135 char *vcmds=NULL; 136 136 if (fgtmp) { 137 137 if (tmpdir[tmpdir.length()-1] != '/') tmpdir += '/'; // Necessaire pour SetSwapPath … … 182 182 int rc = 0; 183 183 bool cont = true; 184 char ans[32],rep;184 char rep; // ans[32] 185 185 int excnt = 0; 186 186 while(cont) { … … 189 189 if (fgred) app->RedirectStdOutErr(true); 190 190 try { 191 app->Run();192 } 191 app->Run(); 192 } 193 193 catch(PThrowable exc) { // Catching SOPHYA exceptions 194 194 app->Stop(); … … 199 199 cout << ++excnt << "- continue <CR>, Close Windows, " 200 200 << " continue C<CR> Stop program S<CR> ? " << endl; 201 gets(ans);202 rep = toupper( ans[0]);201 rep = getchar(); // was: gets(ans); 202 rep = toupper(rep); 203 203 if (rep == 'S') { 204 204 cout << " !!!! Stopping piapp !!!! " << endl; … … 222 222 cout << ++excnt << "- continue <CR>, Close Windows, " 223 223 << " continue C<CR> Stop program S<CR> ? " << endl; 224 gets(ans);225 rep = toupper( ans[0]);224 rep = getchar(); // gets(ans); 225 rep = toupper(rep); 226 226 if (rep == 'S') { 227 227 cout << " !!!! Stopping piapp !!!! " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.