projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bison: avoid warnings from static code analysis
[bison.git]
/
src
/
named-ref.c
diff --git
a/src/named-ref.c
b/src/named-ref.c
index 5f2fc904766c7fd8a964ce37c2459c94c2377d81..26f7ba8279e7811c8afa6740327350ed5b447534 100644
(file)
--- a/
src/named-ref.c
+++ b/
src/named-ref.c
@@
-1,6
+1,6
@@
/* Named symbol references for Bison
/* Named symbol references for Bison
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009
-2015
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
This file is part of Bison, the GNU Compiler Compiler.
@@
-33,9
+33,14
@@
named_ref_new (uniqstr id, location loc)
return res;
}
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)
{
free (r);
}
void
named_ref_free (named_ref *r)
{
free (r);
}
-