mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 12:53:03 +00:00
(struniq_new): Do not declare the return type
to be 'const'; this violates the C standard.
This commit is contained in:
@@ -37,7 +37,7 @@ static struct hash_table *struniqs_table = NULL;
|
||||
| Create the struniq for S if needed. |
|
||||
`-------------------------------------*/
|
||||
|
||||
const struniq_t
|
||||
struniq_t
|
||||
struniq_new (const char *s)
|
||||
{
|
||||
struniq_t res = hash_lookup (struniqs_table, s);
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
typedef const char *struniq_t;
|
||||
|
||||
/* Return the struniq for S. */
|
||||
const struniq_t struniq_new (const char *s);
|
||||
struniq_t struniq_new (const char *s);
|
||||
|
||||
/* Two struniq have the same value iff they are the same. */
|
||||
#define STRUNIQ_EQ(S1, S2) ((S1) == (S2))
|
||||
|
||||
Reference in New Issue
Block a user