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:
parent
c183992dc2
commit
19267d00e2
3 changed files with 15 additions and 15 deletions
|
@ -120,7 +120,7 @@ public:
|
|||
Bit16u input_handle;
|
||||
BatchFile * bf;
|
||||
bool echo;
|
||||
bool exit;
|
||||
bool exit_flag;
|
||||
bool call;
|
||||
};
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue