projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Robert de Bath's Big Patch, part 1
[u/mdw/putty]
/
raw.c
diff --git
a/raw.c
b/raw.c
index
3023d95
..
e65190f
100644
(file)
--- a/
raw.c
+++ b/
raw.c
@@
-14,8
+14,6
@@
static SOCKET s = INVALID_SOCKET;
static SOCKET s = INVALID_SOCKET;
-#define iswritable(x) ( (x) != IAC && (x) != CR )
-
static void raw_size(void);
static int sb_opt, sb_len;
static void raw_size(void);
static int sb_opt, sb_len;
@@
-50,16
+48,8
@@
static void s_write (void *buf, int len) {
}
static void c_write (char *buf, int len) {
}
static void c_write (char *buf, int len) {
- while (len--) {
- int new_head = (inbuf_head + 1) & INBUF_MASK;
- if (new_head != inbuf_reap) {
- inbuf[inbuf_head] = *buf++;
- inbuf_head = new_head;
- } else {
- term_out();
- if( inbuf_head == inbuf_reap ) len++; else break;
- }
- }
+ while (len--)
+ c_write1(*buf++);
}
/*
}
/*