This commit was manufactured by cvs2svn to create tag
[lyx.git] / src / main.C
blob9b4d8ddd727956d578d1cd1d25020503277f7a74
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *          Copyright 1995 Matthias Ettrich
7  *          Copyright 1995-1999 The LyX Team.
8  *
9  *======================================================*/
11 #include <config.h>
12 #include FORMS_H_LOCATION
13 #include "lyx_main.h"
14 #include "gettext.h"
15 #include "LString.h"
16 #include "support/filetools.h"
18 // I keep these here so that it will be processed as early in
19 // the compilation process as possible.
20 #if !defined(FL_REVISION) || (FL_REVISION != 88 && FL_REVISION != 89) \
21                           || FL_VERSION != 0
22 #error LyX will not compile with this version of XForms.\
23        Please get version 0.89.\
24        If you want to try to compile anyway, delete this test in src/main.C.
25 #endif
28 int main(int argc, char *argv[]) {
29         // lyx_localedir is used by gettext_init() is we have
30         //   i18n support built-in
31         string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
32         if (lyx_localedir.empty())
33                 lyx_localedir = LOCALEDIR;
34         
35         // initialize for internationalized version *EK*
36         locale_init();
37         gettext_init();
39 #ifdef __EMX__
40         _wildcard(&argc, &argv);
41 #endif
43         LyX lyx(&argc,argv);
44         return 0; // ok