Lines Matching defs:kp

31 dump(register Rskey_t* kp, Sfio_t* sp, register Rskeyfield_t* fp, const char* type)
33 dump(kp, sp, fp, type)
34 register Rskey_t* kp;
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");
61 rskeydump(register Rskey_t* kp, register Sfio_t* sp)
63 rskeydump(kp, sp)
64 register Rskey_t* kp;
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);
76 if (kp->fixed)
77 sfprintf(sp, " fixed=%d", kp->fixed);
78 if (kp->nproc > 1)
79 sfprintf(sp, " nproc=%d", kp->nproc);
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);
82 for (fp = &kp->field.global; fp; fp = fp->next)
83 dump(kp, sp, fp, "field");
84 for (fp = kp->accumulate.head; fp; fp = fp->next)
85 dump(kp, sp, fp, "accumulate");