]> git.saurik.com Git - bison.git/blobdiff - src/symtab.h
Output yylloc macro defn in glr.c even if locations are not being generated.
[bison.git] / src / symtab.h
index 3b1aec71b0622e94f0c2ed7829c2f7b5f7684dc7..42c8ffb82a212619cfb08d52852ac16ac253dcdd 100644 (file)
@@ -1,5 +1,6 @@
-/* Definitions for symtab.c and callers, part of bison,
-   Copyright (C) 1984, 1989, 1992, 2000, 2001, 2002
+/* Definitions for symtab.c and callers, part of Bison.
+
+   Copyright (C) 1984, 1989, 1992, 2000, 2001, 2002, 2004
    Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
@@ -40,7 +41,7 @@ typedef enum
 
 
 /* Internal token numbers. */
-typedef short symbol_number;
+typedef short int symbol_number;
 #define SYMBOL_NUMBER_MAXIMUM SHRT_MAX
 
 
@@ -60,7 +61,7 @@ struct symbol
   location printer_location;
 
   symbol_number number;
-  short prec;
+  short int prec;
   assoc assoc;
   int user_token_number;
 
@@ -81,7 +82,7 @@ struct symbol
 #define USER_NUMBER_ALIAS -9991
 
 /* Undefined internal token number.  */
-#define NUMBER_UNDEFINED ((symbol_number) -1)
+#define NUMBER_UNDEFINED (-1)
 
 
 /* Fetch (or create) the symbol associated to KEY.  */
@@ -134,13 +135,6 @@ extern location startsymbol_location;
 /* Create the symbol table.  */
 void symbols_new (void);
 
-/* A function to apply to each symbol. */
-typedef bool (*symbol_processor) (symbol *);
-
-/* 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_free (void);