Add some new function and clean up
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1793
This commit is contained in:
parent
2339e11d9c
commit
c7e25e08b7
2 changed files with 13 additions and 16 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: shell.h,v 1.4 2004-03-10 13:35:03 qbix79 Exp $ */
|
||||
/* $Id: shell.h,v 1.5 2004-05-11 18:58:18 harekiet Exp $ */
|
||||
|
||||
#ifndef SHELL_H_
|
||||
#define SHELL_H_
|
||||
|
@ -57,9 +57,7 @@ public:
|
|||
};
|
||||
|
||||
class DOS_Shell : public Program {
|
||||
|
||||
private:
|
||||
|
||||
std::list<std::string> l_history, l_completion;
|
||||
|
||||
char *completion_start;
|
||||
|
@ -117,15 +115,12 @@ struct SHELL_Cmd {
|
|||
const char * help; /* String with command help */
|
||||
};
|
||||
|
||||
static inline void StripSpaces(char*&args)
|
||||
{
|
||||
static inline void StripSpaces(char*&args) {
|
||||
while(*args && ((*args == ' ') || (*args == '\t')))
|
||||
args++;
|
||||
}
|
||||
|
||||
|
||||
static inline char* ExpandDot(char*args, char* buffer)
|
||||
{
|
||||
static inline char* ExpandDot(char*args, char* buffer) {
|
||||
if(*args=='.')
|
||||
{
|
||||
if(*(args+1)==0)
|
||||
|
@ -146,5 +141,4 @@ static inline char* ExpandDot(char*args, char* buffer)
|
|||
return buffer;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue