X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/13cdf208ed0f643dd00262ef87fcc7b83dab27a6..70b7c357476ed3525ddb5d2739e70690cfebb207:/src/named-ref.c diff --git a/src/named-ref.c b/src/named-ref.c index 41d9dc17..16937679 100644 --- a/src/named-ref.c +++ b/src/named-ref.c @@ -1,6 +1,6 @@ /* Named symbol references for Bison - Copyright 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2013 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -33,10 +33,14 @@ 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) { - if (r) - free (r); + free (r); } -