From 094d3c76925cf6c05a8bfcc112849627d16279b8 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 26 Oct 2021 09:44:47 -0700 Subject: feat(rc): added index operations --- sys/cmd/rc/exec.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'sys/cmd/rc/exec.h') 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 */ -- cgit v1.2.1