ex (not vi) can now edit files with lines of arbitrary length.

This commit is contained in:
Gunnar Ritter
2005-08-04 15:23:39 +00:00
parent 2b70d8e5eb
commit b0ff1d6b3e
26 changed files with 183 additions and 105 deletions

View File

@@ -81,7 +81,7 @@
#ifdef FASTTAG
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_tagio.c 1.11 (gritter) 11/27/04";
static char sccsid[] = "@(#)ex_tagio.c 1.12 (gritter) 8/4/05";
#endif
#endif
@@ -92,7 +92,7 @@ static char sccsid[] = "@(#)ex_tagio.c 1.11 (gritter) 11/27/04";
static long offset = -1;
static long block = -1;
static int bcnt = 0;
static int b_size = MAXBSIZE;
static int b_size;
static char *ibuf;
int
@@ -101,6 +101,7 @@ topen(char *file, char *buf)
int fd;
struct stat statb;
b_size = MAXBSIZE;
offset = -1;
block = -1;
if ((fd = open(file, O_RDONLY, 0)) < 0)