contrib/gdb-7/gdb/cp-namespace.c
static struct symbol *
cp_lookup_symbol_in_namespace (const char *namespace,
                               const char *name,
                               const struct block *block,
                               const domain_enum domain)
{
  if (namespace[0] == '\0')
    {
      return lookup_symbol_file (name, block, domain, 0);
    }
  else
    {
      char *concatenated_name = alloca (strlen (namespace) + 2
					+ strlen (name) + 1);

      strcpy (concatenated_name, namespace);
      strcat (concatenated_name, "::");
      strcat (concatenated_name, name);
      return lookup_symbol_file (concatenated_name, block, domain,
				 cp_is_anonymous (namespace));
    }
}
/* Look up NAME in the C++ namespace NAMESPACE.  Other arguments are
   as in cp_lookup_symbol_nonlocal.  */
Look up NAME in the C++ namespace NAMESPACE.  Other arguments are
as in cp_lookup_symbol_nonlocal.
Look up NAME in the C ++ namespace NAMESPACE . Other arguments are as in cp_lookup_symbol_nonlocal .
static struct symbol *
cp_lookup_symbol_in_namespace (const char *namespace,
                               const char *name,
                               const struct block *block,
                               const domain_enum domain)
{
  if (namespace[0] == '\0')
    {
      return lookup_symbol_file (name, block, domain, 0);
    }
  else
    {
      char *concatenated_name = alloca (strlen (namespace) + 2
					+ strlen (name) + 1);
      strcpy (concatenated_name, namespace);
      strcat (concatenated_name, "::");
      strcat (concatenated_name, name);
      return lookup_symbol_file (concatenated_name, block, domain,
				 cp_is_anonymous (namespace));
    }
}
static struct symbol * cp_lookup_symbol_in_namespace ( const char * namespace , const char * name , const struct block * block , const domain_enum domain ) { if ( namespace [ 0 ] == ' \0 ' ) { return lookup_symbol_file ( name , block , domain , 0 ) ; } else { char * concatenated_name = alloca ( strlen ( namespace ) + 2 + strlen ( name ) + 1 ) ; strcpy ( concatenated_name , namespace ) ; strcat ( concatenated_name , " " ) ; strcat ( concatenated_name , name ) ; return lookup_symbol_file ( concatenated_name , block , domain , cp_is_anonymous ( namespace ) ) ; } }
Look up NAME in the C++ namespace NAMESPACE.
Look up NAME in the C ++ namespace NAMESPACE .