dst->end = src->end;
}
+struct msg_location *
+msg_location_merged (const struct msg_location *a,
+ const struct msg_location *b)
+{
+ struct msg_location *new = msg_location_dup (a);
+ if (b)
+ msg_location_merge (&new, b);
+ return new;
+}
+
struct msg_location *
msg_location_dup (const struct msg_location *src)
{
void msg_location_remove_columns (struct msg_location *);
void msg_location_merge (struct msg_location **, const struct msg_location *);
+struct msg_location *msg_location_merged (const struct msg_location *,
+ const struct msg_location *);
bool msg_location_is_empty (const struct msg_location *);
void msg_location_format (const struct msg_location *, struct string *);