[Move Hook `operator<' to BotInterp.C (cleaner source...) clinton@unknownlamer.org**20081115210429] { hunk ./source/BotInterp.C 38 +bool +Hook::operator< (const Hook & h) const +{ + if (priority < h.priority) + { + return true; + } + else if (priority > h.priority) + { + return false; + } + else if (fallthru && h.fallthru) + { + return false; + } + else if (fallthru && !h.fallthru) + { + return false; + } + else if (!fallthru && h.fallthru) + { + return true; + } + else + { + // NOTE: This should never be reached + return false; + } +} + hunk ./source/BotInterp.H 56 - bool operator< (const Hook &h) const - { - if (priority < h.priority) - { - return true; - } - else if (priority > h.priority) - { - return false; - } - else if (fallthru && h.fallthru) - { - return false; - } - else if (fallthru && !h.fallthru) - { - return false; - } - else if (!fallthru && h.fallthru) - { - return true; - } - else - { - // NOTE: This should never be reached - return false; - } - } + bool operator< (const Hook & h) const; }