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 /main.cpp | |
parent | ec510eda5f080d39906c396a36cba89188031640 (diff) | |
download | sciteco-df9f83a249e59867373e06c79aa8f57a5c9640b7.tar.gz |
cleanup macro execution functions: common namespace, Execute::file() uses Execute::macro()
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -100,8 +100,8 @@ process_options(int &argc, char **&argv) int main(int argc, char **argv) { - static GotoTable cmdline_goto_table; - static QRegisterTable local_qregs; + static GotoTable cmdline_goto_table; + static QRegisterTable local_qregs; process_options(argc, argv); @@ -135,9 +135,10 @@ main(int argc, char **argv) } if (g_file_test(mung_file, G_FILE_TEST_IS_REGULAR)) { - if (!file_execute(mung_file, false)) + if (!Execute::file(mung_file, false)) exit(EXIT_FAILURE); - /* FIXME: make quit immediate in commandline mode (non-UNDO)? */ + + /* FIXME: make quit immediate in batch/macro mode (non-UNDO)? */ if (quit_requested) { /* FIXME */ exit(EXIT_SUCCESS); |