Subversion Repositories SvarDOS

Rev

Rev 352 | Rev 357 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
352 mateuszvis 1
/* entry point for internal commands
2
 * matches internal commands and executes them
353 mateuszvis 3
 * returns -1 or exit code if processed
4
 * returns -2 if command unrecognized */
352 mateuszvis 5
 
6
#include <i86.h>
7
#include <stdio.h>
8
 
9
#include "helpers.h"
10
 
11
#include "cmd/set.c"
12
 
13
#include "cmd.h"
14
 
15
int cmd_process(int argc, const char **argv, unsigned short env_seg) {
16
 
17
  if (imatch(argv[0], "set")) return(cmd_set(argc, argv, env_seg));
18
 
353 mateuszvis 19
  return(-2); /* command is not recognized as internal */
352 mateuszvis 20
}