From: Paul Eggert Date: Thu, 9 Mar 2006 23:23:11 +0000 (+0000) Subject: Fix two nits reported by twlevo, plus one more that I discovered. X-Git-Tag: v2.3b~434 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/6e0f8287817c4effb70da3e621e7f1c7778e217e?ds=inline 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. --- diff --git a/ChangeLog b/ChangeLog index c1d0c374..543c2140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-03-09 Paul Eggert + + 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 Fix some nits reported by twlevo. diff --git a/src/assoc.h b/src/assoc.h index b31c55e2..778a451c 100644 --- a/src/assoc.h +++ b/src/assoc.h @@ -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_ */ diff --git a/src/location.h b/src/location.h index 346abcf2..49d2a2ed 100644 --- a/src/location.h +++ b/src/location.h @@ -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_ */ diff --git a/src/reader.h b/src/reader.h index bb8daff1..f110f70e 100644 --- a/src/reader.h +++ b/src/reader.h @@ -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. */