projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ctrl macro for ANSI C
[unix-history]
/
usr
/
src
/
usr.bin
/
window
/
char.h
diff --git
a/usr/src/usr.bin/window/char.h
b/usr/src/usr.bin/window/char.h
index
4a0ab2d
..
64f752f
100644
(file)
--- a/
usr/src/usr.bin/window/char.h
+++ b/
usr/src/usr.bin/window/char.h
@@
-1,5
+1,5
@@
/*
/*
- * @(#)char.h 3.
3
%G%
+ * @(#)char.h 3.
4
%G%
*/
/*
*/
/*
@@
-23,7
+23,7
@@
char *_unctrl[];
char _cmap[];
char *_unctrl[];
char _cmap[];
-#define ctrl(c) (
'c'
& 0x1f)
+#define ctrl(c) (
c
& 0x1f)
#define unctrl(c) (_unctrl[(unsigned char) (c)])
#define _C 0x01
#define _P 0x02
#define unctrl(c) (_unctrl[(unsigned char) (c)])
#define _C 0x01
#define _P 0x02