Changeset 5154 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 27, 2005, 2:00:47 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell.cc
r5152 r5154 83 83 ShellCommand<Shell>::registerCommand("testB", CL_SHELL, &Shell::testB); 84 84 ShellCommand<Shell>::registerCommand("testF", CL_SHELL, &Shell::testF); 85 ShellCommand<Shell>::registerCommand("testSF", CL_SHELL, &Shell::testSF); 85 86 } 86 87 … … 109 110 PRINTF(3)("This is the Test for one Float '%f'\n", f); 110 111 } 112 113 void Shell::testSF (const char* s, float f) 114 { 115 PRINTF(3)("This is the Test for one String '%s' and one Float '%f'\n",s , f); 116 } 117 111 118 112 119 -
trunk/src/util/shell.h
r5152 r5154 43 43 void testB (bool b); 44 44 void testF (float f); 45 void testSF (const char* s, float f); 45 46 46 47 void activate(); -
trunk/src/util/shell_command.cc
r5148 r5154 152 152 while(*commandBegin == ' ') 153 153 commandBegin++; 154 if (strncmp (commandBegin, elem->getName(), strlen(elem->getName()))) 154 if (strncmp (commandBegin, elem->getName(), strlen(elem->getName())) || 155 *(commandBegin + strlen(elem->getName())) != ' ' && 156 *(commandBegin + strlen(elem->getName())) != '\0') 155 157 { 156 158 elem = iterator->nextElement();
Note: See TracChangeset
for help on using the changeset viewer.