change "ConsolePauser.exe" to "consolepauser.exe" in all codes
This commit is contained in:
parent
dd92cfa6da
commit
babecbd3bc
|
@ -21,6 +21,7 @@
|
||||||
#include "executablerunner.h"
|
#include "executablerunner.h"
|
||||||
#include "ojproblemcasesrunner.h"
|
#include "ojproblemcasesrunner.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
#include "../systemconsts.h"
|
||||||
#include "../settings.h"
|
#include "../settings.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
|
@ -250,7 +251,7 @@ void CompilerManager::run(
|
||||||
.arg(sharedMemoryId,localizePath(filename)).arg(arguments);
|
.arg(sharedMemoryId,localizePath(filename)).arg(arguments);
|
||||||
|
|
||||||
//delete when thread finished
|
//delete when thread finished
|
||||||
execRunner = new ExecutableRunner(includeTrailingPathDelimiter(pSettings->dirs().appDir())+"ConsolePauser.exe",newArguments,workDir);
|
execRunner = new ExecutableRunner(includeTrailingPathDelimiter(pSettings->dirs().appDir())+CONSOLE_PAUSER,newArguments,workDir);
|
||||||
execRunner->setShareMemoryId(sharedMemoryId);
|
execRunner->setShareMemoryId(sharedMemoryId);
|
||||||
} else {
|
} else {
|
||||||
//delete when thread finished
|
//delete when thread finished
|
||||||
|
|
|
@ -3124,7 +3124,7 @@ void MainWindow::updateTools()
|
||||||
file.close();
|
file.close();
|
||||||
if (item->pauseAfterExit) {
|
if (item->pauseAfterExit) {
|
||||||
executeFile(
|
executeFile(
|
||||||
includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"ConsolePauser.exe",
|
includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+CONSOLE_PAUSER,
|
||||||
" 1 \""+localizePath(file.fileName())+"\" ",
|
" 1 \""+localizePath(file.fileName())+"\" ",
|
||||||
workDir, file.fileName());
|
workDir, file.fileName());
|
||||||
} else {
|
} else {
|
||||||
|
@ -3137,7 +3137,7 @@ void MainWindow::updateTools()
|
||||||
} else {
|
} else {
|
||||||
if (item->pauseAfterExit) {
|
if (item->pauseAfterExit) {
|
||||||
executeFile(
|
executeFile(
|
||||||
includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"ConsolePauser.exe",
|
includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+CONSOLE_PAUSER,
|
||||||
" 1 \""+program+"\" "+params,
|
" 1 \""+program+"\" "+params,
|
||||||
workDir, "");
|
workDir, "");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -321,10 +321,17 @@ void FormatterGeneralWidget::updateDemo()
|
||||||
Settings::CodeFormatter formatter(nullptr);
|
Settings::CodeFormatter formatter(nullptr);
|
||||||
updateCodeFormatter(formatter);
|
updateCodeFormatter(formatter);
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
QByteArray newContent = runAndGetOutput("astyle.exe",
|
QByteArray newContent = runAndGetOutput("astyle.exe",
|
||||||
pSettings->dirs().appDir(),
|
pSettings->dirs().appDir(),
|
||||||
formatter.getArguments(),
|
formatter.getArguments(),
|
||||||
content);
|
content);
|
||||||
|
#else
|
||||||
|
QByteArray newContent = runAndGetOutput(pSettings->environment().AStylePath(),
|
||||||
|
extractFileDir(pSettings->environment().AStylePath()),
|
||||||
|
formatter.getArguments(),
|
||||||
|
content);
|
||||||
|
#endif
|
||||||
ui->editDemo->document()->setText(newContent);
|
ui->editDemo->document()->setText(newContent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
#define APP_SETTSINGS_FILENAME "redpandacpp.ini"
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
#define CONSOLE_PAUSER "consolepauser.exe"
|
||||||
#define GCC_PROGRAM "gcc.exe"
|
#define GCC_PROGRAM "gcc.exe"
|
||||||
#define GPP_PROGRAM "g++.exe"
|
#define GPP_PROGRAM "g++.exe"
|
||||||
#define GDB_PROGRAM "gdb.exe"
|
#define GDB_PROGRAM "gdb.exe"
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
#define CLANG_CPP_PROGRAM "clang++.exe"
|
#define CLANG_CPP_PROGRAM "clang++.exe"
|
||||||
#define LLDB_MI_PROGRAM "lldb-mi.exe"
|
#define LLDB_MI_PROGRAM "lldb-mi.exe"
|
||||||
#elif defined(Q_OS_LINUX)
|
#elif defined(Q_OS_LINUX)
|
||||||
|
#define CONSOLE_PAUSER "consolepauser"
|
||||||
#define GCC_PROGRAM "gcc"
|
#define GCC_PROGRAM "gcc"
|
||||||
#define GPP_PROGRAM "g++"
|
#define GPP_PROGRAM "g++"
|
||||||
#define GDB_PROGRAM "gdb"
|
#define GDB_PROGRAM "gdb"
|
||||||
|
|
|
@ -157,7 +157,7 @@ int main(int argc, char** argv) {
|
||||||
// First make sure we aren't going to read nonexistent arrays
|
// First make sure we aren't going to read nonexistent arrays
|
||||||
if(argc < 4) {
|
if(argc < 4) {
|
||||||
printf("\n--------------------------------");
|
printf("\n--------------------------------");
|
||||||
printf("\nUsage: ConsolePauser.exe <0|1> <shared_memory_id> <filename> <parameters>\n");
|
printf("\nUsage: consolepauser <0|1> <shared_memory_id> <filename> <parameters>\n");
|
||||||
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
|
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
|
||||||
PauseExit(EXIT_SUCCESS,false);
|
PauseExit(EXIT_SUCCESS,false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -158,7 +158,7 @@ int main(int argc, char** argv) {
|
||||||
// First make sure we aren't going to read nonexistent arrays
|
// First make sure we aren't going to read nonexistent arrays
|
||||||
if(argc < 4) {
|
if(argc < 4) {
|
||||||
printf("\n--------------------------------");
|
printf("\n--------------------------------");
|
||||||
printf("\nUsage: ConsolePauser.exe <0|1> <shared_memory_id> <filename> <parameters>\n");
|
printf("\nUsage: consolepauser.exe <0|1> <shared_memory_id> <filename> <parameters>\n");
|
||||||
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
|
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
|
||||||
PauseExit(EXIT_SUCCESS,false);
|
PauseExit(EXIT_SUCCESS,false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue