legibility

This commit is contained in:
tg 2016-02-26 17:58:30 +00:00
parent 2a3773b70b
commit 80027c9e53
1 changed files with 4 additions and 4 deletions

8
tree.c
View File

@ -23,7 +23,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.81 2016/01/21 18:24:45 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/tree.c,v 1.82 2016/02/26 17:58:30 tg Exp $");
#define INDENT 8 #define INDENT 8
@ -817,7 +817,7 @@ dumpwdvar_i(struct shf *shf, const char *wp, int quotelevel)
return (--wp); return (--wp);
case ADELIM: case ADELIM:
if (*wp == /*{*/'}') { if (*wp == /*{*/'}') {
shf_puts("]ADELIM(})", shf); shf_puts(/*{*/ "]ADELIM(})", shf);
return (wp + 1); return (wp + 1);
} }
shf_puts("ADELIM=", shf); shf_puts("ADELIM=", shf);
@ -852,10 +852,10 @@ dumpwdvar_i(struct shf *shf, const char *wp, int quotelevel)
shf_puts("EXPRSUB<", shf); shf_puts("EXPRSUB<", shf);
goto dumpsub; goto dumpsub;
case OQUOTE: case OQUOTE:
shf_fprintf(shf, "OQUOTE{%d", ++quotelevel); shf_fprintf(shf, "OQUOTE{%d" /*}*/, ++quotelevel);
break; break;
case CQUOTE: case CQUOTE:
shf_fprintf(shf, "%d}CQUOTE", quotelevel); shf_fprintf(shf, /*{*/ "%d}CQUOTE", quotelevel);
if (quotelevel) if (quotelevel)
quotelevel--; quotelevel--;
else else