From 78ddb65f6c7ac4bd580be5a7987bf31f697558df Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 13 Jan 2006 17:13:49 +0000 Subject: Got rid of some superfluous STOUC() calls (such as the ones I added for the arg of calls to nicechar(), which doesn't need this). --- Src/prompt.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Src/prompt.c') diff --git a/Src/prompt.c b/Src/prompt.c index 8b658883f..c09626e30 100644 --- a/Src/prompt.c +++ b/Src/prompt.c @@ -703,7 +703,7 @@ putpromptchar(int doprint, int endchar) static void pputc(char c) { - if(imeta(STOUC(c))) { + if (imeta(c)) { *bp++ = Meta; c ^= 32; } @@ -763,7 +763,7 @@ stradd(char *d) /* FALL THROUGH */ case MB_INVALID: /* Bad character. Take the next byte on its own. */ - pc = nicechar(STOUC(*ups)); + pc = nicechar(*ups); cnt = 1; memset(&mbs, 0, sizeof mbs); break; @@ -790,11 +790,12 @@ stradd(char *d) #else char *ps, *pc; addbufspc(niceztrlen(d)); - /* This loop puts the nice representation of the string into the prompt * - * buffer. */ - for(ps=d; *ps; ps++) - for(pc=nicechar(*ps == Meta ? STOUC(*++ps)^32 : STOUC(*ps)); *pc; pc++) + /* This loop puts the nice representation of the string into the + * prompt buffer. */ + for (ps = d; *ps; ps++) { + for (pc = nicechar(*ps == Meta ? *++ps^32 : *ps); *pc; pc++) *bp++ = *pc; + } #endif } -- cgit 1.4.1