Lines Matching defs:expr

129 validate_beg(Cx_t* cx, Cxexpr_t* expr, void* data, Cxdisc_t* disc)
229 sfprintf(expr->op, "%16s", field->variable->name);
231 sfprintf(expr->op, " map");
235 sfprintf(expr->op, " name=%s", constraint->name);
237 sfprintf(expr->op, " external");
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);
248 sfprintf(expr->op, " default=\"%-.*s\"", constraint->def->string.size, constraint->def->string.data);
250 sfprintf(expr->op, " expression=\"%s\"", constraint->expression);
252 sfprintf(expr->op, " pattern=\"%s\"", constraint->pattern);
254 sfprintf(expr->op, "\n");
274 expr->data = state;
282 validate_sel(Cx_t* cx, Cxexpr_t* expr, void* data, Cxdisc_t* disc)
284 register State_t* state = (State_t*)expr->data;
390 validate_end(Cx_t* cx, Cxexpr_t* expr, void* data, Cxdisc_t* disc)
392 register State_t* state = (State_t*)expr->data;
404 sfprintf(expr->op, "%16s %11s %s\n", "FIELD", "COUNT", "VALUE");
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);
416 sfprintf(expr->op, "\n");
424 sfprintf(expr->op, "%16s %11s %11s %11s\n", "FIELD", "INVALID", "DISCARDED", "REPAIRED");
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);