Changeset 1430 for code/branches/console/src/core/CommandEvaluation.cc
- Timestamp:
- May 26, 2008, 8:30:33 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandEvaluation.cc
r1427 r1430 110 110 { 111 111 if (this->function_->getParamCount() == 0) 112 return /*CommandExecutor::complete*/(this->command_ = this->function_->getName());112 return (this->command_ = this->function_->getName()); 113 113 else 114 return /*CommandExecutor::complete*/(this->command_ = this->function_->getName() + " ");114 return (this->command_ = this->function_->getName() + " "); 115 115 } 116 116 else if (this->functionclass_) 117 return /*CommandExecutor::complete*/(this->command_ = this->functionclass_->getName() + " ");117 return (this->command_ = this->functionclass_->getName() + " "); 118 118 break; 119 119 case CS_Function: … … 121 121 { 122 122 if (this->function_->getParamCount() == 0) 123 return /*CommandExecutor::complete*/(this->command_ = this->functionclass_->getName() + " " + this->function_->getName());123 return (this->command_ = this->functionclass_->getName() + " " + this->function_->getName()); 124 124 else 125 return /*CommandExecutor::complete*/(this->command_ = this->functionclass_->getName() + " " + this->function_->getName() + " ");125 return (this->command_ = this->functionclass_->getName() + " " + this->function_->getName() + " "); 126 126 } 127 127 break; … … 129 129 case CS_Params: 130 130 { 131 if (this->argument_ == "" && this->possibleArgument_ == "") 132 break; 133 131 134 unsigned int maxIndex = this->commandTokens_.size(); 132 135 if (this->command_[this->command_.size() - 1] != ' ') … … 142 145 } 143 146 144 return /*CommandExecutor::complete*/(this->command_ = this->commandTokens_.subSet(0, maxIndex).join() + " " + this->argument_ + whitespace);147 return (this->command_ = this->commandTokens_.subSet(0, maxIndex).join() + " " + this->argument_ + whitespace); 145 148 break; 146 149 }
Note: See TracChangeset
for help on using the changeset viewer.