Fix two nits reported by twlevo, plus one more that I discovered.

* src/assoc.h (assoc_to_string): Give a name to the arg, as
this is the usual Bison style.
* src/location.h (location_print): Likewise.

* src/reader.h (token_name): Likewise.
This commit is contained in:
Paul Eggert
2006-03-09 23:23:11 +00:00
parent d6b771c345
commit 6e0f828781
4 changed files with 15 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
2006-03-09 Paul Eggert <eggert@cs.ucla.edu>
Fix two nits reported by twlevo, plus one more that I discovered.
* src/assoc.h (assoc_to_string): Give a name to the arg, as
this is the usual Bison style.
* src/location.h (location_print): Likewise.
* src/reader.h (token_name): Likewise.
2006-03-08 Paul Eggert <eggert@cs.ucla.edu>
Fix some nits reported by twlevo.

View File

@@ -1,5 +1,5 @@
/* Associativity information.
Copyright (C) 2002 Free Software Foundation, Inc.
Copyright (C) 2002, 2006 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -30,6 +30,6 @@ typedef enum
non_assoc
} assoc;
char const *assoc_to_string (assoc);
char const *assoc_to_string (assoc a);
#endif /* !ASSOC_H_ */

View File

@@ -1,5 +1,5 @@
/* Locations for Bison
Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -64,6 +64,6 @@ typedef struct
extern location const empty_location;
void location_print (FILE *, location);
void location_print (FILE *out, location loc);
#endif /* ! defined LOCATION_H_ */

View File

@@ -58,7 +58,7 @@ YY_DECL;
/* From the parser. */
extern int gram_debug;
int gram_parse (void);
char const *token_name (int);
char const *token_name (int type);
/* From reader.c. */