gdb/ChangeLog
[deliverable/binutils-gdb.git] / gdb / macrotab.c
index 603c8e73ce1ddf3b30e6e5cb57e3544bb512ab66..84c53c257fc7da62f9ad21bcd72c02bcbe21a010 100644 (file)
@@ -1,5 +1,6 @@
 /* C preprocessor macro tables for GDB.
-   Copyright (C) 2002, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2007, 2008, 2009, 2010, 2011
+   Free Software Foundation, Inc.
    Contributed by Red Hat, Inc.
 
    This file is part of GDB.
@@ -113,6 +114,7 @@ macro_bcache (struct macro_table *t, const void *addr, int len)
   else
     {
       void *copy = xmalloc (len);
+
       memcpy (copy, addr, len);
       return copy;
     }
@@ -158,7 +160,7 @@ struct macro_key
   struct macro_table *table;
 
   /* The name of the macro.  This is in the table's bcache, if it has
-     one. */
+     one.  */
   const char *name;
 
   /* The source file and line number where the definition's scope
@@ -316,6 +318,7 @@ key_compare (struct macro_key *key,
              const char *name, struct macro_source_file *file, int line)
 {
   int names = strcmp (key->name, name);
+
   if (names)
     return names;
 
@@ -467,8 +470,8 @@ macro_include (struct macro_source_file *source,
 
          First, squawk.  */
       complaint (&symfile_complaints,
-                _("both `%s' and `%s' allegedly #included at %s:%d"), included,
-                (*link)->filename, source->filename, line);
+                _("both `%s' and `%s' allegedly #included at %s:%d"),
+                included, (*link)->filename, source->filename, line);
 
       /* Now, choose a new, unoccupied line number for this
          #inclusion, after the alleged #inclusion line.  */
@@ -726,7 +729,8 @@ check_for_redefinition (struct macro_source_file *source, int line,
       if (! same)
         {
          complaint (&symfile_complaints,
-                    _("macro `%s' redefined at %s:%d; original definition at %s:%d"),
+                    _("macro `%s' redefined at %s:%d; "
+                      "original definition at %s:%d"),
                     name, source->filename, line,
                     found_key->start_file->filename, found_key->start_line);
         }
@@ -879,6 +883,7 @@ macro_definition_location (struct macro_source_file *source,
   if (n)
     {
       struct macro_key *key = (struct macro_key *) n->key;
+
       *definition_line = key->start_line;
       return key->start_file;
     }
@@ -905,6 +910,7 @@ foreach_macro (splay_tree_node node, void *arg)
   struct macro_for_each_data *datum = (struct macro_for_each_data *) arg;
   struct macro_key *key = (struct macro_key *) node->key;
   struct macro_definition *def = (struct macro_definition *) node->value;
+
   (*datum->fn) (key->name, def, datum->user_data);
   return 0;
 }
@@ -915,6 +921,7 @@ macro_for_each (struct macro_table *table, macro_callback_fn fn,
                void *user_data)
 {
   struct macro_for_each_data datum;
+
   datum.fn = fn;
   datum.user_data = user_data;
   datum.file = NULL;
@@ -946,6 +953,7 @@ macro_for_each_in_scope (struct macro_source_file *file, int line,
                         macro_callback_fn fn, void *user_data)
 {
   struct macro_for_each_data datum;
+
   datum.fn = fn;
   datum.user_data = user_data;
   datum.file = file;
This page took 0.026458 seconds and 4 git commands to generate.