Lines Matching refs:ssdisc
280 checkmark(Ss_t* ss, char** v, Ssdisc_t* ssdisc)
366 if (ssdisc->errorf)
367 (*ssdisc->errorf)(NiL, ssdisc, 2, "out of space");
389 Ssdisc_t* ssdisc;
391 if (!(ssdisc = newof(0, Ssdisc_t, 1, 0)))
397 ssinit(ssdisc, key->keydisc->errorf);
398 ssdisc->code = key->code;
413 if ((ssdisc->code = ccmapid(opt_info.arg)) < 0)
415 if (ssdisc->errorf)
416 (*ssdisc->errorf)(NiL, ssdisc, 2, "%s: invalid codeset name", opt_info.arg);
421 if (!(ss = ssopen(opt_info.arg, ssdisc)))
434 if (ssdd(opt_info.name, opt_info.arg, ssdisc))
440 if (ssdisc->errorf)
441 (*ssdisc->errorf)(NiL, ssdisc, 2, "%d: fixed record length mismatch -- %d expected", (int)opt_info.num, key->fixed);
456 if (!ss && !(ss = ssopen(NiL, ssdisc)))
483 if (ssdisc->errorf)
484 (*ssdisc->errorf)(NiL, ssdisc, ERROR_SYSTEM|2, "out of space");
509 if (checkmark(ss, key->input, ssdisc))
535 if (ssdisc->errorf)
536 (*ssdisc->errorf)(NiL, ssdisc, 2, "%s: format %s incompatible with %s format %s", s, fmtrec(f, 0), p, fmtrec(ss->format, 0));
561 if (ssdisc->errorf)
562 (*ssdisc->errorf)(NiL, ssdisc, 2, "%s: format %s incompatible with %s format %s", s, fmtrec(f, 0), p, fmtrec(ss->file->format, 0));
600 if (ssdisc->errorf)
601 (*ssdisc->errorf)(NiL, ssdisc, ERROR_SYSTEM|2, "out of space");
650 if (ssdisc->errorf)
651 (*ssdisc->errorf)(NiL, ssdisc, ERROR_SYSTEM|2, "out of space");
656 if (ssdisc->errorf)
657 (*ssdisc->errorf)(NiL, ssdisc, ERROR_SYSTEM|2, "%s: cannot write", junk);
668 if (ssdisc)
669 free(ssdisc);