contrib/gdb-7/gdb/cp-namespace.c
struct symbol *
cp_lookup_symbol_nonlocal (const char *name,
			   const struct block *block,
			   const domain_enum domain)
{
  struct symbol *sym;
  const char *scope = block_scope (block);

  sym = lookup_namespace_scope (name, block,
				domain, scope, 0);
  if (sym != NULL)
    return sym;

  return cp_lookup_symbol_namespace (scope, name,
				     block, domain);
}
/* The C++-specific version of name lookup for static and global
   names.  This makes sure that names get looked for in all namespaces
   that are in scope.  NAME is the natural name of the symbol that
   we're looking for, BLOCK is the block that we're searching within,
   DOMAIN says what kind of symbols we're looking for, and if SYMTAB
   is non-NULL, we should store the symtab where we found the symbol
   in it.  */
The C++-specific version of name lookup for static and global
names.  This makes sure that names get looked for in all namespaces
that are in scope.  NAME is the natural name of the symbol that
we're looking for, BLOCK is the block that we're searching within,
DOMAIN says what kind of symbols we're looking for, and if SYMTAB
is non-NULL, we should store the symtab where we found the symbol
in it.
The C ++ - specific version of name lookup for static and global names . This makes sure that names get looked for in all namespaces that are in scope . NAME is the natural name of the symbol that we ' re looking for BLOCK is the block that we ' re searching within DOMAIN says what kind of symbols we ' re looking for and if SYMTAB is non - NULL we should store the symtab where we found the symbol in it .
struct symbol *
cp_lookup_symbol_nonlocal (const char *name,
			   const struct block *block,
			   const domain_enum domain)
{
  struct symbol *sym;
  const char *scope = block_scope (block);
  sym = lookup_namespace_scope (name, block,
				domain, scope, 0);
  if (sym != NULL)
    return sym;
  return cp_lookup_symbol_namespace (scope, name,
				     block, domain);
}
struct symbol * cp_lookup_symbol_nonlocal ( const char * name , const struct block * block , const domain_enum domain ) { struct symbol * sym ; const char * scope = block_scope ( block ) ; sym = lookup_namespace_scope ( name , block , domain , scope , 0 ) ; if ( sym != NULL ) return sym ; return cp_lookup_symbol_namespace ( scope , name , block , domain ) ; }
The C++-specific version of name lookup for static and global
names.
The C ++ - specific version of name lookup for static and global names .