This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] tlink.c: Fix formatting.


Hi,

Attached is a patch to fix formatting.  Committed as obvious.

Kazu Hirata

2002-11-16  Kazu Hirata  <kazu@cs.umass.edu>

	* tlink.c: Fix formatting.

Index: tlink.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tlink.c,v
retrieving revision 1.45
diff -u -r1.45 tlink.c
--- tlink.c	11 Sep 2002 19:58:00 -0000	1.45
+++ tlink.c	16 Nov 2002 18:27:10 -0000
@@ -73,8 +73,8 @@
      const void *s1_p;
      const void *s2_p;
 {
-  const char *const *s1 = (const char *const *)s1_p;
-  const char *s2 = (const char *)s2_p;
+  const char *const *s1 = (const char *const *) s1_p;
+  const char *s2 = (const char *) s2_p;
   return strcmp (*s1, s2) == 0;
 }
 
@@ -82,7 +82,7 @@
 hash_string_hash (s_p)
      const void *s_p;
 {
-  const char *const *s = (const char *const *)s_p;
+  const char *const *s = (const char *const *) s_p;
   return (*htab_hash_string) (*s);
 }
 
@@ -120,7 +120,7 @@
 {
   PTR *e;
   e = htab_find_slot_with_hash (symbol_table, string,
-				(*htab_hash_string)(string),
+				(*htab_hash_string) (string),
 				create ? INSERT : NO_INSERT);
   if (e == NULL)
     return NULL;
@@ -143,7 +143,7 @@
 {
   PTR *e;
   e = htab_find_slot_with_hash (file_table, string,
-				(*htab_hash_string)(string),
+				(*htab_hash_string) (string),
 				INSERT);
   if (*e == NULL)
     {
@@ -165,7 +165,7 @@
 {
   PTR *e;
   e = htab_find_slot_with_hash (demangled_table, string,
-				(*htab_hash_string)(string),
+				(*htab_hash_string) (string),
 				create ? INSERT : NO_INSERT);
   if (e == NULL)
     return NULL;
@@ -583,13 +583,13 @@
       symbol *sym;
       int end;
 
-      while (*p && ISSPACE ((unsigned char)*p))
+      while (*p && ISSPACE ((unsigned char) *p))
 	++p;
 
       if (! *p)
 	continue;
 
-      for (q = p; *q && ! ISSPACE ((unsigned char)*q); ++q)
+      for (q = p; *q && ! ISSPACE ((unsigned char) *q); ++q)
 	;
 
       /* Try the first word on the line.  */
@@ -605,9 +605,9 @@
       /* Some SVR4 linkers produce messages like
 	 ld: 0711-317 ERROR: Undefined symbol: .g__t3foo1Zi
 	 */
-      if (! sym && ! end && strstr (q+1, "Undefined symbol: "))
+      if (! sym && ! end && strstr (q + 1, "Undefined symbol: "))
 	{
-	  char *p = strrchr (q+1, ' ');
+	  char *p = strrchr (q + 1, ' ');
 	  p++;
 	  if (*p == '.')
 	    p++;
@@ -619,7 +619,7 @@
       if (! sym && ! end)
 	/* Try a mangled name in quotes.  */
 	{
-	  const char *oldq = q+1;
+	  const char *oldq = q + 1;
 	  demangled *dem = 0;
 	  q = 0;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]