[net.bugs.4bsd] refer

ables@mcc-db2.UUCP (King Ables) (12/05/85)

Well, I asked a while back if anyone had made any changes to the
set of refer programs from Berkeley to enlarge the size a bibliography
could be.  I never heard any response, so I finally had to go digging
through and do it (not that it was actually difficult, just boring and
time consuming).  I seem to have found all the places that needed to be
changed since we've been using our version a while and it's been working
well.  Just in case anyone else has ever wanted larger entries, I thought
I'd post the lines that need to be changed (since I sort of said I would
if no one else had alread done it).  Here are diffs from the five files
affected.  I used 2000 rather than 1000, of course, you can use whatever
limit for the entry you want, but I'm sure there's some point where it
becomes a bad tradeoff.

=======================================
glue1.c:
9c9
< int lmaster = 1000;
---
> int lmaster = 2000;
25c25
< static int full = 1000;
---
> static int full = 2000;
29,30c29,30
< int soutlen = 1000;
< int taglen = 1000;
---
> int soutlen = 2000;
> int taglen = 2000;
273c273
< 		return(1000);
---
> 		return(2000);
=======================================
hunt1.c:
16c16
< int soutlen =1000;
---
> int soutlen =2000;
24c24
< static int full =1000;
---
> static int full =2000;
218c218
< 					char bout[1000];
---
> 					char bout[2000];
228c228
< 						findline(oldtagp, bout, 1000);
---
> 						findline(oldtagp, bout, 2000);
262c262
< 		return(1000);
---
> 		return(2000);
=======================================
hunt6.c:
7c7
< #define TXTLEN 1000
---
> #define TXTLEN 2000
=======================================
kaiser.c:
14c14
< 	int state 1000, i, book, volume, corp, report;
---
> 	int state 2000, i, book, volume, corp, report;
17c17
< 	char ubuff[1000], *up;
---
> 	char ubuff[2000], *up;
=======================================
refer5.c:
207c207
< 				count=999;
---
> 				count=1999;
==========================================

Nothing incredibly difficult, but it might beat having to
look through there yourself.  I can't say I'm real impressed
with refer, though.  Oh, well, ours not to reason why... right?

-King
ARPA: ables@mcc
UUCP: {ihnp4,seismo,ctvax}!ut-sally!mcc-db2!ables

ken@rochester.UUCP (Ipse dixit) (12/10/85)

But but but... after you had spent all that trouble finding all those
references to 1000, why didn't you create a manifest constant via a
#define?

	Ken
-- 
UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken@rochester.arpa
USnail:	Dept. of Comp. Sci., U. of Rochester, NY 14627. Voice: Ken!