diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-21 21:49:19 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-02-22 01:18:06 +0100 |
commit | 5611d53c8c5ecf586233636d6090ce7e47644e04 (patch) | |
tree | 3e14daa1cb71778d5f54a3714eaba32fdc226eae /src/qregisters.cpp | |
parent | 8f0e72f0fedbfc8e4f26bff93472d0c1d59247df (diff) | |
download | sciteco-5611d53c8c5ecf586233636d6090ce7e47644e04.tar.gz |
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
Diffstat (limited to 'src/qregisters.cpp')
-rw-r--r-- | src/qregisters.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |