summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/tc.prompt.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-11-30 21:05:33 +0000
committerache <ache@FreeBSD.org>2000-11-30 21:05:33 +0000
commit5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068 (patch)
treea212ee10b5214f5c4302ff44d44c2542d83cf7b6 /contrib/tcsh/tc.prompt.c
parentd7d472004aa5fe13bc67f9aa639952d978d342e9 (diff)
downloadFreeBSD-src-5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068.zip
FreeBSD-src-5e7fc01bd9bf3444f2d8b21ab1c56c1f2d599068.tar.gz
Initial import of slightly trimmed tcsh 6.10
Diffstat (limited to 'contrib/tcsh/tc.prompt.c')
-rw-r--r--contrib/tcsh/tc.prompt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tcsh/tc.prompt.c b/contrib/tcsh/tc.prompt.c
index aebb3ca..95d5641 100644
--- a/contrib/tcsh/tc.prompt.c
+++ b/contrib/tcsh/tc.prompt.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/tc.prompt.c,v 3.39 2000/06/10 19:20:01 kim Exp $ */
+/* $Header: /src/pub/tcsh/tc.prompt.c,v 3.41 2000/11/11 23:03:39 christos Exp $ */
/*
* tc.prompt.c: Prompt printing stuff
*/
@@ -36,7 +36,7 @@
*/
#include "sh.h"
-RCSID("$Id: tc.prompt.c,v 3.39 2000/06/10 19:20:01 kim Exp $")
+RCSID("$Id: tc.prompt.c,v 3.41 2000/11/11 23:03:39 christos Exp $")
#include "ed.h"
#include "tw.h"
@@ -357,7 +357,7 @@ tprintf(what, buf, fmt, siz, str, tim, info)
/* option to determine fixed # of dirs from path */
if (Scp == '.' || Scp == 'C') {
int skip;
-#ifdef WINNT
+#ifdef WINNT_NATIVE
if (z[1] == ':') {
*p++ = attributes | *z++;
*p++ = attributes | *z++;
@@ -369,7 +369,7 @@ tprintf(what, buf, fmt, siz, str, tim, info)
*p++ = attributes | *z++;
}while(*z != '/');
}
-#endif /* WINNT */
+#endif /* WINNT_NATIVE */
q = z;
while (*z) /* calc # of /'s */
if (*z++ == '/')
@@ -520,7 +520,7 @@ tprintf(what, buf, fmt, siz, str, tim, info)
break;
case '$':
sz = (int) (ep - p);
- (void) expdollar(&p, &cp, &pdirs, attributes);
+ (void) expdollar(&p, &cp, &sz, attributes);
break;
case '%':
*p++ = attributes | '%';
OpenPOWER on IntegriCloud