static void
expr_error (void *aux UNUSED, const char *format, ...)
{
- struct error e;
+ struct msg m;
va_list args;
/* FIXME: we can do better about saying where the error
occurred. */
- e.category = MSG_SYNTAX;
- e.severity = MSG_ERROR;
- err_location (&e.where);
+ m.category = MSG_SYNTAX;
+ m.severity = MSG_ERROR;
+ msg_location (&m.where);
va_start (args, format);
- e.text = xvasprintf (format, args);
+ m.text = xvasprintf (format, args);
va_end (args);
- err_msg (&e);
+ msg_emit (&m);
}
double