projects
/
bison.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(gram_error): Remove decl.
[bison.git]
/
src
/
symtab.h
diff --git
a/src/symtab.h
b/src/symtab.h
index 7ad6333330f2e17e7620831e747e2a5fbc7aa5d1..23a733514b3862871d83443dd84e87f8337a0f4a 100644
(file)
--- a/
src/symtab.h
+++ b/
src/symtab.h
@@
-22,6
+22,7
@@
#ifndef SYMTAB_H_
# define SYMTAB_H_
#ifndef SYMTAB_H_
# define SYMTAB_H_
+# include "struniq.h"
# include "location.h"
# include "assoc.h"
# include "location.h"
# include "assoc.h"
@@
-47,12
+48,12
@@
typedef struct symbol_s symbol_t;
struct symbol_s
{
/* The key, name of the symbol. */
struct symbol_s
{
/* The key, name of the symbol. */
-
char *
tag;
+
struniq_t
tag;
/* The location of its first occurence. */
location_t location;
/* Its %type and associated printer and destructor. */
/* The location of its first occurence. */
location_t location;
/* Its %type and associated printer and destructor. */
-
char *
type_name;
+
struniq_t
type_name;
char *destructor;
location_t destructor_location;
char *printer;
char *destructor;
location_t destructor_location;
char *printer;
@@
-97,7
+98,7
@@
void symbol_make_alias (symbol_t *symbol, symbol_t *symval,
/* Set the TYPE_NAME associated to SYMBOL. Does nothing if passed 0 as
TYPE_NAME. */
void symbol_type_set (symbol_t *symbol,
/* Set the TYPE_NAME associated to SYMBOL. Does nothing if passed 0 as
TYPE_NAME. */
void symbol_type_set (symbol_t *symbol,
-
char *
type_name, location_t location);
+
struniq_t
type_name, location_t location);
/* Set the DESTRUCTOR associated to SYMBOL. */
void symbol_destructor_set (symbol_t *symbol,
/* Set the DESTRUCTOR associated to SYMBOL. */
void symbol_destructor_set (symbol_t *symbol,
@@
-143,8
+144,8
@@
void symbols_new (void);
/* A function to apply to each symbol. */
typedef bool (*symbol_processor) (symbol_t *);
/* A function to apply to each symbol. */
typedef bool (*symbol_processor) (symbol_t *);
-/* Apply PROCESSOR to all the symbols. PROCESSOR must return
TRUE
: on
-
FALSE
, the processing stops. */
+/* Apply PROCESSOR to all the symbols. PROCESSOR must return
true
: on
+
false
, the processing stops. */
void symbols_do (symbol_processor processor, void *processor_data);
/* Free all the memory allocated for symbols. */
void symbols_do (symbol_processor processor, void *processor_data);
/* Free all the memory allocated for symbols. */