/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "refer..c"
#include <locale.h>
extern void err();
extern void flout();
static void condense(int *, int, char *);
int
{
int i;
for (i = 1; i <= refnum; i++) {
return (i);
}
while (*rtp++)
;
return (0);
}
void
dumpold(void)
{
if (!endpush)
return;
if (sort) {
}
return;
flout();
if (c == '\n') {
nr++;
g1 = 0;
}
if (c == sep)
c = '\n';
if (c == FLAG) {
/* make old-new ref number table */
char *s = tb;
*s++ = c;
*s = 0;
if (g1++ == 0)
#if EBUG
#endif
continue;
}
}
#ifndef TF
#endif
}
void
{
int c;
int wcnt = 0;
int finalrn;
extern int *realloc();
exit(1);
}
if (c == FLAG) {
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
"Ref condense out of memory."));
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
*/
static void
{
int i = 0;
extern int wswap();
sig[0] = 0;
while (i < wcnt) {
i++;
} else if (++i < wcnt)
}
}
int
{
}