added full line support
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@465
This commit is contained in:
parent
25692864a9
commit
46a1e79f94
2 changed files with 12 additions and 1 deletions
|
@ -369,3 +369,13 @@ CommandLine::CommandLine(char * name,char * cmdline) {
|
|||
}
|
||||
if (inword || inquote) cmds.push_back(str);
|
||||
}
|
||||
|
||||
void CommandLine::GetFullLine(char * in) {
|
||||
cmd_it it;
|
||||
*in=0;
|
||||
char spatie[2]={' ',0};
|
||||
for (it=cmds.begin();it!=cmds.end();it++) {
|
||||
strcat(in,spatie);
|
||||
strcat(in,(*it).c_str());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue