static char bflab[NFLAB];
static char *labtab[NLABC];
static char *lbp = bflab;
static char bflab[NFLAB];
static char *labtab[NLABC];
static char *lbp = bflab;
-putsig (nf, flds, nref, nstline, endline) /* choose signal style */
+putsig (nf, flds, nref, nstline, endline, toindex) /* choose signal style */
- char t[100], t1[100], t2[100], format[10], *sd, *stline;
+ char t[100], t1[MXSIG], t2[100], format[10], *sd, *stline;
- if (sort)
- sprintf(t, "%c%d%c", FLAG, nref, FLAG);
- else
- sprintf(t, "%d", nref);
+ sprintf(t, "%c%d%c", FLAG, nref, FLAG);
}
another = prefix (".[", sd=lookat());
if (another && (strcmp(".[\n", sd) != SAME))
fprintf(stderr, "File %s line %d: punctuation ignored from: %s",
Ifile, Iline, sd);
}
another = prefix (".[", sd=lookat());
if (another && (strcmp(".[\n", sd) != SAME))
fprintf(stderr, "File %s line %d: punctuation ignored from: %s",
Ifile, Iline, sd);
strcat(sig, t);
#if EBUG
fprintf(stderr, "sig is now %s leng %d\n",sig,strlen(sig));
strcat(sig, t);
#if EBUG
fprintf(stderr, "sig is now %s leng %d\n",sig,strlen(sig));
if (bare == 0) {
if (!another) {
sprintf(t1, "%s%s\%s\n", stline, sig, endline);
if (bare == 0) {
if (!another) {
sprintf(t1, "%s%s\%s\n", stline, sig, endline);
if (fo == ftemp) { /* hide if need be */
sprintf(hidenam, "/tmp/rj%dc", getpid());
#if EBUG
if (fo == ftemp) { /* hide if need be */
sprintf(hidenam, "/tmp/rj%dc", getpid());
#if EBUG
fhide = fopen(hidenam, "w");
if (fhide == NULL)
err("Can't get scratch file %s",
fhide = fopen(hidenam, "w");
if (fhide == NULL)
err("Can't get scratch file %s",
fprintf(fo,".ds [F %s%c",t,sep);
if (bare > 0)
flout();
fprintf(fo,".ds [F %s%c",t,sep);
if (bare > 0)
flout();
for(i = 1; i < nref; i++) {
if (strcmp(labtab[i], t) == 0)
for(i = 1; i < nref; i++) {
if (strcmp(labtab[i], t) == 0)
- fprintf(stderr, "lbp up to %d of 2000\n", lbp-bflab);
+ fprintf(stderr, "lbp up to %d of %d\n", lbp-bflab, NFLAB);