1
0
Fork 0

Even our comments and status messages have less bugs now (jomalin)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3764
This commit is contained in:
Peter Veenstra 2011-12-08 12:47:04 +00:00
parent fc1ffcc528
commit a7af902f2f
19 changed files with 26 additions and 26 deletions

View file

@ -49,14 +49,14 @@ typedef std::list<std::string>::iterator auto_it;
void VFILE_Remove(const char *name);
void AutoexecObject::Install(const std::string &in) {
if(GCC_UNLIKELY(installed)) E_Exit("autoexec: allready created %s",buf.c_str());
if(GCC_UNLIKELY(installed)) E_Exit("autoexec: already created %s",buf.c_str());
installed = true;
buf = in;
autoexec_strings.push_back(buf);
this->CreateAutoexec();
//autoexec.bat is normally created AUTOEXEC_Init.
//But if we are allready running (first_shell)
//But if we are already running (first_shell)
//we have to update the envirionment to display changes
if(first_shell) {
@ -77,7 +77,7 @@ void AutoexecObject::Install(const std::string &in) {
}
void AutoexecObject::InstallBefore(const std::string &in) {
if(GCC_UNLIKELY(installed)) E_Exit("autoexec: allready created %s",buf.c_str());
if(GCC_UNLIKELY(installed)) E_Exit("autoexec: already created %s",buf.c_str());
installed = true;
buf = in;
autoexec_strings.push_front(buf);

View file

@ -287,7 +287,7 @@ void DOS_Shell::CMD_ECHO(char * args){
args++;//skip first character. either a slash or dot or space
size_t len = strlen(args); //TODO check input of else ook nodig is.
if(len && args[len - 1] == '\r') {
LOG(LOG_MISC,LOG_WARN)("Hu ? carriage return allready present. Is this possible?");
LOG(LOG_MISC,LOG_WARN)("Hu ? carriage return already present. Is this possible?");
WriteOut("%s\n",args);
} else WriteOut("%s\r\n",args);
}

View file

@ -299,7 +299,7 @@ void DOS_Shell::InputCommand(char * line) {
}
res=DOS_FindNext();
}
/* Add excutable list to front of completion list. */
/* Add executable list to front of completion list. */
std::copy(executable.begin(),executable.end(),std::front_inserter(l_completion));
it_completion = l_completion.begin();
dos.dta(save_dta);