From: Paul Eggert Date: Fri, 13 Dec 2002 08:43:01 +0000 (+0000) Subject: (NUMBER_UNDEFINED): Remove unnecessary cast. X-Git-Tag: BISON-1_875~82 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/2cc6b61207659f016587c4ed438b58e2f886a3dd?ds=sidebyside;hp=0fb1efaf5860efaba16b262e3d74a992eac6bbfc (NUMBER_UNDEFINED): Remove unnecessary cast. (symbol_processor): Remove. (symbols_do): Remove decl; now static. --- diff --git a/src/symtab.h b/src/symtab.h index 3b1aec71..3cf2f588 100644 --- a/src/symtab.h +++ b/src/symtab.h @@ -1,4 +1,5 @@ -/* Definitions for symtab.c and callers, part of bison, +/* Definitions for symtab.c and callers, part of Bison. + Copyright (C) 1984, 1989, 1992, 2000, 2001, 2002 Free Software Foundation, Inc. @@ -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);