Deleted Added
full compact
read.c (8870) read.c (26926)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 72 unchanged lines hidden (view full) ---

81read__fixio(fd, e)
82 int fd, e;
83{
84 switch (e) {
85 case -1: /* Make sure that the code is reachable */
86
87#ifdef EWOULDBLOCK
88 case EWOULDBLOCK:
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Christos Zoulas of Cornell University.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 72 unchanged lines hidden (view full) ---

81read__fixio(fd, e)
82 int fd, e;
83{
84 switch (e) {
85 case -1: /* Make sure that the code is reachable */
86
87#ifdef EWOULDBLOCK
88 case EWOULDBLOCK:
89# define TRY_AGAIN
89# ifndef TRY_AGAIN
90# define TRY_AGAIN
91# endif
90#endif /* EWOULDBLOCK */
91
92#if defined(POSIX) && defined(EAGAIN)
93# if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
94 case EAGAIN:
92#endif /* EWOULDBLOCK */
93
94#if defined(POSIX) && defined(EAGAIN)
95# if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
96 case EAGAIN:
95# define TRY_AGAIN
97# ifndef TRY_AGAIN
98# define TRY_AGAIN
99# endif
96# endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */
97#endif /* POSIX && EAGAIN */
98
99 e = 0;
100#ifdef TRY_AGAIN
101# if defined(F_SETFL) && defined(O_NDELAY)
102 if ((e = fcntl(fd, F_GETFL, 0)) == -1)
103 return -1;

--- 270 unchanged lines hidden (view full) ---

374 /* use any return value */
375 switch (retval) {
376 case CC_CURSOR:
377 el->el_state.argument = 1;
378 el->el_state.doingarg = 0;
379 re_refresh_cursor(el);
380 break;
381
100# endif /* EWOULDBLOCK && EWOULDBLOCK != EAGAIN */
101#endif /* POSIX && EAGAIN */
102
103 e = 0;
104#ifdef TRY_AGAIN
105# if defined(F_SETFL) && defined(O_NDELAY)
106 if ((e = fcntl(fd, F_GETFL, 0)) == -1)
107 return -1;

--- 270 unchanged lines hidden (view full) ---

378 /* use any return value */
379 switch (retval) {
380 case CC_CURSOR:
381 el->el_state.argument = 1;
382 el->el_state.doingarg = 0;
383 re_refresh_cursor(el);
384 break;
385
386 case CC_REDISPLAY:
387 re_clear_lines(el);
388 re_clear_display(el);
389 /* FALLTHROUGH */
390
382 case CC_REFRESH:
383 el->el_state.argument = 1;
384 el->el_state.doingarg = 0;
385 re_refresh(el);
386 break;
387
388 case CC_NORM: /* normal char */
389 el->el_state.argument = 1;

--- 48 unchanged lines hidden ---
391 case CC_REFRESH:
392 el->el_state.argument = 1;
393 el->el_state.doingarg = 0;
394 re_refresh(el);
395 break;
396
397 case CC_NORM: /* normal char */
398 el->el_state.argument = 1;

--- 48 unchanged lines hidden ---