2010-05-13 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 14 May 2010 00:23:26 +0000 (00:23 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 14 May 2010 00:23:26 +0000 (00:23 +0000)
* dictionary.c: Re-indent to GNU coding standard.

gdb/ChangeLog
gdb/dictionary.c

index b76b8d64e91590df6f3dc8a815b74894d7c7a70b..11b4d711b4e2498201854d3fc8f9ffde13c00413 100644 (file)
@@ -1,5 +1,7 @@
 2010-05-13  Michael Snyder  <msnyder@vmware.com>
 
+       * dictionary.c: Re-indent to GNU coding standard.
+
        * charset.c: White space.
        * c-lang.c: White space.
        * cli-out.c: White space.
index e3617cfb90037eb08771355aa9e97f16bc51fe27..e1c2010bc1c386d46bf4d821b441a9982b10ec64 100644 (file)
@@ -724,21 +724,24 @@ expand_hashtable (struct dictionary *dict)
   DICT_HASHED_NBUCKETS (dict) = new_nbuckets;
   DICT_HASHED_BUCKETS (dict) = new_buckets;
 
-  for (i = 0; i < old_nbuckets; ++i) {
-    struct symbol *sym, *next_sym;
-
-    sym = old_buckets[i];
-    if (sym != NULL) {
-      for (next_sym = sym->hash_next;
-          next_sym != NULL;
-          next_sym = sym->hash_next) {
-       insert_symbol_hashed (dict, sym);
-       sym = next_sym;
-      }
-
-      insert_symbol_hashed (dict, sym);
+  for (i = 0; i < old_nbuckets; ++i)
+    {
+      struct symbol *sym, *next_sym;
+
+      sym = old_buckets[i];
+      if (sym != NULL) 
+       {
+         for (next_sym = sym->hash_next;
+              next_sym != NULL;
+              next_sym = sym->hash_next)
+           {
+             insert_symbol_hashed (dict, sym);
+             sym = next_sym;
+           }
+
+         insert_symbol_hashed (dict, sym);
+       }
     }
-  }
 
   xfree (old_buckets);
 }
@@ -821,13 +824,14 @@ add_symbol_linear_expandable (struct dictionary *dict,
   int nsyms = ++DICT_LINEAR_NSYMS (dict);
 
   /* Do we have enough room?  If not, grow it.  */
-  if (nsyms > DICT_LINEAR_EXPANDABLE_CAPACITY (dict)) {
-    DICT_LINEAR_EXPANDABLE_CAPACITY (dict) *= 2;
-    DICT_LINEAR_SYMS (dict)
-      = xrealloc (DICT_LINEAR_SYMS (dict),
-                 DICT_LINEAR_EXPANDABLE_CAPACITY (dict)
-                 * sizeof (struct symbol *));
-  }
+  if (nsyms > DICT_LINEAR_EXPANDABLE_CAPACITY (dict))
+    {
+      DICT_LINEAR_EXPANDABLE_CAPACITY (dict) *= 2;
+      DICT_LINEAR_SYMS (dict)
+       = xrealloc (DICT_LINEAR_SYMS (dict),
+                   DICT_LINEAR_EXPANDABLE_CAPACITY (dict)
+                   * sizeof (struct symbol *));
+    }
 
   DICT_LINEAR_SYM (dict, nsyms - 1) = sym;
 }