Lines Matching refs:variable

48 	Cxvariable_t*	variable;
58 Cxvariable_t* variable;
106 if (!(r = strcmp(ap->variable->name, bp->variable->name)))
108 if (cxisstring(ap->variable->type) || cxisbuffer(ap->variable->type))
135 Cxvariable_t* variable;
198 variable = 0;
203 if (!(variable = (Cxvariable_t*)(variable ? dtnext(cx->fields, variable) : dtfirst(cx->fields))))
206 else if (!(variable = cxvariable(cx, *argv, NiL, disc)))
208 if (variable->format.constraint || variable->format.map)
216 field->variable = variable;
229 sfprintf(expr->op, "%16s", field->variable->name);
230 if (field->variable->format.map)
232 if (constraint = field->variable->format.constraint)
238 if (cxisnumber(field->variable->type))
241 number(expr->op, "default", constraint->def->number, &field->variable->format);
243 number(expr->op, "min", constraint->min->number, &field->variable->format);
245 number(expr->op, "max", constraint->max->number, &field->variable->format);
247 else if (cxisstring(field->variable->type) && constraint->def)
295 x.data.variable = field->variable;
298 if (field->variable->format.map)
300 if (cxisstring(field->variable->type))
302 if (cxstr2num(cx, &field->variable->format, o.value.string.data, o.value.string.size, NiL))
305 (*disc->errorf)(NiL, disc, 1, "%s%s: %-.*s: unknown map name", cxlocation(cx, data), field->variable->name, o.value.string.size, o.value.string.data);
309 else if (cxisnumber(field->variable->type))
311 if (cxnum2str(cx, &field->variable->format, (Cxinteger_t)o.value.number, NiL))
314 (*disc->errorf)(NiL, disc, 1, "%s%s: %I*d: unknown map value", cxlocation(cx, data), field->variable->name, sizeof(Cxinteger_t), (Cxinteger_t)o.value.number);
319 if (constraint = field->variable->format.constraint)
323 if (cxisnumber(field->variable->type))
328 (*disc->errorf)(NiL, disc, 1, "%s%s: %1.15Lg violates min constraint %1.15Lg", cxlocation(cx, data), field->variable->name, o.value.number, constraint->min->number);
334 (*disc->errorf)(NiL, disc, 1, "%s%s: %1.15Lg violates max constraint %1.15Lg", cxlocation(cx, data), field->variable->name, o.value.number, constraint->max->number);
347 key.variable = field->variable;
351 n = cxsize(field->variable->type, &o.value);
372 o.type = field->variable->type;
407 val.type = ip->variable->type;
410 sfprintf(expr->op, "%16s %11I*u %*.*s\n", ip->variable->name, sizeof(ip->count), ip->count, val.value.string.size, val.value.string.size, val.value.string.data);
426 sfprintf(expr->op, "%16s %11I*u %11I*u %11I*u\n", field->variable->name, sizeof(field->invalid), field->invalid, sizeof(field->discarded), field->discarded, sizeof(field->repaired), field->repaired);