1 /* A string to string mapping.
3 Copyright (C) 2011 Free Software Foundation, Inc.
4 Contributed by Lawrence Crowl <crowl@google.com>.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 GCC is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
22 typedef struct strstrmap_d strstrmap_t
;
24 extern strstrmap_t
* strstrmap_create (void);
25 extern void strstrmap_destroy (strstrmap_t
*tbl
);
26 extern const char* strstrmap_insert (strstrmap_t
*tbl
, const char *key
,
28 extern const char* strstrmap_lookup (strstrmap_t
*tbl
, const char *key
);