Subversion Repositories SvarDOS

Rev

Rev 379 | Rev 382 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 379 Rev 380
Line 19... Line 19...
19
  unsigned short argoffset; /* offset of cmdline where first argument starts */
19
  unsigned short argoffset; /* offset of cmdline where first argument starts */
20
  const char far *cmdline;  /* original cmdline (terminated by \r) */
20
  const char far *cmdline;  /* original cmdline (terminated by \r) */
21
  char BUFFER[1024];        /* a buffer for whatever is needed */
21
  char BUFFER[1024];        /* a buffer for whatever is needed */
22
};
22
};
23
 
23
 
-
 
24
#include "cmd/_notimpl.c"
24
#include "cmd/cd.c"
25
#include "cmd/cd.c"
25
#include "cmd/dir.c"
26
#include "cmd/dir.c"
26
#include "cmd/exit.c"
27
#include "cmd/exit.c"
27
#include "cmd/path.c"
28
#include "cmd/path.c"
28
#include "cmd/prompt.c"
29
#include "cmd/prompt.c"
Line 36... Line 37...
36
  const char *cmd;
37
  const char *cmd;
37
  int (*func_ptr)(struct cmd_funcparam *); /* pointer to handling function */
38
  int (*func_ptr)(struct cmd_funcparam *); /* pointer to handling function */
38
};
39
};
39
 
40
 
40
const struct CMD_ID INTERNAL_CMDS[] = {
41
const struct CMD_ID INTERNAL_CMDS[] = {
-
 
42
  {"BREAK",   cmd_notimpl},
41
  {"CD",      cmd_cd},
43
  {"CD",      cmd_cd},
-
 
44
  {"CHCP",    cmd_notimpl},
42
  {"CHDIR",   cmd_cd},
45
  {"CHDIR",   cmd_cd},
-
 
46
  {"CLS",     cmd_notimpl},
-
 
47
  {"COPY",    cmd_notimpl},
-
 
48
  {"CTTY",    cmd_notimpl},
-
 
49
  {"DATE",    cmd_notimpl},
-
 
50
  {"DEL",     cmd_notimpl},
43
  {"DIR",     cmd_dir},
51
  {"DIR",     cmd_dir},
-
 
52
  {"ECHO",    cmd_notimpl},
-
 
53
  {"ERASE",   cmd_notimpl},
44
  {"EXIT",    cmd_exit},
54
  {"EXIT",    cmd_exit},
-
 
55
  {"LH",      cmd_notimpl},
-
 
56
  {"LOADHIGH",cmd_notimpl},
-
 
57
  {"MD",      cmd_notimpl},
-
 
58
  {"MKDIR",   cmd_notimpl},
-
 
59
  {"PAUSE",   cmd_notimpl},
45
  {"PATH",    cmd_path},
60
  {"PATH",    cmd_path},
46
  {"PROMPT",  cmd_prompt},
61
  {"PROMPT",  cmd_prompt},
-
 
62
  {"RD",      cmd_notimpl},
-
 
63
  {"REN",     cmd_notimpl},
-
 
64
  {"RENAME",  cmd_notimpl},
-
 
65
  {"RMDIR",   cmd_notimpl},
47
  {"SET",     cmd_set},
66
  {"SET",     cmd_set},
-
 
67
  {"TIME",    cmd_notimpl},
-
 
68
  {"TYPE",    cmd_notimpl},
48
  {"VER",     cmd_ver},
69
  {"VER",     cmd_ver},
-
 
70
  {"VERIFY",  cmd_notimpl},
-
 
71
  {"VOL",     cmd_notimpl},
49
  {NULL,      NULL}
72
  {NULL,      NULL}
50
};
73
};
51
 
74
 
52
 
75
 
53
/* NULL if cmdline is not matching an internal command, otherwise returns a
76
/* NULL if cmdline is not matching an internal command, otherwise returns a