X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/7d424de14c0385012d328642bec6874c8e6cef17..38de4e570fdc7c8db9633c3b2054e565d8c1c6b9:/src/named-ref.h?ds=sidebyside diff --git a/src/named-ref.h b/src/named-ref.h index e821a662..e14ad26f 100644 --- a/src/named-ref.h +++ b/src/named-ref.h @@ -1,6 +1,6 @@ /* Named symbol references for Bison - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2012 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -20,8 +20,8 @@ #ifndef NAMED_REF_H_ # define NAMED_REF_H_ -#include "location.h" -#include "uniqstr.h" +# include "location.h" +# include "uniqstr.h" /* Named reference object. Keeps information about a symbolic name of a symbol in a rule. */ @@ -37,6 +37,9 @@ typedef struct named_ref /* Allocate a named reference object. */ named_ref *named_ref_new (uniqstr id, location loc); +/* Allocate and return a copy. */ +named_ref *named_ref_copy (const named_ref *r); + /* Free a named reference object. */ void named_ref_free (named_ref *r);