Changeset 7211 in orxonox.OLD for branches/std/src/lib/shell
- Timestamp:
- Mar 10, 2006, 4:52:21 AM (19 years ago)
- Location:
- branches/std/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/shell/shell_command.cc
r7201 r7211 177 177 for (alias = ShellCommandClass::aliasList->begin(); alias != ShellCommandClass::aliasList->end(); alias++ ) 178 178 { 179 if ((*alias)->getName() != NULL && !strcmp((*alias)->getName(), inputSplits.getString(0)) && (*alias)->getCommand() != NULL &&179 if ((*alias)->getName() != NULL && inputSplits.getString(0) == (*alias)->getName() && (*alias)->getCommand() != NULL && 180 180 (*alias)->getCommand()->shellClass != NULL ) 181 181 { … … 198 198 for (commandClassIT = ShellCommandClass::commandClassList->begin(); commandClassIT != ShellCommandClass::commandClassList->end(); commandClassIT++) 199 199 { 200 if ((*commandClassIT)->getName() && !strcasecmp(inputSplits.getString(0), (*commandClassIT)->getName()))200 if ((*commandClassIT)->getName() && inputSplits.getString(0) == (*commandClassIT)->getName()) 201 201 { 202 202 //elemCL->getName(); … … 217 217 for (object = objectList->begin(); object != objectList->end(); object++) 218 218 { 219 if ((*object)->getName() != NULL && !strcasecmp((*object)->getName(), inputSplits.getString(1)))219 if ((*object)->getName() != NULL && inputSplits.getString(1) == (*object)->getName() ) 220 220 { 221 221 objectPointer = (*object); … … 235 235 for (cmdIT = commandClass->commandList.begin(); cmdIT != commandClass->commandList.end(); cmdIT++) 236 236 { 237 if ( !strcmp((*cmdIT)->getName(), inputSplits.getString(fktPos)))237 if (inputSplits.getString(fktPos) == (*cmdIT)->getName()) 238 238 { 239 239 if (objectPointer == NULL && (*cmdIT)->executor->getType() & Executor_Objective) -
branches/std/src/lib/shell/shell_completion.cc
r5885 r7211 93 93 completeString = ""; 94 94 else 95 completeString = inputSplits.getString(inputSplits.getCount()-1) ;95 completeString = inputSplits.getString(inputSplits.getCount()-1).c_str(); 96 96 97 97 // CLASS COMPLETION … … 111 111 (inputSplits.getCount() == 2 && emptyComplete == false)) 112 112 { 113 classID = ClassList::StringToID(inputSplits.getString(0) );113 classID = ClassList::StringToID(inputSplits.getString(0).c_str()); //FIXME 114 114 objectList = ClassList::getList((ClassID)classID); 115 115 if (classID != CL_NULL) … … 121 121 (inputSplits.getCount() == 3 && emptyComplete == false)) 122 122 { 123 classID = ClassList::StringToID(inputSplits.getString(0) );123 classID = ClassList::StringToID(inputSplits.getString(0) .c_str()); // FIXME 124 124 if (classID == CL_NULL) 125 125 return false; … … 133 133 this->objectComplete(completeString, classID); 134 134 if (completeType & SHELLC_FUNCTION) 135 this->functionComplete(completeString, inputSplits.getString(0) );135 this->functionComplete(completeString, inputSplits.getString(0).c_str()); // FIXME 136 136 if (completeType & SHELLC_ALIAS) 137 137 this->aliasComplete(completeString);
Note: See TracChangeset
for help on using the changeset viewer.