diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-07-14 15:32:48 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-07-14 15:32:48 +0200 |
commit | 7a851424152a942443190ac34856c08d8dfe7580 (patch) | |
tree | ce9d234d60934e1cb5fbc20fcc1f6e6b677b492d /src/spawn.cpp | |
parent | 45e2f9a5c6a8ac29ce9fa1bf2e18343098c4a050 (diff) | |
download | sciteco-7a851424152a942443190ac34856c08d8dfe7580.tar.gz |
fixed error message for Qq if <q> does not exist
* the problem comes from StateExpectQReg resetting the QRegMachine
too early. StateExpectQReg(QREG_OPTIONAL) states cannot call
machine.fail() in their got_register() callback.
In other words, commands with both optional or required registers
depending on runtime state cannot be modelled with StateExpectQReg.
* instead we derive from State directly - most functionality is
encapsulated in QRegSpecMachine anyway.
* might also fix crashes on some systems.
Diffstat (limited to 'src/spawn.cpp')
0 files changed, 0 insertions, 0 deletions