Lines Matching refs:sp
31 dump(register Rskey_t* kp, Sfio_t* sp, register Rskeyfield_t* fp, const char* type)
33 dump(kp, sp, fp, type)
35 Sfio_t* sp;
40 sfprintf(sp, "%s[%d]\n", type, fp->index);
41 sfprintf(sp, "\tbegin field = %d\n", fp->begin.field);
42 sfprintf(sp, "\t begin char = %d\n", fp->begin.index);
43 sfprintf(sp, "\t end field = %d\n", fp->end.field);
44 sfprintf(sp, "\t end char = %d\n", fp->end.index);
45 sfprintf(sp, "\t ccode = %d\n", fp->code);
46 sfprintf(sp, "\t coder = %c\n", fp->flag ? fp->flag : '?');
47 sfprintf(sp, "\t keep = %s\n", fp->keep == kp->state->all ? "all" : fp->keep == kp->state->print ? "print" : fp->keep == kp->state->dict ? "dict" : fp->keep ? "UNKNOWN" : "all");
48 sfprintf(sp, "\t trans = %s\n", fp->trans == kp->state->ident ? "ident" : fp->trans == kp->state->fold ? "fold" : fp->trans ? "UNKNOWN" : "ident");
49 sfprintf(sp, "\t bflag = %d\n", fp->bflag);
50 sfprintf(sp, "\t eflag = %d\n", fp->eflag);
51 sfprintf(sp, "\t rflag = %d\n", fp->rflag);
52 sfprintf(sp, "\t style = %s\n", fp->standard ? "standard" : "obsolete");
61 rskeydump(register Rskey_t* kp, register Sfio_t* sp)
63 rskeydump(kp, sp)
65 register Sfio_t* sp;
70 sfprintf(sp, "state\n");
71 sfprintf(sp, "\tmethod=%s\n", kp->meth->name);
72 sfprintf(sp, "\tinsize=%ld outsize=%ld\n", kp->insize, kp->outsize);
73 sfprintf(sp, "\talignsize=%ld procsize=%ld recsize=%ld\n", kp->alignsize, kp->procsize, kp->recsize);
74 sfprintf(sp, "\tmerge=%d reverse=%d stable=%d uniq=%d ignore=%d verbose=%d\n", kp->merge, !!(kp->type & RS_REVERSE), !(kp->type & RS_DATA), !!(kp->type & RS_UNIQ), !!(kp->type & RS_IGNORE), kp->verbose);
75 sfprintf(sp, "\ttab='%s' keys=%s maxfield=%d", kp->tab[0] ? (char*)kp->tab : " ", kp->coded ? "coded" : "", kp->field.maxfield);
77 sfprintf(sp, " fixed=%d", kp->fixed);
79 sfprintf(sp, " nproc=%d", kp->nproc);
80 sfprintf(sp, "\n");
81 sfprintf(sp, "\trecord format %s data%s 0x%08x key%s %d\n", fmtrec(kp->disc->data, 0), (kp->disc->type & RS_DSAMELEN) ? " DSAMELEN" : "", kp->disc->data, (kp->disc->type & RS_KSAMELEN) ? " KSAMELEN" : "", kp->disc->keylen);
83 dump(kp, sp, fp, "field");
85 dump(kp, sp, fp, "accumulate");