aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/spawn.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-09 17:29:47 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-09 20:29:52 +0100
commit7746480307e003c5b94cff0af12952f1ab1bfe98 (patch)
tree321feb78027640f5dabc633c9108d28b3a65e2ba /src/spawn.h
parentacc911ae724d42aaa2fecaa6f9b30651a91ad240 (diff)
downloadsciteco-7746480307e003c5b94cff0af12952f1ab1bfe98.tar.gz
added EG command: pipe from buffer into Q-Register
Diffstat (limited to 'src/spawn.h')
-rw-r--r--src/spawn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/spawn.h b/src/spawn.h
index b6cb298..57b4f72 100644
--- a/src/spawn.h
+++ b/src/spawn.h
@@ -22,6 +22,7 @@
#include "sciteco.h"
#include "parser.h"
+#include "qregisters.h"
gchar **parse_shell_command_line(const gchar *cmdline, GError **error);
@@ -49,8 +50,17 @@ private:
State *done(const gchar *str);
};
+class StateEGCommand : public StateExpectQReg {
+public:
+ StateEGCommand() : StateExpectQReg(true) {}
+
+private:
+ State *got_register(QRegister &reg);
+};
+
namespace States {
extern StateExecuteCommand executecommand;
+ extern StateEGCommand egcommand;
}
#endif