Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7729 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
May 19, 2006, 3:07:09 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better debug names
As DEBUG and ERROR are already given to windows.h and other files:
DEBUG is renamed to DEBUG_LEVEL
and all
NO, ERR, WARN, INFO, DEBUG, vDEBUG
are renamed to
ORX_NONE, ORX_ERR, ORX_WARN, ORX_INFO, ORX_DEBUG, ORX_vDEBUG

Location:
trunk/src/lib/shell
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.cc

    r7375 r7729  
    103103
    104104    SDL_mutexP(ShellBuffer::bufferMutex);
    105 #if DEBUG < 3
     105#if DEBUG_LEVEL < 3
    106106    if (ShellBuffer::singletonRef == NULL)
    107107#endif
    108108      vprintf(line, arguments);
    109 #if DEBUG < 3
     109#if DEBUG_LEVEL < 3
    110110    else
    111111#else
     
    180180
    181181  /**
    182    * displays some nice output from the Shell
     182   * @brief displays some nice output from the Shell
    183183   */
    184184  void ShellBuffer::debug() const
  • trunk/src/lib/shell/shell_input.cc

    r7676 r7729  
    4444
    4545    this->inputLine = "";
    46     this->historyIT = this->history.begin();
     46    this->historyIT = ShellInput::history.begin();
    4747    this->setHistoryLength(50);
    4848    this->historyScrolling = false;
     
    6565  }
    6666
     67  std::list<std::string> ShellInput::history;
     68
    6769  /**
    6870   * @brief standard deconstructor
    6971   */
    7072  ShellInput::~ShellInput ()
    71 {}
     73  {}
    7274
    7375  /**
     
    173175
    174176    // adding the new Command to the History
    175     this->history.push_back(this->inputLine);
     177    if (history.back() != this->inputLine)
     178      this->history.push_back(this->inputLine);
    176179    if (this->history.size() > this->historyLength)
    177180    {
  • trunk/src/lib/shell/shell_input.h

    r7458 r7729  
    6969    Uint16                            pressedKey;       //!< the pressed key that will be repeated.
    7070
    71     std::list<std::string>            history;          //!< The history of given commands.
     71    static std::list<std::string>     history;          //!< The history of given commands.
    7272    std::list<std::string>::iterator  historyIT;        //!< The locator that tells us, where we are in the history.
    7373    unsigned int                      historyLength;    //!< The maximum length of the InputHistory.
Note: See TracChangeset for help on using the changeset viewer.