aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/expressions.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-12-13 08:53:42 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-03-16 03:04:02 +0100
commiteee4f1ae84bcbb18a9ac0f5f450510533014dd40 (patch)
treece343a3229a43d80302c724443093052bcefc744 /src/expressions.h
parent2c0e9f747d2c3c842cefaafc38f03646ea7569ab (diff)
downloadsciteco-eee4f1ae84bcbb18a9ac0f5f450510533014dd40.tar.gz
added EL command for setting/getting the EOL mode
Diffstat (limited to 'src/expressions.h')
-rw-r--r--src/expressions.h12
1 files changed, 12 insertions, 0 deletions
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)
{