2014-11-06 Doug Evans <xdje42@gmail.com>
+ * symtab.c (lookup_symbol_in_block): Renamed from
+ lookup_symbol_aux_block. All callers updated.
+
+2014-11-06 Doug Evans <xdje42@gmail.com>
+
* symtab.c (lookup_static_symbol): Renamed from
lookup_static_symbol_aux. All callers updated.
(lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
const struct block *global_block = block_global_block (block);
if (global_block != NULL)
- sym = lookup_symbol_aux_block (name, global_block, domain);
+ sym = lookup_symbol_in_block (name, global_block, domain);
}
else
{
while (block != static_block)
{
- sym = lookup_symbol_aux_block (name, block, domain);
+ sym = lookup_symbol_in_block (name, block, domain);
if (sym != NULL)
return sym;
/* See symtab.h. */
struct symbol *
-lookup_symbol_aux_block (const char *name, const struct block *block,
- const domain_enum domain)
+lookup_symbol_in_block (const char *name, const struct block *block,
+ const domain_enum domain)
{
struct symbol *sym;
const struct block *static_block = block_static_block (block);
if (static_block != NULL)
- return lookup_symbol_aux_block (name, static_block, domain);
+ return lookup_symbol_in_block (name, static_block, domain);
else
return NULL;
}
const struct block *block,
const domain_enum domain);
-/* Lookup a symbol within the block BLOCK.
+/* Lookup a symbol in block BLOCK.
Upon success sets BLOCK_FOUND and fixes up the symbol's section
if necessary. */
-extern struct symbol *lookup_symbol_aux_block (const char *name,
- const struct block *block,
- const domain_enum domain);
+extern struct symbol *lookup_symbol_in_block (const char *name,
+ const struct block *block,
+ const domain_enum domain);
/* Look up the `this' symbol for LANG in BLOCK. Return the symbol if
found, or NULL if not found. */