From a97a514aba426c11ef77945687a42b6e1cf869f1 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 22 Feb 2009 18:53:03 +0000 Subject: [PATCH] gmatchx debug (if 0'd) --- misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/misc.c b/misc.c index 805ad83..f3707cc 100644 --- a/misc.c +++ b/misc.c @@ -6,7 +6,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.95 2009/02/22 18:02:31 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.96 2009/02/22 18:53:03 tg Exp $"); #undef USE_CHVT #if defined(TIOCSCTTY) && !defined(MKSH_SMALL) @@ -485,6 +485,13 @@ gmatchx(const char *s, const char *p, bool isfile) if (s == NULL || p == NULL) return 0; + +#if 0 + /* debugging output */ + fprintf(stderr, "gmatchx:\n\tstring =`%s`\n\tpattern=`%s`\n", s, p); + fflush(stderr); +#endif + se = s + strlen(s); pe = p + strlen(p); /* isfile is false iff no syntax check has been done on