about summary refs log tree commit diff
path: root/Src/prompt.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-13 17:13:49 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-13 17:13:49 +0000
commit78ddb65f6c7ac4bd580be5a7987bf31f697558df (patch)
treec7a0958d5e0b6a72cb4bcf0053a443ecb05a4f16 /Src/prompt.c
parentfb658381f9b9d9619c0eea3040bc51916fcc4213 (diff)
downloadzsh-78ddb65f6c7ac4bd580be5a7987bf31f697558df.tar.gz
zsh-78ddb65f6c7ac4bd580be5a7987bf31f697558df.tar.xz
zsh-78ddb65f6c7ac4bd580be5a7987bf31f697558df.zip
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).
Diffstat (limited to 'Src/prompt.c')
-rw-r--r--Src/prompt.c13
1 files changed, 7 insertions, 6 deletions
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
 }