Lines Matching defs:fixed

30     "that describes fixed-width and/or field-delimited flat files. Public "
33 "[b!:binary?Enable the fixed binary record field optimization.]"
46 "[s:struct?Print the fixed width record schema C \bstruct\b on the standard"
124 size_t truncate; /* fixed width before truncation*/
201 size_t fixed; /* fixed size */
241 size_t fixed;
261 int fixed;
556 (*r->dss->disc->errorf)(r->dss, r->dss->disc, 1, "%s%s: variable field width %d exceeds fixed maximum %d -- maximum assumed", cxlocation(r->cx, r->record), w->field->variable.name, n, w->field->physical.format.width);
562 if (!flat->fixed)
723 if (flat->fixed && magicid->size != flat->fixed)
726 (*disc->errorf)(NiL, disc, 2, "%s: data size %d does not match schema size %d", file->path, magicid->size, flat->fixed);
732 (*disc->errorf)(NiL, disc, 2, "%s: data version %s is newer than schema version %s", file->path, fmtversion(magicid->size), fmtversion(flat->fixed));
847 if (flat->fixed && flat->terminator >= 0 && !flat->truncate.field)
855 if (s = (char*)sfreserve(file->io, flat->fixed, SF_LOCKR))
857 if ((j = sfvalue(file->io)) > flat->fixed)
858 j = flat->fixed + 1;
890 if (!(flat->truncate.field = newof(0, size_t, flat->fixed, 0)))
945 if (flat->fixed)
947 if (flat->sufficient = flat->fixed == (i - 1))
955 else if (i <= flat->fixed)
972 else if (i = flat->fixed)
1005 (*disc->errorf)(NiL, disc, 2, "%slast record truncated (%ld/%ld)", cxlocation(r->cx, record), (long)sfvalue(file->io), (long)flat->fixed);
1310 if (flat->fixed)
1312 if (flat->truncate.fixed)
1314 if (off > flat->fixed)
1316 off = flat->fixed;
1320 else if ((off + f->physical.format.width) >= flat->fixed)
1322 f->physical.format.width = flat->fixed - off;
1335 if (flat->fixed)
1365 i = roundof(flat->fixed, 8 * 1024);
1395 magicid.size = i = flat->fixed ? flat->fixed : sizeof(magicid);
2132 "WIDTH", "Field fixed width in bytes.",
2294 ((Size_t*)fp->prev->data)->fixed = strtoul(data, &e, 0);
2391 z->reserve = z->fixed;
2394 z->fixed = 0;
3129 int fixed;
3265 fixed = 1;
3300 flat->fixed += f->physical.format.width;
3305 fixed = 0;
3322 if (flat->record->fixed && flat->fixed > flat->record->reserve)
3324 flat->truncate.fixed = 1;
3336 (*disc->errorf)(NiL, disc, 1, "%s: maximum variable field size shortened from %d to %d to comply with fixed record size %d", f->variable.name, f->physical.format.width, n, flat->record->reserve);
3338 flat->truncate.fixed = 0;
3345 flat->fixed = flat->record->reserve;
3347 else if (!fixed)
3349 flat->fixed = 0;
3379 int fixed;
3478 if (!flat->fixed)
3583 if (flat->binary && (fixed = offset % 8))
3585 fixed = 8 - fixed;
3587 (*disc->errorf)(NiL, disc, 1, "%s: record has %u unused pad byte%s", flat->meth.name, fixed, fixed == 1 ? "" : "s");
3592 if (!flat->fixed)
3729 if (flat->binary && (fixed = offset % 8))
3731 fixed = 8 - fixed;
3732 sfprintf(sfstdout, "/* struct has %u unused pad byte%s */\n", fixed, fixed == 1 ? "" : "s");
3734 (*disc->errorf)(NiL, disc, 1, "%s: record has %u unused pad byte%s", flat->meth.name, fixed, fixed == 1 ? "" : "s");
3742 if (flat->binary && flat->fixed && !(flat->test & 0x0010))
3754 if (flat->record || (flat->fixed % 8))
3763 if (!flat->fixed || flat->record)
3774 "fixed-width and/or field-delimited flat file data",
3894 int fixed;
3953 fixed = flatten->flat->fixed;
3972 if (fixed && (f->variable.format.flags & CX_BINARY) && (offset % f->physical.format.width))