]> git.lyx.org Git - lyx.git/blob - src/main.C
more cursor dispatch
[lyx.git] / src / main.C
1 /**
2  * \file main.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  * \author Jean Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include "debug.h"
15 #include "lyx_main.h"
16 #include "gettext.h"
17 #include "support/os.h"
18
19 #ifdef HAVE_IOS
20 #include <ios>
21 #endif
22
23
24 namespace os = lyx::support::os;
25
26 int main(int argc, char * argv[])
27 {
28 #ifdef HAVE_IOS
29         std::ios_base::sync_with_stdio(false);
30 #endif
31         // To avoid ordering of global object problems with some
32         // stdlibs we do the initialization here, but still as
33         // early as possible.
34         lyxerr.rdbuf(std::cerr.rdbuf());
35
36         os::init(&argc, &argv);
37
38         // initialize for internationalized version *EK*
39         locale_init();
40
41         LyX::exec(argc, argv);
42         return 0;
43 }