Subversion Repositories SvarDOS

Rev

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

Rev 357 Rev 363
Line 4... Line 4...
4
 * returns -2 if command unrecognized */
4
 * returns -2 if command unrecognized */
5
 
5
 
6
#include <i86.h>
6
#include <i86.h>
7
#include <stdio.h>
7
#include <stdio.h>
8
 
8
 
-
 
9
#include "doserr.h"
9
#include "helpers.h"
10
#include "helpers.h"
10
 
11
 
-
 
12
#include "cmd/cd.c"
11
#include "cmd/set.c"
13
#include "cmd/set.c"
12
 
14
 
13
#include "cmd.h"
15
#include "cmd.h"
14
 
16
 
15
int cmd_process(int argc, const char **argv, unsigned short env_seg, const char far *cmdline) {
17
int cmd_process(int argc, const char **argv, unsigned short env_seg, const char far *cmdline) {
16
 
18
 
-
 
19
  if ((imatch(argv[0], "cd")) || (imatch(argv[0], "chdir"))) return(cmd_cd(argc, argv));
17
  if (imatch(argv[0], "set")) return(cmd_set(argc, argv, env_seg, cmdline));
20
  if (imatch(argv[0], "set")) return(cmd_set(argc, argv, env_seg, cmdline));
18
 
21
 
19
  return(-2); /* command is not recognized as internal */
22
  return(-2); /* command is not recognized as internal */
20
}
23
}