Thread View: net.bugs.4bsd
1 messages
1 total messages
Started by Col. G. L. Sicherman
Thu, 06 Nov 1986 17:54
disambiguation in bib - CORRECTED
Author: Col. G. L. Sicherman
Date: Thu, 06 Nov 1986 17:54
Date: Thu, 06 Nov 1986 17:54
42 lines
1774 bytes
1774 bytes
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<numrefs && strcmp(refinfo[i].ri_cite,refinfo[j].ri_cite) == 0;
< j++) {
< adstr = 'a' + (j-i);
< refinfo[j].ri_disambig[0] = adstr;
< }
< refinfo[i].ri_disambig[0] = 'a';
---
> 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads