diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-22 19:30:58 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-11-22 19:52:47 +0100 |
commit | a6c13d77f2f5f504c7b99e66db5f7d52c1368b8a (patch) | |
tree | cb952691971c790a2b951dc5cac6068097355bb2 /src/qregisters.h | |
parent | 3af77d3e21cc154a24ecf37b83b217066d296ec9 (diff) | |
download | sciteco-a6c13d77f2f5f504c7b99e66db5f7d52c1368b8a.tar.gz |
allow setting the "*" register as an alternative to nEB
this is more consistent with SciTECO's idea of abstract registers
and allows the currend buffer to be saved on the Q-Register stack.
This allows the idiom: [* ! ...change current buffer... ! ]*
Diffstat (limited to 'src/qregisters.h')
-rw-r--r-- | src/qregisters.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qregisters.h b/src/qregisters.h index cf2c644..9a7618b 100644 --- a/src/qregisters.h +++ b/src/qregisters.h @@ -146,12 +146,9 @@ class QRegisterBufferInfo : public QRegister { public: QRegisterBufferInfo() : QRegister("*") {} - tecoInt - set_integer(tecoInt v) - { - return v; - } - void undo_set_integer(void) {} + /* setting "*" is equivalent to nEB */ + tecoInt set_integer(tecoInt v); + void undo_set_integer(void); tecoInt get_integer(void); |