diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-20 01:57:14 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-20 06:07:34 +0100 |
commit | df9f83a249e59867373e06c79aa8f57a5c9640b7 (patch) | |
tree | 1a105e4c80877b58f3b0e5dfbe418910144f1077 /parser.h | |
parent | ec510eda5f080d39906c396a36cba89188031640 (diff) | |
download | sciteco-df9f83a249e59867373e06c79aa8f57a5c9640b7.tar.gz |
cleanup macro execution functions: common namespace, Execute::file() uses Execute::macro()
Diffstat (limited to 'parser.h')
-rw-r--r-- | parser.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -236,8 +236,6 @@ private: State *done(const gchar *str) throw (Error); }; -extern gint macro_pc; - namespace States { extern StateStart start; extern StateControl control; @@ -263,10 +261,15 @@ extern enum Mode { return STATE; \ } G_STMT_END +extern gint macro_pc; + extern gchar *strings[2]; extern gchar escape_char; -void macro_execute(const gchar *macro) throw (State::Error); -bool file_execute(const gchar *filename, bool locals = true); +namespace Execute { + void step(const gchar *macro) throw (State::Error); + void macro(const gchar *macro, bool locals = true) throw (State::Error); + bool file(const gchar *filename, bool locals = true); +} #endif |