From 70e96e96440e058b6d32a0068a126f56546a2dca Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 13 Apr 2024 16:16:47 -0700 Subject: [PATCH] Added comments for special registers --- src/modal.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modal.c b/src/modal.c index 7688d6e..a414cce 100644 --- a/src/modal.c +++ b/src/modal.c @@ -48,18 +48,19 @@ put_reg(char r) char c, *s = regs[(int)r]; if(r == '~') { char buf; + /* special stdin */ while(fread(&buf, 1, 1, stdin) && buf >= ' ') *outp_++ = buf; } else if(s) { char *ss = walk(s); if(r == '*') { - /* implode */ + /* special implode */ if(*s == '(') { ss = walk(s); while(s < ss && (c = *s++)) if(!spacer(c)) *outp_++ = c; } - /* explode */ + /* special explode */ else { int i, depth = 0; while((c = *s++) && !spacer(c)) @@ -68,6 +69,7 @@ put_reg(char r) *outp_++ = ')'; } } else if(r == ':') { + /* special stdout */ if(*s == '(') s++, --ss; while(s < ss) { c = *s++;