Commit db851ad6 authored by phlo's avatar phlo

typos

parent 0c5d1b99
......@@ -188,7 +188,7 @@ struct Encoder
//
virtual void encode () = 0;
// double-dispatched instruction encoding functions
// double-dispatched instruction encoding functions (runtime polymorphism)
//
virtual std::string encode (const Instruction::Load &) = 0;
virtual std::string encode (const Instruction::Store &) = 0;
......
......@@ -496,6 +496,10 @@ void Thread::execute (const Instruction::Exit & e)
PUSH_BACK(pc);
}
//==============================================================================
// non-member operators
//==============================================================================
std::ostream & operator << (std::ostream & os, Thread::State s)
{
return os << static_cast<char>(s);
......
......@@ -239,7 +239,7 @@ struct Thread
};
//==============================================================================
// operators
// non-member operators
//==============================================================================
std::ostream & operator << (std::ostream & os, Thread::State state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment