]> git.saurik.com Git - bison.git/commitdiff
Fix two nits reported by twlevo, plus one more that I discovered.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Mar 2006 23:23:11 +0000 (23:23 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Mar 2006 23:23:11 +0000 (23:23 +0000)
* 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.

ChangeLog
src/assoc.h
src/location.h
src/reader.h

index c1d0c374e10e864e5fe38718ece59f75f2cac507..543c214001f7b7e06b19efdb099a9ace1b51cf80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index b31c55e2bc4fd183ed17c82887e81b568e90d374..778a451c9095684e184604b2f79d0dd07e1de137 100644 (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_ */
index 346abcf244f541ef38b5b1e1124808d27a329894..49d2a2edfae801305872808c5fd72257b09ab68e 100644 (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_ */
index bb8daff14113ec3548082f73fc5891dfeb877c2a..f110f70e7042e7513c18d88b96e4de657385f902 100644 (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. */