refer7.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/*
* Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
* All Rights Reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "refer..c"
#include <locale.h>
int newr[250];
char *tag;
{
int i;
for(i = 1; i <= refnum; i++) {
return(i);
}
while (*rtp++);
return(0);
}
dumpold()
{
if (!endpush)
return;
if (sort) {
char comm[100];
}
return;
flout();
if (c == '\n') {
nr++;
g1 = 0;
}
if (c == sep)
c = '\n';
if (c == FLAG) {
/* make old-new ref number table */
char tb[20];
char *s = tb;
*s++ = c;
*s = 0;
if (g1++ == 0)
#if EBUG
# endif
continue;
}
}
#ifndef TF
#endif
}
char *fnam;
{
int c;
int wcnt = 0;
int wsize = 50;
int finalrn;
extern int *realloc();
exit(1);
}
if (c == FLAG) {
char tb[10];
char *s = tb;
*s++ = c;
*s = 0;
/*
* If sort was done, permute the reference number
* to obtain the final reference number, finalrn.
*/
if (sort)
else
exit(1);
}
continue;
wcnt = 0;
}
putchar(c);
}
}
/*
* sort and condense reference signals when they are placed in
* the text. Viz, the signal 1,2,3,4 is condensed to 1-4 and signals
* of the form 5,2,9 are converted to 2,5,9
*/
int *wref;
int wcnt;
char *sig;
{
register int i = 0;
char wt[4];
extern int wswap();
sig[0] = 0;
while (i < wcnt) {
i++;
} else if (++i < wcnt)
}
}
{
}