From 5611d53c8c5ecf586233636d6090ce7e47644e04 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 21 Feb 2013 21:49:19 +0100 Subject: fixed global object initialization order issue * Scintilla is now initialized from main() using Interface::main() * Scintilla initialization depends on initialization of objects in the global namespace (otherwise the Lexer catalogue may not be filled properly and lexing may not work). Lexer modules were initialized after SciTECO interface initialization * merged Scintilla initialization (Interface::main()) with interface option parsing --- src/qregisters.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qregisters.cpp') diff --git a/src/qregisters.cpp b/src/qregisters.cpp index 41e1a16..69b3ea9 100644 --- a/src/qregisters.cpp +++ b/src/qregisters.cpp @@ -53,6 +53,12 @@ namespace States { } namespace QRegisters { + /* + * NOTE: the ctor will still be called before + * Scintilla is initialized. + * But the dtor is called before Scintilla + * destruction. + */ QRegisterTable globals INIT_PRIO(PRIO_INTERFACE+1); QRegisterTable *locals = NULL; QRegister *current = NULL; -- cgit v1.2.3