2002-06-12 09:47:10 +00:00
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
* \file main.cpp
|
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
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Lars Gullik Bjønnes
|
2003-04-24 22:18:55 +00:00
|
|
|
* \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
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
#include "LyX.h"
|
2004-04-13 06:27:29 +00:00
|
|
|
|
2007-11-30 20:57:53 +00:00
|
|
|
#include "support/debug.h"
|
2001-05-17 15:11:01 +00:00
|
|
|
#include "support/os.h"
|
2002-11-08 11:37:42 +00:00
|
|
|
|
2007-11-28 22:12:03 +00:00
|
|
|
#include <iostream>
|
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
|
|
|
|
2007-12-12 19:28:07 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
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
|
2007-12-12 19:28:07 +00:00
|
|
|
ios_base::sync_with_stdio(false);
|
2003-06-11 07:10:07 +00:00
|
|
|
#endif
|
2005-01-31 10:42:26 +00:00
|
|
|
|
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.
|
2007-12-12 19:28:07 +00:00
|
|
|
lyx::lyxerr.setStream(cerr);
|
2003-06-10 14:39:45 +00:00
|
|
|
|
2017-04-12 19:19:42 +00:00
|
|
|
lyx::support::os::init(argc, &argv);
|
2000-06-12 11:27:15 +00:00
|
|
|
|
2006-11-18 17:47:12 +00:00
|
|
|
lyx::LyX the_lyx_instance;
|
|
|
|
|
|
|
|
return the_lyx_instance.exec(argc, argv);
|
1999-09-27 18:44:28 +00:00
|
|
|
}
|