Changeset 13899
- Timestamp:
- 05/26/12 10:47:21 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Readline.cc
r13897 r13899 72 72 Readline *Readline::This = 0; 73 73 bool Readline::fStopScript = false; 74 int Readline::fScriptDepth = 0; 74 75 std::string Readline::fScript; 75 76 … … 98 99 // 99 100 Readline::Readline(const char *prgname) : 100 fMaxLines(500), fLine(0), f ScriptDepth(0), fCompletion(0)101 fMaxLines(500), fLine(0), fLabel(-1), fCompletion(0) 101 102 { 102 103 if (This) … … 1019 1020 catch (const logic_error &e) 1020 1021 { 1021 fCommandLog << "# ERROR - Inavlid label '" << str.substr(1) << "'" << endl;1022 fCommandLog << "# ERROR[" << fScriptDepth << "] - Inavlid label '" << str.substr(1) << "'" << endl; 1022 1023 fLabel = -2; 1023 1024 return true; … … 1030 1031 if (fLabel>=0) 1031 1032 { 1032 fCommandLog << "# SKIP[" << f Label << "]:" << str << endl;1033 fCommandLog << "# SKIP[" << fScriptDepth << "]: " << fLabel << " - " << str << endl; 1033 1034 return true; 1034 1035 } … … 1358 1359 } 1359 1360 1360 fCommandLog << "# " << Time() << " - " << name << " (START"; 1361 if (fScriptDepth++==0) 1362 fStopScript = false; 1363 1364 fCommandLog << "# " << Time() << " - " << name << " (START[" << fScriptDepth<< "]"; 1361 1365 if (fLabel>=0) 1362 1366 fCommandLog << ':' << fLabel; 1363 1367 fCommandLog << ")" << endl; 1364 1365 if (fScriptDepth++==0)1366 fStopScript = false;1367 1368 1368 1369 fSection = -1; … … 1402 1403 SetSection(-3); 1403 1404 1405 fCommandLog << "# " << Time() << " - " << name << " (FINISHED[" << fScriptDepth<< "])" << endl; 1406 1404 1407 if (--fScriptDepth==0) 1405 1408 fStopScript = false; 1406 1407 fCommandLog << "# " << Time() << " - " << name << " (FINISHED)" << endl;1408 1409 1409 1410 return rc; -
trunk/FACT++/src/Readline.h
r13898 r13899 29 29 int fSection; 30 30 int fLabel; 31 intfScriptDepth;31 static int fScriptDepth; 32 32 static bool fStopScript; 33 33 static std::string fScript; … … 108 108 static void StopScript() { fStopScript = true; } 109 109 static bool IsScriptStopped() { return fStopScript; } 110 static int GetScriptDepth() { return fScriptDepth; } 110 111 111 112 static std::string GetScript() { return fScript; }
Note:
See TracChangeset
for help on using the changeset viewer.