bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

minor cleanup patch for unused name, white space


From: Paul Eggert
Subject: minor cleanup patch for unused name, white space
Date: Mon, 18 Dec 2006 09:28:06 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

I installed this:

2006-12-18  Paul Eggert  <address@hidden>

        * src/symtab.h (struct semantic_type): Remove the tag 'semantic_type',
        since it wasn't used; only the typedef name 'semantic_type' is needed.
        Also, omit trailing white space.

--- src/symtab.h        12 Nov 2006 07:39:37 -0000      1.68
+++ src/symtab.h        18 Dec 2006 17:26:49 -0000
@@ -150,7 +150,7 @@ void symbol_destructor_set (symbol *sym,
 const char *symbol_destructor_get (symbol *sym);
 
 /** Get the grammar location of the computed \c \%destructor for \c sym.
- 
+
   \pre <tt>symbol_destructor_get (sym) != NULL</tt> */
 location symbol_destructor_location_get (symbol *sym);
 
@@ -201,10 +201,10 @@ extern location startsymbol_location;
 `-----------------*/
 
 /** A semantic type and its associated \c \%destructor and \c \%printer.
-   
+
    Access the fields of this struct only through the interface functions in
    this file.  \sa symbol::destructor  */
-typedef struct semantic_type {
+typedef struct {
   /** The key, name of the semantic type.  */
   uniqstr tag;
 
--- src/location.h      12 Nov 2006 07:39:37 -0000      1.19
+++ src/location.h      18 Dec 2006 17:26:49 -0000
@@ -44,9 +44,9 @@ typedef struct
 static inline void
 boundary_set (boundary *b, const char *f, int l, int c)
 {
-  b->file = f; 
-  b->line = l;         
-  b->column = c;               
+  b->file = f;
+  b->line = l;
+  b->column = c;
 }
 
 /* Return nonzero if A and B are equal boundaries.  */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]