summaryrefslogtreecommitdiff
path: root/src/named-ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/named-ref.c')
-rw-r--r--src/named-ref.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/named-ref.c b/src/named-ref.c
index 4bf3da12..132c7414 100644
--- a/src/named-ref.c
+++ b/src/named-ref.c
@@ -33,6 +33,12 @@ named_ref_new (uniqstr id, location loc)
return res;
}
+named_ref *
+named_ref_copy (const named_ref *r)
+{
+ return named_ref_new (r->id, r->loc);
+}
+
void
named_ref_free (named_ref *r)
{