aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-21 21:49:19 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-22 01:18:06 +0100
commit5611d53c8c5ecf586233636d6090ce7e47644e04 (patch)
tree3e14daa1cb71778d5f54a3714eaba32fdc226eae /src/interface.h
parent8f0e72f0fedbfc8e4f26bff93472d0c1d59247df (diff)
downloadsciteco-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/interface.h')
-rw-r--r--src/interface.h3
1 files changed, 2 insertions, 1 deletions
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,