]> git.saurik.com Git - bison.git/commitdiff
style changes.
authorAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 10:28:31 +0000 (12:28 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Sun, 22 Jul 2012 18:19:41 +0000 (20:19 +0200)
* src/parse-gram.y, src/symtab.c: Space changes.
* src/symtab.h: Comment changes.

src/parse-gram.y
src/symtab.c
src/symtab.h

index ee1c324e8bd0d53b753fa77bdecd08c01cabe4d6..d1f66755c29c2d79e5c13a83fc06e33a375785c3 100644 (file)
@@ -503,9 +503,9 @@ symbols.prec:
 ;
 
 symbol.prec:
-    symbol { $$ = $1; }
-  | symbol INT { $$ = $1; symbol_user_token_number_set ($1, $2, @2); }
-  ;
+  symbol     { $$ = $1; }
+| symbol INT { $$ = $1; symbol_user_token_number_set ($1, $2, @2); }
+;
 
 /* One or more symbols to be %typed. */
 symbols.1:
index 560f3327102b658bf2cbec54990801c7529e112a..12e19ec98f0c297016eb7992216bc1ce83898107 100644 (file)
@@ -400,15 +400,15 @@ symbol_check_defined (symbol *sym)
         {
         case used:
           complain_at (sym->location, Wother,
-                   _("symbol %s is used, but is not defined as a token"
-                     " and has no rules"),
-                   sym->tag);
+                       _("symbol %s is used, but is not defined as a token"
+                         " and has no rules"),
+                       sym->tag);
           break;
         case undeclared:
         case needed:
           complain_at (sym->location, complaint,
-                    _("symbol %s is used, but is not defined as a token"
-                      " and has no rules"),
+                       _("symbol %s is used, but is not defined as a token"
+                         " and has no rules"),
                     sym->tag);
           break;
         case declared:
@@ -450,8 +450,8 @@ semantic_type_check_defined (semantic_type *sem_type)
         if (sem_type->props[i].kind != CODE_PROPS_NONE
             && ! sem_type->props[i].is_used)
           complain_at (sem_type->location, Wother,
-                   _("useless %s for type <%s>"),
-                   code_props_type_string (i), sem_type->tag);
+                       _("useless %s for type <%s>"),
+                       code_props_type_string (i), sem_type->tag);
     }
   else
     complain_at (sem_type->location, Wother,
index 84113394b5fcce7612b311036c2cfced7194a262..4663a6958a870eca8fb2dadfe0e290aa5a625262 100644 (file)
@@ -179,15 +179,15 @@ void symbol_code_props_set (symbol *sym, code_props_type kind,
                             code_props const *destructor);
 
 /** Get the computed \c \%destructor or \c %printer for \c sym, which was
-initialized with \c code_props_none_init if there's no \c \%destructor or
-\c %printer.  */
+    initialized with \c code_props_none_init if there's no \c \%destructor or
+    \c %printer.  */
 code_props const *symbol_code_props_get (symbol const *sym,
                                          code_props_type kind);
 
-/* Set the \c precedence associated with \c sym.
+/** Set the \c precedence associated with \c sym.
 
-   Ensure that \a symbol is a terminal.
-   Do nothing if invoked with \c undef_assoc as \c assoc.  */
+    Ensure that \a symbol is a terminal.
+    Do nothing if invoked with \c undef_assoc as \c assoc.  */
 void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
 
 /** Set the \c class associated with \c sym.  */