aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-20 01:57:14 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-20 06:07:34 +0100
commitdf9f83a249e59867373e06c79aa8f57a5c9640b7 (patch)
tree1a105e4c80877b58f3b0e5dfbe418910144f1077 /main.cpp
parentec510eda5f080d39906c396a36cba89188031640 (diff)
downloadsciteco-df9f83a249e59867373e06c79aa8f57a5c9640b7.tar.gz
cleanup macro execution functions: common namespace, Execute::file() uses Execute::macro()
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 312064f..05324d3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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);