X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/b5c212b61a73e905c94c7a488fa7676021a1dad6..b9f1d9a47a49c40e8f0a5006b492daba53f25b20:/src/named-ref.c?ds=inline diff --git a/src/named-ref.c b/src/named-ref.c new file mode 100644 index 00000000..4388acba --- /dev/null +++ b/src/named-ref.c @@ -0,0 +1,41 @@ +/* Named symbol references for Bison + + Copyright 2009 Free Software Foundation, Inc. + + This file is part of Bison, the GNU Compiler Compiler. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#include +#include "system.h" + +#include "named-ref.h" + +named_ref * +named_ref_new (uniqstr id, location loc) +{ + named_ref *res = xmalloc (sizeof *res); + + res->id = id; + res->loc = loc; + + return res; +} + +void +named_ref_free (named_ref *r) +{ + free (r); +} +