From cbcda49236665b3721ee9c3c66aa4bad08d777b8 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 29 Jun 2015 14:45:41 +0200 Subject: MicroStateMachine::input() returns whether a result was set now * this means that QRegSpecMachine::input() no longer has to return a dummy QRegister in parse-only mode. This saves an unnecessary QRegister table lookup and speeds up parsing. * QRegSpecMachine can now be easily extended to behave differently when returning a Q-Register, e.g. simply returning NULL if a register does not exist, or returning a register by prefix. This is important for some planned commands. * StateExpectQReg::got_register() now gets a QRegister *. It can theoretically be NULL - still we don't have to check for NULL in most cases since NULL is only passed in parse-only mode. --- src/spawn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spawn.h') diff --git a/src/spawn.h b/src/spawn.h index 6ae84fd..e65f18e 100644 --- a/src/spawn.h +++ b/src/spawn.h @@ -60,7 +60,7 @@ public: StateEGCommand() : StateExpectQReg(true) {} private: - State *got_register(QRegister ®); + State *got_register(QRegister *reg); }; namespace States { -- cgit v1.2.3