Changeset 1230 for code/branches/console/src/core/CommandExecutor.cc
- Timestamp:
- May 4, 2008, 4:44:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandExecutor.cc
r1198 r1230 50 50 ConsoleCommandShortcutExtern(exec, AccessLevel::None); 51 51 ConsoleCommandShortcutExtern(echo, AccessLevel::None); 52 ConsoleCommandShortcutExtern(puts, AccessLevel::None); 52 53 53 54 ConsoleCommandShortcutExtern(read, AccessLevel::None); … … 92 93 std::string echo(const std::string& text) 93 94 { 95 std::cout << text << std::endl; 94 96 return text; 97 } 98 99 void puts(bool newline, const std::string& text) 100 { 101 if (newline) 102 std::cout << text << std::endl; 103 else 104 std::cout << text; 95 105 } 96 106 … … 384 394 if (useTcl) 385 395 { 386 return TclBind::eval(command);387 }388 else389 {390 if ((CommandExecutor::getEvaluation().processedCommand_ != command) || (CommandExecutor::getEvaluation().state_ == CS_Uninitialized)) 391 CommandExecutor::parse(command);392 393 return CommandExecutor::execute(CommandExecutor::getEvaluation()); 394 }396 std::string temp = getLowercase(removeTrailingWhitespaces(command)); 397 if (!(temp.find("tclthread") == 0 || temp.find("tclthreadmanager") == 0)) 398 return TclBind::eval(command); 399 } 400 401 if ((CommandExecutor::getEvaluation().processedCommand_ != command) || (CommandExecutor::getEvaluation().state_ == CS_Uninitialized)) 402 CommandExecutor::parse(command); 403 404 return CommandExecutor::execute(CommandExecutor::getEvaluation()); 395 405 } 396 406
Note: See TracChangeset
for help on using the changeset viewer.