- Timestamp:
- Sep 12, 2005, 12:30:32 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5176 r5177 719 719 720 720 721 char* tmpChar = ShellBuffer::getInstance()->getBufferIterator()->firstElement(); 722 while(tmpChar != NULL) 723 { 724 printf(tmpChar); 725 tmpChar = ShellBuffer::getInstance()->getBufferIterator()->nextElement(); 726 } 721 ShellBuffer::getInstance()->debug(); 727 722 } 728 723 -
trunk/src/lib/shell/shell_buffer.cc
r5176 r5177 40 40 this->bufferIterator = this->buffer->getIterator(); 41 41 42 this->setBufferSize(10 );42 this->setBufferSize(100); 43 43 } 44 44 … … 91 91 #endif 92 92 93 //vprintf(line, arguments);93 vprintf(line, arguments); 94 94 #if DEBUG < 3 95 95 else … … 195 195 delete charIterator; 196 196 } 197 198 /** 199 * displays some nice output from the Shell 200 */ 201 void ShellBuffer::debug() const 202 { 203 PRINT(3)("Debugging output to console (not this shell)\n"); 204 205 char* tmpChar = bufferIterator->firstElement(); 206 while(tmpChar != NULL) 207 { 208 printf(tmpChar); 209 tmpChar = bufferIterator->nextElement(); 210 } 211 } -
trunk/src/lib/shell/shell_buffer.h
r5176 r5177 39 39 /** @returns the Buffer Iterator, that enables externals to walk through the Buffer */ 40 40 inline tIterator<char>* getBufferIterator() const { return bufferIterator; }; 41 /** @returns the Count of lines processed by the Shell. 41 /** @returns the Count of lines processed by the Shell. */ 42 42 inline long getLineCount() const { return this->lineCount; }; 43 44 void debug() const; 43 45 44 46 private: -
trunk/src/orxonox.cc
r5175 r5177 96 96 ShellCommandClass::unregisterAllCommands(); 97 97 ShellCommandBase::debug(); 98 delete ShellBuffer::getInstance(); 98 99 99 100 delete EventHandler::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.