From b6251bff913972b5dfb421813fe97a5bfff3627f Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 18 Nov 2018 04:56:48 +0100 Subject: rc: implement $"x in terms of Xdol() and new Xqw() instruction to get $"1 right, remove Xqdol() and instead implement it in terms of Xdol() instruction and use the new Xqw() instruction to quote the resulting list. --- sys/src/cmd/rc/code.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/src/cmd/rc/code.c') diff --git a/sys/src/cmd/rc/code.c b/sys/src/cmd/rc/code.c index 927273275..4a415bd54 100644 --- a/sys/src/cmd/rc/code.c +++ b/sys/src/cmd/rc/code.c @@ -95,9 +95,11 @@ outcode(tree *t, int eflag) emitf(Xdol); break; case '"': + emitf(Xmark); emitf(Xmark); outcode(c0, eflag); - emitf(Xqdol); + emitf(Xdol); + emitf(Xqw); break; case SUB: emitf(Xmark); -- cgit v1.2.3