static void
expr_evaluate (struct expression *e, const struct ccase *c, int case_idx,
static void
expr_evaluate (struct expression *e, const struct ccase *c, int case_idx,
void
expr_evaluate_str (struct expression *e, const struct ccase *c, int case_idx,
char *dst, size_t dst_size)
{
void
expr_evaluate_str (struct expression *e, const struct ccase *c, int case_idx,
char *dst, size_t dst_size)
{
assert (e->type == OP_string);
assert ((dst == NULL) == (dst_size == 0));
expr_evaluate (e, c, case_idx, &s);
assert (e->type == OP_string);
assert ((dst == NULL) == (dst_size == 0));
expr_evaluate (e, c, case_idx, &s);
buf_copy_rpad (dst, dst_size, s.string, s.length);
}
\f
buf_copy_rpad (dst, dst_size, s.string, s.length);
}
\f
- fprintf (stderr, "(%s = \"%.2s\")", name, ds_c_str (&tokstr));
+ fprintf (stderr, "(%s = \"%.2s\")", name, ds_cstr (&tokstr));
expr_evaluate (expr, c, 0, &s);
fputc ('"', stderr);
expr_evaluate (expr, c, 0, &s);
fputc ('"', stderr);