#include "language.h"
#include "session.h"
#include "LColor.h"
+#include "lyx_cb.h"
#include "lyxfunc.h"
#include "lyxlex.h"
#include "lyxrc.h"
#endif
-extern void QuitLyX(bool);
-
extern LyXServer * lyxserver;
// This is the global bufferlist object
if (last_loaded) {
bool success = false;
if (last_loaded->dispatch(batch_command, &success)) {
- QuitLyX(false);
+ quitLyX(false);
exit(!success);
}
}
lyx_gui::start(batch_command, files);
else {
// Something went wrong above
- QuitLyX(false);
+ quitLyX(false);
exit(EXIT_FAILURE);
}
}