2002-06-12 09:47:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file main.C
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-04-24 22:18:55 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Jean Marc Lasgouttes
|
2003-08-23 00:17:00 +00:00
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-06-12 09:47:10 +00:00
|
|
|
|
*/
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
|
|
#include <config.h>
|
2000-03-28 02:18:55 +00:00
|
|
|
|
|
2003-11-01 13:03:03 +00:00
|
|
|
|
#include "debug.h"
|
1999-09-27 18:44:28 +00:00
|
|
|
|
#include "lyx_main.h"
|
|
|
|
|
#include "gettext.h"
|
2004-04-13 06:27:29 +00:00
|
|
|
|
|
2001-05-17 15:11:01 +00:00
|
|
|
|
#include "support/os.h"
|
2002-11-08 11:37:42 +00:00
|
|
|
|
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#ifdef HAVE_IOS
|
2003-06-10 14:39:45 +00:00
|
|
|
|
#include <ios>
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#endif
|
2003-06-10 14:39:45 +00:00
|
|
|
|
|
2003-09-16 11:03:20 +00:00
|
|
|
|
|
|
|
|
|
namespace os = lyx::support::os;
|
2003-09-09 22:13:45 +00:00
|
|
|
|
|
2000-03-28 02:18:55 +00:00
|
|
|
|
int main(int argc, char * argv[])
|
|
|
|
|
{
|
2003-06-11 07:10:07 +00:00
|
|
|
|
#ifdef HAVE_IOS
|
|
|
|
|
std::ios_base::sync_with_stdio(false);
|
|
|
|
|
#endif
|
2003-11-01 13:03:03 +00:00
|
|
|
|
// To avoid ordering of global object problems with some
|
|
|
|
|
// stdlibs we do the initialization here, but still as
|
|
|
|
|
// early as possible.
|
|
|
|
|
lyxerr.rdbuf(std::cerr.rdbuf());
|
2003-06-10 14:39:45 +00:00
|
|
|
|
|
2001-05-17 15:11:01 +00:00
|
|
|
|
os::init(&argc, &argv);
|
2000-06-12 11:27:15 +00:00
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
|
// initialize for internationalized version *EK*
|
2002-03-21 17:27:08 +00:00
|
|
|
|
locale_init();
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
2003-10-14 21:30:23 +00:00
|
|
|
|
LyX::exec(argc, argv);
|
2002-06-12 09:47:10 +00:00
|
|
|
|
return 0;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
}
|