Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2008, 8:30:33 PM (16 years ago)
Author:
landauf
Message:

I start to like it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandEvaluation.cc

    r1427 r1430  
    110110                    {
    111111                        if (this->function_->getParamCount() == 0)
    112                             return /*CommandExecutor::complete*/(this->command_ = this->function_->getName());
     112                            return (this->command_ = this->function_->getName());
    113113                        else
    114                             return /*CommandExecutor::complete*/(this->command_ = this->function_->getName() + " ");
     114                            return (this->command_ = this->function_->getName() + " ");
    115115                    }
    116116                    else if (this->functionclass_)
    117                         return /*CommandExecutor::complete*/(this->command_ = this->functionclass_->getName() + " ");
     117                        return (this->command_ = this->functionclass_->getName() + " ");
    118118                    break;
    119119                case CS_Function:
     
    121121                    {
    122122                        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());
    124124                        else
    125                             return /*CommandExecutor::complete*/(this->command_ = this->functionclass_->getName() + " " + this->function_->getName() + " ");
     125                            return (this->command_ = this->functionclass_->getName() + " " + this->function_->getName() + " ");
    126126                    }
    127127                    break;
     
    129129                case CS_Params:
    130130                {
     131                    if (this->argument_ == "" && this->possibleArgument_ == "")
     132                        break;
     133
    131134                    unsigned int maxIndex = this->commandTokens_.size();
    132135                    if (this->command_[this->command_.size() - 1] != ' ')
     
    142145                    }
    143146
    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);
    145148                    break;
    146149                }
Note: See TracChangeset for help on using the changeset viewer.