diff options
author | ru <ru@FreeBSD.org> | 2003-11-18 23:32:40 +0800 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-11-18 23:32:40 +0800 |
commit | b807b95134eb4c8d955a8e7f41d6334393ec991a (patch) | |
tree | 684fddd6432f44d18feb6032eaaf6cc168644fa3 /misc | |
parent | e28d25fe1242ae373c54312df12bcb4a2548b8c7 (diff) | |
download | freebsd-ports-gnome-b807b95134eb4c8d955a8e7f41d6334393ec991a.tar.gz freebsd-ports-gnome-b807b95134eb4c8d955a8e7f41d6334393ec991a.tar.zst freebsd-ports-gnome-b807b95134eb4c8d955a8e7f41d6334393ec991a.zip |
Allow to view large files with 2^31-1 (on i386) lines.
Submitted by: Ivan Pascal <pascal@info.tsu.ru>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/deco/Makefile | 2 | ||||
-rw-r--r-- | misc/deco/files/patch-af | 29 |
2 files changed, 20 insertions, 11 deletions
diff --git a/misc/deco/Makefile b/misc/deco/Makefile index 4678fbba558c..5754b9ef7c9e 100644 --- a/misc/deco/Makefile +++ b/misc/deco/Makefile @@ -7,7 +7,7 @@ PORTNAME= deco PORTVERSION= 3.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/misc/deco/files/patch-af b/misc/deco/files/patch-af index dc1b20e0308c..68e1550662c2 100644 --- a/misc/deco/files/patch-af +++ b/misc/deco/files/patch-af @@ -1,11 +1,20 @@ ---- rec.c.orig Thu Aug 16 17:29:07 2001 -+++ rec.c Thu Aug 16 17:29:35 2001 -@@ -61,7 +61,7 @@ - static char *scanbuf, *pbuf; - static char *tfilename; - static int eoln; --static int MAXLEN = ((unsigned int) (int) -1 >> 1) / sizeof (struct index); -+static int MAXLEN = 32767; +--- rec.h.orig Fri Jul 11 22:01:27 1997 ++++ rec.h Tue Nov 18 16:58:49 2003 +@@ -15,7 +15,7 @@ + + struct map { /* pool cell descriptor */ + short busy; /* cell busy */ +- short index; /* index in lindex */ ++ int index; /* index in lindex */ + long time; /* time of last access */ + }; + +@@ -37,7 +37,7 @@ + short fd; /* file descriptor */ + short bakfd; /* bak file descriptor */ + short tfd; /* temp file descriptor */ +- short len; /* length of file in lines */ ++ int len; /* length of file in lines */ + short broken; /* there are broken lines */ + } REC; - static int ffcopy (int from, int to) - { |