aboutsummaryrefslogtreecommitdiff
path: root/ld/ldsym.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-12 00:54:14 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-12 00:54:14 +0000
commit9f6294075ee0c6a0414499600eed661ce5aee2a3 (patch)
tree71dd78ce58ad288f67edbdb0a4035d84f496caac /ld/ldsym.c
parentaa53cd671474758239f42060db745db696dd1f55 (diff)
downloadgdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.zip
gdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.tar.gz
gdb-9f6294075ee0c6a0414499600eed661ce5aee2a3.tar.bz2
More gcc lint.
Diffstat (limited to 'ld/ldsym.c')
-rw-r--r--ld/ldsym.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/ld/ldsym.c b/ld/ldsym.c
index 6b808d7..74f7956 100644
--- a/ld/ldsym.c
+++ b/ld/ldsym.c
@@ -81,13 +81,19 @@ unsigned int global_symbol_count;
#define TABSIZE 1009
static ldsym_type *global_symbol_hash_table[TABSIZE];
-/* Compute the hash code for symbol name KEY. */
-static
-#ifdef __GNUC__
- __inline
+#ifndef __GNUC__
+#define __inline
#endif
-int
+static __inline int hash_string PARAMS ((const char *key));
+static __inline ldsym_type *search PARAMS ((const char *key, int hashval));
+static asymbol **process_keepsyms PARAMS ((asymbol **table, int size));
+static void print_file_stuff PARAMS ((lang_input_statement_type * f));
+static asymbol **write_file_locals PARAMS ((asymbol **output_buffer));
+static asymbol **write_file_globals PARAMS ((asymbol **symbol_table));
+
+/* Compute the hash code for symbol name KEY. */
+static __inline int
hash_string (key)
CONST char *key;
{
@@ -104,11 +110,7 @@ hash_string (key)
return k;
}
-static
-#ifdef __GNUC__
- __inline
-#endif
- ldsym_type *
+static __inline ldsym_type *
search (key, hashval)
CONST char *key;
int hashval;