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/interface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interface.h') diff --git a/src/interface.h b/src/interface.h index 24c5b89..6f7bc84 100644 --- a/src/interface.h +++ b/src/interface.h @@ -63,7 +63,8 @@ public: { return NULL; } - virtual void parse_args(int &argc, char **&argv) {} + /* expected to initialize Scintilla */ + virtual void main(int &argc, char **&argv) = 0; enum MessageType { MSG_USER, -- cgit v1.2.3