]> git.lyx.org Git - lyx.git/blob - src/main.cpp
transfer os::is_absolute_path() to FileName::isAbsolute().
[lyx.git] / src / main.cpp
1 /**
2  * \file main.cpp
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 "LyX.h"
15
16 #include "support/debug.h"
17 #include "support/gettext.h"
18 #include "support/os.h"
19
20 #include <iostream>
21 #ifdef HAVE_IOS
22 #include <ios>
23 #endif
24
25 using namespace std;
26
27
28 int main(int argc, char * argv[])
29 {
30 #ifdef HAVE_IOS
31         ios_base::sync_with_stdio(false);
32 #endif
33
34         // To avoid ordering of global object problems with some
35         // stdlibs we do the initialization here, but still as
36         // early as possible.
37         lyx::lyxerr.setStream(cerr);
38
39         lyx::support::os::init(argc, argv);
40
41         // initialize for internationalized version *EK*
42         lyx::locale_init();
43
44         lyx::LyX the_lyx_instance;
45
46         return the_lyx_instance.exec(argc, argv);
47 }