diff options
Diffstat (limited to 'sys/cmd/rc/exec.h')
-rw-r--r-- | sys/cmd/rc/exec.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/sys/cmd/rc/exec.h b/sys/cmd/rc/exec.h index 9edd9ed..635eb1d 100644 --- a/sys/cmd/rc/exec.h +++ b/sys/cmd/rc/exec.h @@ -2,24 +2,23 @@ /* * opcode routines - * Arguments on stack (...) - * Arguments in line [...] - * Code in line with jump around {...} + * arguments on stack (...) + * arguments in line [...] + * code in line with jump around {...} */ -void Xtrue(void); -void Xfalse(void); -void Xdollar(void); -void Xexit(void); -void Xmark(void); -void Xreturn(void); -void Xlocal(void); -void Xreadcmd(void); -void Xunlocal(void); +void Xmark(void); // Xmark marks stack location for word +void Xtrue(void); // Xtrue{...} execute {} if true +void Xfalse(void); // Xfalse{...} execute {} if false +void Xdollar(void); // Xdollar(name) get value of name +void Xindex(void); // Xindex +void Xlocal(void); // Xlocal(name,val) create local variable, assign value +void Xunlocal(void); // Xunlocal delete local variable +void Xreadcmd(void); // void Xassign(void); void Xbang(void); void Xasync(void); -void Xbasic(void); // Xbasic(args) run command and wait for result +void Xbasic(void); // Xbasic(args) run command and wait for result void Xsubshell(void); void Xword(void); void Xjoin(void); @@ -30,6 +29,9 @@ void Xpipe(void); void Xpipewait(void); void Xpopredir(void); +void Xreturn(void); +void Xexit(void); + void Xerror(char*); /* builtin commands */ |