Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!sunybcs!colonel From: colonel@sunybcs.UUCP (Col. G. L. Sicherman) Newsgroups: net.bugs.4bsd Subject: disambiguation in bib - CORRECTED Message-ID: <1384@sunybcs.UUCP> Date: Thu, 6-Nov-86 12:54:15 EST Article-I.D.: sunybcs.1384 Posted: Thu Nov 6 12:54:15 1986 Date-Received: Fri, 7-Nov-86 22:52:02 EST Organization: DALEK Reproducing Equipment, Inc. Lines: 42 Here's a correction to the disambiguation fix. To summarize the problem: [Abel 1986a] [Abel 1986b] [Abel 1986c] [Abel and Baker 1986] [Abel 1986a] (should be 1986d) [Abel 1986b] (should be 1986e) The source file is bibargs.c. ----- 994a995,999 > /* > * Bug fix: if sort template != citation template, equal citation > * strings may not be adjacent. Quick kluge is to compare all > * strings (yuk). --the Colonel, 6 Nov 1986 > */ 999,1009c1004,1010 < for (i = 0; i < numrefs-1; i = j) { < j = i + 1; < if (strcmp(refinfo[i].ri_cite, refinfo[j].ri_cite)==0) { < adstr = 'a'; < for(j = i+1; < j for (i = 0; i < numrefs-1; i++) { > adstr = 'a'; > if (!refinfo[i].ri_disambig[0]) > for (j = i + 1; j < numrefs; j++) > if (strcmp(refinfo[i].ri_cite, refinfo[j].ri_cite)==0) { > refinfo[i].ri_disambig[0] = 'a'; > refinfo[j].ri_disambig[0] = ++adstr; -- Col. G. L. Sicherman UU: ...{rocksvax|decvax}!sunybcs!colonel CS: colonel@buffalo-cs BI: colonel@sunybcs, csdsiche@sunyabvc