Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 352 → Rev 353

/svarcom/cmd.c
1,6 → 1,7
/* entry point for internal commands
* matches internal commands and executes them
* returns exit code or -1 if not processed */
* returns -1 or exit code if processed
* returns -2 if command unrecognized */
 
#include <i86.h>
#include <stdio.h>
15,5 → 16,5
 
if (imatch(argv[0], "set")) return(cmd_set(argc, argv, env_seg));
 
return(-1);
return(-2); /* command is not recognized as internal */
}