aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-ncurses.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-01 19:34:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-01 19:34:23 +0100
commit9dd2447d42fd6c822139f3cd1fd2cd284346e5e8 (patch)
tree96f00124bc521f631567a619686da012bb199127 /src/interface-ncurses.cpp
parent850206158f6e77a4798f79fe293a7d7b7a7687f0 (diff)
downloadsciteco-9dd2447d42fd6c822139f3cd1fd2cd284346e5e8.tar.gz
fixed buffer Ring initialization
* there was a dependency on interface initialization. it did not cause issues because destruction order was by chance. * introduced INIT_PRIO and PRIO_* macros to easy initialization order declaration (using a PRIO_* formula makes code self-documenting) * also used this to clean up QRegisterTable initialization (we do not need the explicit initialize() method) * also used to clean up symbols initialization
Diffstat (limited to 'src/interface-ncurses.cpp')
-rw-r--r--src/interface-ncurses.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface-ncurses.cpp b/src/interface-ncurses.cpp
index 899043c..b850ad4 100644
--- a/src/interface-ncurses.cpp
+++ b/src/interface-ncurses.cpp
@@ -40,7 +40,7 @@
#include "interface.h"
#include "interface-ncurses.h"
-InterfaceNCurses interface;
+InterfaceNCurses interface INIT_PRIO(PRIO_INTERFACE);
extern "C" {
static void scintilla_notify(Scintilla *sci, int idFrom,