From eee4f1ae84bcbb18a9ac0f5f450510533014dd40 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 13 Dec 2014 08:53:42 +0100 Subject: added EL command for setting/getting the EOL mode --- src/expressions.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/expressions.h') diff --git a/src/expressions.h b/src/expressions.h index e4b8908..5c2aa7e 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -170,6 +170,18 @@ public: tecoInt push(tecoInt number); + /** + * Push characters of a C-string. + * Could be overloaded on push(tecoInt) + * but this confuses GCC. + */ + inline void + push_str(const gchar *str) + { + while (*str) + push(*str++); + } + inline tecoInt peek_num(int index = 1) { -- cgit v1.2.3