1
0
Fork 0

Rename boolean flag "exit" to "exit_flag"

Otherwise it's confusing when grepping code, and it confuses syntax
highlighter in various programs as well.
This commit is contained in:
Patryk Obara 2020-05-04 09:39:03 +02:00 committed by Patryk Obara
parent c183992dc2
commit 19267d00e2
3 changed files with 15 additions and 15 deletions

View file

@ -120,7 +120,7 @@ public:
Bit16u input_handle;
BatchFile * bf;
bool echo;
bool exit;
bool exit_flag;
bool call;
};

View file

@ -157,16 +157,16 @@ AutoexecObject::~AutoexecObject(){
}
DOS_Shell::DOS_Shell()
: Program(),
l_history{},
l_completion{},
completion_start(nullptr),
completion_index(0),
input_handle(STDIN),
bf(nullptr),
echo(true),
exit(false),
call(false)
: Program(),
l_history{},
l_completion{},
completion_start(nullptr),
completion_index(0),
input_handle(STDIN),
bf(nullptr),
echo(true),
exit_flag(false),
call(false)
{}
Bitu DOS_Shell::GetRedirection(char *s, char **ifn, char **ofn,bool * append) {
@ -375,7 +375,7 @@ void DOS_Shell::Run(void) {
InputCommand(input_line);
ParseLine(input_line);
}
} while (!exit);
} while (!exit_flag);
}
void DOS_Shell::SyntaxError(void) {

View file

@ -307,10 +307,10 @@ void DOS_Shell::CMD_ECHO(char * args){
} else WriteOut("%s\r\n",args);
}
void DOS_Shell::CMD_EXIT(char * args) {
void DOS_Shell::CMD_EXIT(char *args)
{
HELP("EXIT");
exit = true;
exit_flag = true;
}
void DOS_Shell::CMD_CHDIR(char * args) {