dj.1: reverts change to hex literals
This commit is contained in:
parent
aa074ad9b6
commit
fe0c631d42
2
src/dj.c
2
src/dj.c
@ -219,7 +219,7 @@ int main(int argc, char *argv[]) {
|
||||
if (c == 'c' && (count = parse(optarg)) >= 0) { break; }
|
||||
|
||||
i = (c >= 'A' && c <= 'Z');
|
||||
c |= 0b00100000; /* (ASCII) make lowercase */
|
||||
c |= 0x20 /* ASCII make lowercase 0b 0010 0000 */
|
||||
|
||||
if (
|
||||
(c == 'b' && (io[i].bs = parse(optarg)) > 0)
|
||||
|
@ -51,7 +51,7 @@ int main(int argc, char *argv[]) {
|
||||
while ((c = getc(stdin)) != EOF) {
|
||||
if ((c & 0x80) != 0) { fputs("M-", stdout); }
|
||||
|
||||
switch (c ^ 0b10000000) {
|
||||
switch (c ^ 0x80) { /* 0b 1000 0000 */
|
||||
case 0x7f: fputs("^?", stdout); break;
|
||||
case '\n': if (showend) { putc('$', stdout); }
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user