From d4e19b66249a8784943909ce236cf4bb2b95d00c Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 17 Mar 2011 21:58:40 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=A2=20make=20DEBUG:dumpchar()=20not=20sta?= =?UTF-8?q?tic=20(consider=20rolling=20into=20shf=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sh.h | 3 ++- tree.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sh.h b/sh.h index daf29dc..ce632c5 100644 --- a/sh.h +++ b/sh.h @@ -154,7 +154,7 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.446 2011/03/16 20:26:36 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.447 2011/03/17 21:58:38 tg Exp $"); #endif #define MKSH_VERSION "R39 2011/03/16" @@ -1751,6 +1751,7 @@ char *wdcopy(const char *, Area *); const char *wdscan(const char *, int); char *wdstrip(const char *, bool, bool); void tfree(struct op *, Area *); +void dumpchar(struct shf *, int); void dumptree(struct shf *, struct op *); void dumpwdvar(struct shf *, const char *); void vistree(char *, size_t, struct op *) diff --git a/tree.c b/tree.c index c8712ae..a10ec14 100644 --- a/tree.c +++ b/tree.c @@ -22,7 +22,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.40 2011/03/13 01:20:24 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.41 2011/03/17 21:58:40 tg Exp $"); #define INDENT 8 @@ -782,7 +782,7 @@ vistree(char *dst, size_t sz, struct op *t) } #ifdef DEBUG -static void +void dumpchar(struct shf *shf, int c) { if (((c & 0x60) == 0) || ((c & 0x7F) == 0x7F)) {