mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +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. |
|
| Create the struniq for S if needed. |
|
||||||
`-------------------------------------*/
|
`-------------------------------------*/
|
||||||
|
|
||||||
const struniq_t
|
struniq_t
|
||||||
struniq_new (const char *s)
|
struniq_new (const char *s)
|
||||||
{
|
{
|
||||||
struniq_t res = hash_lookup (struniqs_table, s);
|
struniq_t res = hash_lookup (struniqs_table, s);
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
typedef const char *struniq_t;
|
typedef const char *struniq_t;
|
||||||
|
|
||||||
/* Return the struniq for S. */
|
/* 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. */
|
/* Two struniq have the same value iff they are the same. */
|
||||||
#define STRUNIQ_EQ(S1, S2) ((S1) == (S2))
|
#define STRUNIQ_EQ(S1, S2) ((S1) == (S2))
|
||||||
|
|||||||
Reference in New Issue
Block a user