diff -c ./termcap.c e:./termcap.c *** ./termcap.c Mon Dec 03 00:21:46 1990 --- e:./termcap.c Sun Feb 03 12:37:12 1991 *************** *** 137,142 **** --- 137,156 ---- #endif + /*em: moved up */ + + /* Finding the termcap entry in the termcap data base */ + + struct buffer + { + char *beg; + int size; + char *ptr; + int ateof; + int full; + }; + + /* Forward declarations of static functions */ static void *xmalloc (int); *************** *** 376,391 **** (*outfun) (PC); } - /* Finding the termcap entry in the termcap data base */ - - struct buffer - { - char *beg; - int size; - char *ptr; - int ateof; - int full; - }; #ifdef VMS --- 390,395 ---- *************** *** 502,508 **** --- 506,516 ---- if ( tcfile[0] ) tem = strdup(tcfile); else + #ifdef EMX + tem = "\\EMX\\TERMCAP.DAT"; + #else tem = "C:\\ETC\\TERMCAP.DAT"; + #endif } } #else *************** *** 729,735 **** bcopy (bufp->ptr, buf, bufp->full -= bufp->ptr - buf); bufp->ptr = buf; } ! if (!(nread = read (fd, buf + bufp->full, bufp->size - bufp->full))) bufp->ateof = 1; bufp->full += nread; if (bufp->full != bufp->size) --- 737,743 ---- bcopy (bufp->ptr, buf, bufp->full -= bufp->ptr - buf); bufp->ptr = buf; } ! if (!(nread = read (fd, buf + bufp->full, bufp->size - bufp->full - 1))) bufp->ateof = 1; bufp->full += nread; if (bufp->full != bufp->size)