]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
move some selection related stuff over to textcursor.C
[lyx.git] / src / main.C
index 5b4fbc6424bc89a3ac2b17d71bd84b99e67049bf..1b21c24b6fa5868ebe24a6d7dedaaeb00cec5971 100644 (file)
@@ -1,40 +1,33 @@
-/* This file is part of
- * ====================================================== 
- * 
- *           LyX, The Document Processor
- *      
- *         Copyright 1995 Matthias Ettrich
- *          Copyright 1995-2000 The LyX Team.
+/**
+ * \file main.C
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
  *
- * ====================================================== */
+ * \author Lars Gullik Bjønnes
+ * \author Jean Marc Lasgouttes
+ */
 
 #include <config.h>
 
 #include "lyx_main.h"
 #include "gettext.h"
-#include "LString.h"
-#include "support/filetools.h"
 #include "support/os.h"
-#include "frontends/GUIRunTime.h"
 
+#ifdef HAVE_IOS
+#include <ios>
+#endif
 
 int main(int argc, char * argv[])
 {
+#ifdef HAVE_IOS
+       std::ios_base::sync_with_stdio(false);
+#endif
+
        os::init(&argc, &argv);
-       int const val = GUIRunTime::initApplication(argc, argv);
-       if (val)
-               return val;
 
-       // lyx_localedir is used by gettext_init() is we have
-       //   i18n support built-in
-       string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");
-       if (lyx_localedir.empty())
-               lyx_localedir = LOCALEDIR;
-       
        // initialize for internationalized version *EK*
-       locale_init(); 
-       gettext_init(lyx_localedir); 
+       locale_init();
 
-       LyX lyx(&argc, argv);
-       return 0; // SUCCESS
+       LyX lyx(argc, argv);
+       return 0;
 }