FreeBSD/contrib/gcc/cp/name-lookup.c
/* Return the binding value for name in scope.  */
Return the binding value for name in scope.
Return the binding value for name in scope .
tree
namespace_binding (tree name, tree scope)
{
  cxx_binding *binding;
  if (scope == NULL)
    scope = global_namespace;
  else
    scope = ORIGINAL_NAMESPACE (scope);
  binding = cxx_scope_find_binding_for_name (NAMESPACE_LEVEL (scope), name);
  return binding ? binding->value : NULL_TREE;
}
tree namespace_binding ( tree name , tree scope ) { cxx_binding * binding ; if ( scope == NULL ) scope = global_namespace ; else scope = ORIGINAL_NAMESPACE ( scope ) ; binding = cxx_scope_find_binding_for_name ( NAMESPACE_LEVEL ( scope ) , name ) ; return binding ? binding -> value : NULL_TREE ; }
Return the binding value for name in scope.
Return the binding value for name in scope .
/* Unnecessary for the global namespace because it can't be an alias. */