Commit 17fa74a2 by Kazu Hirata Committed by Kazu Hirata

* tlink.c: Fix formatting.

From-SVN: r59176
parent 68a7da97
2002-11-16 Kazu Hirata <kazu@cs.umass.edu>
* tlink.c: Fix formatting.
2002-11-16 David Edelsohn <edelsohn@gnu.org> 2002-11-16 David Edelsohn <edelsohn@gnu.org>
PR 8362 PR 8362
......
...@@ -73,8 +73,8 @@ hash_string_eq (s1_p, s2_p) ...@@ -73,8 +73,8 @@ hash_string_eq (s1_p, s2_p)
const void *s1_p; const void *s1_p;
const void *s2_p; const void *s2_p;
{ {
const char *const *s1 = (const char *const *)s1_p; const char *const *s1 = (const char *const *) s1_p;
const char *s2 = (const char *)s2_p; const char *s2 = (const char *) s2_p;
return strcmp (*s1, s2) == 0; return strcmp (*s1, s2) == 0;
} }
...@@ -82,7 +82,7 @@ static hashval_t ...@@ -82,7 +82,7 @@ static hashval_t
hash_string_hash (s_p) hash_string_hash (s_p)
const void *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); return (*htab_hash_string) (*s);
} }
...@@ -120,7 +120,7 @@ symbol_hash_lookup (string, create) ...@@ -120,7 +120,7 @@ symbol_hash_lookup (string, create)
{ {
PTR *e; PTR *e;
e = htab_find_slot_with_hash (symbol_table, string, e = htab_find_slot_with_hash (symbol_table, string,
(*htab_hash_string)(string), (*htab_hash_string) (string),
create ? INSERT : NO_INSERT); create ? INSERT : NO_INSERT);
if (e == NULL) if (e == NULL)
return NULL; return NULL;
...@@ -143,7 +143,7 @@ file_hash_lookup (string) ...@@ -143,7 +143,7 @@ file_hash_lookup (string)
{ {
PTR *e; PTR *e;
e = htab_find_slot_with_hash (file_table, string, e = htab_find_slot_with_hash (file_table, string,
(*htab_hash_string)(string), (*htab_hash_string) (string),
INSERT); INSERT);
if (*e == NULL) if (*e == NULL)
{ {
...@@ -165,7 +165,7 @@ demangled_hash_lookup (string, create) ...@@ -165,7 +165,7 @@ demangled_hash_lookup (string, create)
{ {
PTR *e; PTR *e;
e = htab_find_slot_with_hash (demangled_table, string, e = htab_find_slot_with_hash (demangled_table, string,
(*htab_hash_string)(string), (*htab_hash_string) (string),
create ? INSERT : NO_INSERT); create ? INSERT : NO_INSERT);
if (e == NULL) if (e == NULL)
return NULL; return NULL;
...@@ -583,13 +583,13 @@ scan_linker_output (fname) ...@@ -583,13 +583,13 @@ scan_linker_output (fname)
symbol *sym; symbol *sym;
int end; int end;
while (*p && ISSPACE ((unsigned char)*p)) while (*p && ISSPACE ((unsigned char) *p))
++p; ++p;
if (! *p) if (! *p)
continue; 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. */ /* Try the first word on the line. */
...@@ -605,9 +605,9 @@ scan_linker_output (fname) ...@@ -605,9 +605,9 @@ scan_linker_output (fname)
/* Some SVR4 linkers produce messages like /* Some SVR4 linkers produce messages like
ld: 0711-317 ERROR: Undefined symbol: .g__t3foo1Zi 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++; p++;
if (*p == '.') if (*p == '.')
p++; p++;
...@@ -619,7 +619,7 @@ scan_linker_output (fname) ...@@ -619,7 +619,7 @@ scan_linker_output (fname)
if (! sym && ! end) if (! sym && ! end)
/* Try a mangled name in quotes. */ /* Try a mangled name in quotes. */
{ {
const char *oldq = q+1; const char *oldq = q + 1;
demangled *dem = 0; demangled *dem = 0;
q = 0; q = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment